1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01//EN">
4 <title>2 renderers
1 counter reset failure.
</title>
5 <meta name=
"assert" content=
"When a Counter node is destroyed all its display renderers must be reset.">
6 <style type=
"text/css">
9 content: "First Counter:" counters
(test
, ".") " Second Counter:" counters
(test
, ".");
12 counter-reset: test
1;
15 counter-reset: test
1000;
19 <script src=
"../../../resources/js-test.js"></script>
20 <script type=
"text/javascript">
22 description("This test passes if both the first and the second counter are 1000.");
24 if (window
.testRunner
) {
25 testRunner
.dumpAsText();
26 testRunner
.waitUntilDone();
31 document
.getElementById("testView").setAttribute("class", "counter1000");
32 if (!window
.testRunner
)
34 shouldBe("window.internals.counterValue(document.getElementById('testView'))", "'1000 1000'");
36 if (window
.testRunner
)
37 testRunner
.notifyDone();
45 <div id=
"testView" class=
"counter1"></div>