Add some crashtests and reftests

--HG--
extra : rebase_source : a167ccf140387fa50e3668422b5a74bea0527255
This commit is contained in:
Jesse Ruderman 2010-06-17 13:21:24 -07:00
parent 3996de6d69
commit fb054fc73e
36 changed files with 276 additions and 0 deletions

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<body onload="document.getElementById('a').appendChild(document.getElementById('b'));">
<div id="b"></div>
<div style="filter: url(#b);"></div>
<div id="a"></div>
</body>
</html>

View File

@ -60,6 +60,7 @@ load 493281-1.html
load 493281-2.html
load 490760-1.xhtml
load 494810-1.html
load 522516-1.html
load 529670.html
load 554230-1.xhtml
load 552651.html

View File

@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<circle id="circle" transform="">
<animateTransform attributeName="transform" from="0" to="0.6"/>
</circle>
<use xlink:href="#circle"/>
</svg>

After

Width:  |  Height:  |  Size: 237 B

View File

@ -46,3 +46,4 @@ load 436418-mpathRoot-1.svg
load 448244-1.svg
load 466576-1.xhtml
asserts(0-2) load 535691-1.svg # Bug 535691
load 539167-1.svg

View File

@ -0,0 +1,9 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head></head>
<body onunload="document.getElementById('tbody').appendChild(document.createElementNS('http://www.w3.org/1999/xhtml', 'span'))">
<iframe/>
<tbody contenteditable="true" id="tbody">xy</tbody>
</body>
</html>

View File

@ -8,3 +8,4 @@ asserts(0-2) load 432114-2.html # bug 570215, bug 571020
load 436900-1.html
asserts(0-2) load 436900-2.html # bug 566159
load 500328-1.html
load 514779-1.xhtml

View File

@ -0,0 +1,19 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head contenteditable="true">
<script type="text/javascript">
<![CDATA[
function boom()
{
var r = document.createRange();
r.selectNode(document.body);
r.deleteContents();
try { document.execCommand("selectAll", false, null); } catch(e) { }
}
]]>
</script>
</head>
<body onload="boom();" contenteditable="true"></body>
</html>

View File

@ -13,4 +13,5 @@ load 456727-1.html
load 456727-2.html
asserts(1) load 467647-1.html # bug 382210
load 503709-1.xhtml
load 513375-1.xhtml
load 535632-1.xhtml

View File

@ -0,0 +1,22 @@
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin" type="text/css"?>
<!-- there must be no extra elements in the document -->
<window onload="
document.documentElement.removeChild(document.getElementById('b'));
document.getElementById('l').removeChild(document.getElementById('h'));
document.documentElement.appendChild(document.createElementNS('http://www.w3.org/1999/xhtml', 'span'));"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<bindings xmlns="http://www.mozilla.org/xbl" id="b">
<binding id="foo">
<content><listitem xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"><children xmlns="http://www.mozilla.org/xbl"/></listitem></content>
</binding>
</bindings>
<listbox id="l" style="-moz-binding: url(&quot;#foo&quot;);"><hbox id="h"/></listbox>
<listitem/>
</window>

View File

@ -276,6 +276,7 @@ load 499841-1.xhtml
load 500467-1.html
load 501878-1.html
load 503936-1.html
load 514104-1.xul
load 522374-1.html
load 522374-2.html
load 526378-1.xul

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html><body onload="document.body.style.display = 'table';" style="-moz-column-count: 1; white-space: pre-line; -moz-appearance: resizer; height: 23698324514pc;">
<input></body></html>

View File

@ -38,5 +38,6 @@ load 455451-1.html
load 457537-1.html
load 457537-2.html
load 478219-1.xhtml
load 513113-1.html
load 570624-1.html
load 498698-1.html

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" style="-moz-column-count: 2;">
<body style="padding: 731563462617733px; height: 10px;">
<div></div>
</body>
</html>

View File

@ -0,0 +1 @@
<html style="-moz-column-width: 1px; -moz-column-gap: 6834954840cm"><body></body></html>

View File

@ -0,0 +1,6 @@
<!DOCTYPE html>
<html>
<body>
<table style="line-height: 1em; font-size: 1483271385%;"><tbody><tr><td></td></tr></tbody></table>
</body>
</html>

View File

@ -0,0 +1 @@
<html xmlns="http://www.w3.org/1999/xhtml"><body><math xmlns="http://www.w3.org/1998/Math/MathML" style="display: table;"/><div style="position: fixed;"></div></body></html>

View File

@ -297,10 +297,13 @@ asserts(15) asserts-if(MOZ_WIDGET_TOOLKIT=="windows",18) load 499885-1.xhtml # n
load 501535-1.html
load 503961-1.xhtml
load 503961-2.html
load 508168-1.html
load 508908-1.html
load 505912-1.html
load 509749-1.html
load 511482.html
load 512724-1.html
load 512725-1.html
load 513394-1.html
load 514800-1.html
load 515811-1.html
@ -317,6 +320,7 @@ load 541277-2.html
load 541714-1.html
load 541714-2.html
load 547338.xul
load 547843-1.xhtml
load 551635-1.html
load 564368-1.xhtml
load 564968.xhtml

View File

@ -0,0 +1,12 @@
<html>
<head></head>
<body>
<ol>
<li id="a"></li>
<li id="b">b</li>
</ol>
</body>
</html>

View File

@ -0,0 +1,12 @@
<html>
<head></head>
<body onload="document.getElementById('a').firstChild.data = '';">
<ol>
<li id="a">a</li>
<li id="b">b</li>
</ol>
</body>
</html>

View File

@ -0,0 +1,4 @@
<body>
<div style="outline: 1px solid black">
<img>
</div>

File diff suppressed because one or more lines are too long

View File

@ -1334,6 +1334,7 @@ random-if(MOZ_WIDGET_TOOLKIT=="windows") fails-if(MOZ_WIDGET_TOOLKIT=="gtk2") ==
== 498228-1.xul 498228-1-ref.xul
asserts(1) == 496032-1.html 496032-1-ref.html # bug 399262
== 496840-1.html 496840-1-ref.html
== 501037.html 501037-ref.html
== 501257-1a.html 501257-1-ref.html
== 501257-1b.html 501257-1-ref.html
== 501257-1.xhtml 501257-1-ref.xhtml
@ -1380,6 +1381,7 @@ fails HTTP(..) == 518172-2b.html 518172-b-ref.html # bug 518172
== 521525-2.html 521525-2-ref.html
== 521539-1.html 521539-1-ref.html
== 521542-1.xhtml 521542-1-ref.xhtml
== 521602.html 521602-ref.html
== 521685-1.html 521685-1-ref.html
== 522632-1.html 522632-1-ref.html
== 523096-1.html 523096-1-ref.html

View File

@ -0,0 +1,12 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- this is a test for https://bugzilla.mozilla.org/show_bug.cgi?id=521720 -->
<defs>
<svg id="d">
<rect height="50%" width="100%" fill="blue" />
</svg>
</defs>
<use id="u" xlink:href="#d" height="100%" />
</svg>

After

Width:  |  Height:  |  Size: 321 B

View File

@ -0,0 +1,20 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- this is a test for https://bugzilla.mozilla.org/show_bug.cgi?id=521720 -->
<defs>
<svg id="d">
<rect height="50%" width="100%" fill="blue" />
</svg>
</defs>
<use id="u" xlink:href="#d" height="100%" width="11%" />
<script>
function boom()
{
document.getElementById("u").removeAttribute("width");
}
window.addEventListener("load", boom, false);
</script>
</svg>

After

Width:  |  Height:  |  Size: 490 B

View File

@ -66,6 +66,7 @@ include svg-integration/reftest.list
== dynamic-use-01.svg pass.svg
== dynamic-use-02.svg pass.svg
== dynamic-use-nested-01.svg dynamic-use-nested-01-ref.svg
== dynamic-use-remove-width.svg dynamic-use-remove-width-ref.svg
== linked-pattern-01.svg pass.svg
== use-01-extref.svg pass.svg
== use-02-extref.svg use-02-extref-ref.svg

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body style="font-size: 150px;">
&zwj;&#x9BB8;&#x9143;
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
</head>
<body style="font-size: 150px;" onload="document.documentElement.appendChild(document.body);">
&zwj;&#x9BB8;&#x9143;
</body>
</html>

View File

@ -51,6 +51,7 @@ random-if(MOZ_WIDGET_TOOLKIT=="gtk2") != zwnj-01.html zwnj-01-notref.html # Bad
== cgj-01.html cgj-01-ref.html
== 444656.html 444656-ref.html
== 449555-1.html 449555-1-ref.html
== 467722.html 467722-ref.html
random HTTP(..) == 475092-sub.html 475092-ref.html # bug 482596
random HTTP(..) == 475092-pos.html 475092-sub.html # bug 482596
== 476378-soft-hyphen-fallback.html 476378-soft-hyphen-fallback-ref.html

View File

@ -0,0 +1,21 @@
<!DOCTYPE HTML>
<head>
<title>Test for bug 521720</title>
<style type="text/css">
p {
-moz-transform-origin: inherit;
-moz-transform: scale(2);
height: 10px;
width: 10px;
background: green;
margin: 50px;
}
</style>
<head>
<body>
<div id="a">
<p style="font-size: 10px"></p>
</div>
</body>

View File

@ -0,0 +1,21 @@
<!DOCTYPE HTML>
<head>
<title>Test for bug 521720</title>
<style type="text/css">
p {
-moz-transform-origin: inherit;
-moz-transform: scale(2);
height: 10px;
width: 10px;
background: green;
margin: 50px;
}
</style>
<head>
<body onload="document.getElementById('a').style.removeProperty('-moz-transform-origin');">
<div id="a" style="-moz-transform-origin: 10px 10px">
<p style="font-size: 10px"></p>
</div>
</body>

View File

@ -5,6 +5,7 @@
# Multiple transforms should act identically to nested divs.
== compound-1a.html compound-1-ref.html
!= compound-1a.html compound-1-fail.html
== dynamic-inherit-1.html dynamic-inherit-1-ref.html
# translatex should act like position: relative
== translatex-1a.html translatex-1-ref.html
== translatex-1b.html translatex-1-ref.html

View File

@ -0,0 +1,23 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
mover { font-size: 326590449211mm; }
</style>
<script type="text/javascript">
function boom()
{
document.getElementById("r").setAttribute("accentunder", "4");
}
</script>
</head>
<body onload="boom();">
<mover xmlns="http://www.w3.org/1998/Math/MathML" id="mover"><munderover id="r"><merror/><msqrt/></munderover></mover>
</body>
</html>

View File

@ -0,0 +1,5 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:m="http://www.w3.org/1998/Math/MathML">
<body>
<m:ms fontsize="90071992547409pc"><span><m:mfrac><m:mtext fontsize="625%"><m:mfrac>f<m:mrow><m:mstyle scriptlevel="3"><m:msup/></m:mstyle></m:mrow></m:mfrac></m:mtext><m:malignmark/></m:mfrac></span></m:ms>
</body>
</html>

View File

@ -43,6 +43,8 @@ load 473720-1.html
load 473892-1.html
load 473914-1.html
load 478321-1.xhtml
load 512851-1.xhtml
load 539613-1.xhtml
skip load long-url-list-stack-overflow.html # skipped due to being slow (bug 477490)
load 495269-1.html
load 495269-2.html

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function boom()
{
document.getElementById("q").appendChild(document.createElementNS("http://www.w3.org/1999/xhtml", "td"));
}
</script>
</head>
<body onload="boom();">
<table rules="cols"><thead><tr><th colspan="2"></th></tr></thead><tr></tr><tr id="q" style="border-left: 2px dotted yellow;"></tr></table>
</body>
</html>

View File

@ -99,3 +99,4 @@ load 457115.html
load 467141-1.html
load 488388-1.html
load 513732-1.html
load 534716-1.html