зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1373193 Part 3: Add a test of insert-after-clone correctness, and remove redundant crashtest. r=xidorn
MozReview-Commit-ID: 4pMGZD3i80s --HG-- rename : layout/style/crashtests/645951-1.css => layout/reftests/stylesheet-cloning/importrule.css rename : layout/style/crashtests/645951-1.html => layout/reftests/stylesheet-cloning/insert-after-clone.html extra : rebase_source : 79a8b268b9931cae6445a001b559f68a4cfc2e92
This commit is contained in:
Родитель
efe1889d82
Коммит
913aaad107
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test insert rule after clone</title>
|
||||
<link rel=stylesheet href="importrule.css">
|
||||
<link id="two" rel=stylesheet href="importrule.css">
|
||||
<body onload="run()">
|
||||
<script>
|
||||
function run() {
|
||||
document.getElementById("two").sheet.insertRule("div { color: green}", 1);
|
||||
}
|
||||
</script>
|
||||
<div>This should be green</div>
|
|
@ -2,5 +2,6 @@ fuzzy-if(webrender,212,342) == counter-style-rule-clone.html glyphs-ref.html # p
|
|||
# because "Dynamic change on @counter-style not yet supported"
|
||||
== document-rule-clone.html shouldbegreen-ref.html
|
||||
== media-rule-clone.html shouldbegreen-ref.html
|
||||
== insert-after-clone.html shouldbegreen-ref.html
|
||||
== style-rule-clone.html shouldbegreen-ref.html
|
||||
== supports-rule-clone.html shouldbegreen-ref.html
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test, bug 645951</title>
|
||||
<body>
|
||||
<p style="color: green">Should not crash, and should be green too.</p>
|
|
@ -1,11 +0,0 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test, bug 645951</title>
|
||||
<link rel=stylesheet href="645951-1.css">
|
||||
<link id="two" rel=stylesheet href="645951-1.css">
|
||||
<body onload="run()">
|
||||
<script>
|
||||
function run() {
|
||||
document.getElementById("two").sheet.insertRule("p { color: green}", 1);
|
||||
}
|
||||
</script>
|
||||
<p>Should not crash, and should be green too.</p>
|
|
@ -75,7 +75,6 @@ load 621596-1.html
|
|||
load 622314-1.xhtml
|
||||
load 637242.xhtml
|
||||
load 645142.html
|
||||
fails-if(stylo) == 645951-1.html 645951-1-ref.html # bug 1367213
|
||||
load 652976-1.svg
|
||||
load 665209-1.html
|
||||
load 671799-1.html
|
||||
|
|
Загрузка…
Ссылка в новой задаче