forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Export more MathML crashtests to WPT.
Follow-up of bug 1795630 for some crashtests that were not in `mathml` directories. The list was extracted in a subjective way from [1] by looking at some tests that seem to contain essentially MathML with some simple HTML or CSS. The changes to `crashtest.list` files have been generated by [2]. [1] https://searchfox.org/mozilla-central/search?q=%3Cmath%7Cmathml&path=crashtest&case=true®exp=true [2] `for file in $(^Ct ~/list-of-tests.txt); do D=$(dirname $file); F=$(filename $file); sed -i "/$F/d" $D/crashtests.list; done` Differential Revision: https://phabricator.services.mozilla.com/D203614 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1883606 gecko-commit: c306d54c8963e4dda4426d48bf41774947f5138d gecko-reviewers: emilio
- Loading branch information
1 parent
b886a9b
commit eae49b8
Showing
32 changed files
with
513 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset=utf-8> | ||
<script> | ||
function boom() | ||
{ | ||
var e = document.getElementsByTagName("mo")[0]; | ||
e.setAttribute("style", "position: absolute; top: 0px;"); | ||
document.documentElement.offsetHeight; | ||
e.setAttribute("style", "position: absolute; top: 100px;"); | ||
} | ||
</script> | ||
</head> | ||
<body onload="boom();"> | ||
<math><mo>boom!</mo></math> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!DOCTYPE html> | ||
<math> | ||
<mstyle scriptlevel=101> | ||
<mstyle scriptlevel=-204> | ||
</math> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<body> | ||
<math class="hidden"> | ||
<mi>x</mi> | ||
<mo>=</mo> | ||
</math> | ||
<script> | ||
window.onload = function() { | ||
let s = document.createElement("style"); | ||
s.textContent = ` | ||
body { | ||
line-height: 1.42857143; | ||
} | ||
.hidden { | ||
display: none; | ||
} | ||
`; | ||
document.body.appendChild(s); | ||
}; | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!doctype html> | ||
<style> | ||
div { display: contents; } | ||
</style> | ||
<math></math> | ||
<script> | ||
let div = document.createElementNS('http://www.w3.org/1998/Math/MathML', 'div'); | ||
document.querySelector('math').appendChild(div); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<html> | ||
<head> | ||
<style> | ||
.class_1 { | ||
transition-delay: 2129ms; | ||
contain: strict; | ||
} | ||
</style> | ||
</head> | ||
<math> | ||
<mover> | ||
<ms></ms> | ||
<mtable class="class_1"></mtable> | ||
</mover> | ||
</math> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
#testElem { | ||
border: 1px solid black; | ||
background: yellow; | ||
contain: layout size; | ||
width: 300px; | ||
} | ||
</style> | ||
<script> | ||
function go() { | ||
/* trigger an incremental reflow. | ||
* Note: elem.style is undefined for MathML elements, so we have | ||
* to use setAttribute(). | ||
*/ | ||
testElem.setAttribute("style", "width:150px"); | ||
} | ||
</script> | ||
</head> | ||
<body onload="go()"> | ||
<math> | ||
<mtable id="testElem">Change my size</mtable> | ||
</math> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
#id_0 { | ||
font-size: 10000% ! important | ||
} | ||
|
||
* { | ||
border-top-style: groove; | ||
} | ||
</style> | ||
|
||
</head> | ||
<math> | ||
<semantics style='border-inline: 1000000em outset !important'> | ||
<mmultiscripts id='id_0'></mmultiscripts> | ||
</semantics> | ||
</math> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:mathml="http://www.w3.org/1998/Math/MathML"> | ||
<body onload="run()"> | ||
<mathml:math id="test" style="display: block"> | ||
</mathml:math> | ||
<script> | ||
function run() { | ||
var t1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", | ||
"mtable"); | ||
var t2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", | ||
"mtable"); | ||
var r1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", | ||
"mtr"); | ||
var r2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", | ||
"mtr"); | ||
var test = | ||
document.getElementsByTagNameNS("http://www.w3.org/1998/Math/MathML", "math")[0]; | ||
t1.appendChild(r1); | ||
test.appendChild(t1); | ||
test.appendChild(t2); | ||
t2.appendChild(r2); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version='1.0'?> | ||
|
||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<body> | ||
|
||
<math xmlns='http://www.w3.org/1998/Math/MathML' display='block'><msup> | ||
|
||
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX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XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
|
||
</msup></math> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<body> | ||
|
||
<div><math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> | ||
|
||
<mtable> | ||
<mtr> | ||
<mtd><mi>x</mi></mtd> | ||
<mtd rowspan="4" columnspan="4"><mi>y</mi></mtd> | ||
</mtr> | ||
<mtr> | ||
<mtd rowspan="0" columnspan="0"><mi>z</mi></mtd> | ||
<mtd><mi>w</mi></mtd> | ||
</mtr> | ||
</mtable> | ||
|
||
|
||
</math></div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
|
||
<head> | ||
<style> | ||
body, body * { position: fixed; } | ||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
|
||
<div> | ||
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> | ||
|
||
<mtable> | ||
<mtr> | ||
<mtd> | ||
<mn>1</mn> | ||
</mtd> | ||
</mtr> | ||
</mtable> | ||
</math> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:math="http://www.w3.org/1998/Math/MathML"> | ||
|
||
<body> | ||
|
||
<math:merror> | ||
<img/> | ||
</math:merror> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> | ||
|
||
<head> | ||
</head> | ||
|
||
<body> | ||
|
||
<p><math:msubsup><span>Foo bar baz<td></td></span></math:msubsup></p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> | ||
<head> | ||
</head> | ||
|
||
<body> | ||
|
||
<math:mroot> | ||
<div> | ||
<div style="position: fixed;">Y</div> | ||
</div> | ||
</math:mroot> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> | ||
<body> | ||
|
||
<div><math:mfrac><math:mmultiscripts/><math:mi/></math:mfrac></div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> | ||
<body> | ||
|
||
<p style="text-indent: 0%">a<math:ms/></p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<style> | ||
|
||
/* use attribute selector instead of the .class shorthand to work around bug 379178 */ | ||
|
||
*[class="fixed"] { position: fixed; } | ||
|
||
math, mtable, mtr { position: inherit; } | ||
|
||
</style> | ||
</head> | ||
|
||
<body> | ||
|
||
<div class="fixed"> | ||
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> | ||
<mtable> | ||
<mtr class="fixed"> | ||
<mtd><mi>x</mi></mtd> | ||
</mtr> | ||
<mtr> | ||
<mtd><mi>y</mi></mtd> | ||
</mtr> | ||
</mtable> | ||
</math> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<body> | ||
|
||
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> | ||
<mtable> | ||
<mtr> | ||
<mtd><mi>x</mi></mtd> | ||
</mtr> | ||
</mtable> | ||
</math> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<script> | ||
function boom() | ||
{ | ||
var mss = document.getElementById("mss"); | ||
|
||
var j = document.createTextNode("j"); | ||
var comb = document.createTextNode("\u0302"); | ||
|
||
mss.appendChild(j); | ||
mss.appendChild(comb); | ||
} | ||
</script> | ||
</head> | ||
|
||
<body onload="boom()"> | ||
|
||
<div> | ||
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block"> | ||
<msub id="mss"> | ||
<mi>v</mi> | ||
<mn>1</mn> | ||
</msub> | ||
</math> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML"> | ||
<head> | ||
<script> | ||
|
||
function boom() | ||
{ | ||
var ms = document.createElementNS("http://www.w3.org/1998/Math/MathML", "ms"); | ||
var textNode = document.getElementById("emptyset").firstChild; | ||
var mrow = document.getElementById("mrow"); | ||
|
||
ms.appendChild(textNode); // *move* the text node from one place to another! | ||
mrow.appendChild(ms); | ||
} | ||
|
||
</script> | ||
</head> | ||
|
||
<body onload="boom();"> | ||
|
||
<math xmlns="http://www.w3.org/1998/Math/MathML"> | ||
<merror><emptyset id="emptyset"> | ||
<mrow id="mrow"></mrow></emptyset></merror> | ||
</math> | ||
|
||
</body> | ||
|
||
</html> |
Oops, something went wrong.