Bug 731706 - fix t1204-reset-02-c-o-test.html intermittent orange by using reftest-wait; r=dholbert

This commit is contained in:
Nathan Froyd 2012-10-27 12:37:00 -04:00
parent 0db8fa4187
commit 82a68ba73d

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"/>
@ -17,12 +17,14 @@
function run() {
document.getElementById("one").setAttribute("class", "reset");
document.getElementById("two").removeAttribute("class");
document.getElementById("two").removeAttribute("class");
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><span id="one"><span class="increment"></span></span></span><span class="increment"></span><span><span id="two" class="reset"><span class="increment"></span></span></span><span class="increment"></span></div>