Bug 806147 - fix reftests that use setTimeout but not reftest-wait to include reftest-wait; r=dholbert

This commit is contained in:
Nathan Froyd 2012-10-27 12:35:42 -04:00
parent 2b56bdcbe6
commit d88281eec3
5 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,4 @@
<html>
<html class="reftest-wait">
<head>
</head>
<body style="direction: rtl;">
@ -13,6 +13,7 @@ var a=document.getElementById('a');
a.style.outline = '1px solid transparent';
document.body.offsetHeight;
a.style.outline = '';
document.documentElement.removeAttribute('class');
}
setTimeout(doe, 500);
</script>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/>
@ -21,11 +21,13 @@
s.setAttribute("class", "increment");
s.appendChild(document.createTextNode("new-"));
t.insertBefore(s, t.childNodes.item(1));
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", run, false);
</script>
</head>
<body onload="setTimeout('run()', 0)">
<body>
<div id="test"><span class="increment"></span><span class="increment"></span><span class="increment"></span></div>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/>
@ -18,11 +18,13 @@
function run() {
var t = document.getElementById("test");
t.removeChild(t.childNodes.item(1));
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", run, false);
</script>
</head>
<body onload="setTimeout('run()', 0)">
<body>
<div id="test"><span class="increment"></span><span class="increment">FAIL-</span><span class="increment"></span><span class="increment"></span></div>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/>
@ -20,11 +20,13 @@
document.getElementById("one").removeAttribute("class");
document.getElementById("two").setAttribute("class", "increment");
document.getElementById("three").setAttribute("style", "counter-increment: c");
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", run, false);
</script>
</head>
<body onload="setTimeout('run()', 0)">
<body>
<div id="test"><span id="one" class="increment"></span><span><span class="reset"><span class="increment"></span><span id="two" class="increment"></span></span></span><span id="three" class="use"></span><span class="increment"></span></div>

View File

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<head>
<title>CSS 2.1 Test Suite: dynamic changes to 'counter-increment'</title>
<link rel="help" href="http://www.w3.org/TR/CSS21/generate.html#counters"/>
@ -18,11 +18,13 @@
function run() {
var t = document.getElementById("test");
t.removeChild(t.childNodes.item(1));
document.documentElement.removeAttribute('class');
}
document.addEventListener("MozReftestInvalidate", run, false);
</script>
</head>
<body onload="setTimeout('run()', 0)">
<body>
<div id="test"><span class="increment"></span><span class="reset"></span><span class="increment"></span><span class="increment"></span></div>