4 <script src=
"../resources/js-test.js"></script>
7 ol li::before { content: counter(l1)
":"; counter-increment: l1;}
8 ol li { list-style-type: decimial; display: block; }
11 <div id=
"container" style=
"counter-reset:l1;">
12 <ol style=
"list-style-type:decimal">
19 <div id=
"description"></div>
20 <div id=
"console"></div>
24 description("This tests that the text for LayoutCounter is exposed correctly.")
26 if (window
.testRunner
&& window
.accessibilityController
) {
28 var line1
= accessibilityController
.accessibleElementById("line1");
29 shouldBe("line1.childAtIndex(0).stringValue", "'AXValue: 1'");
30 shouldBe("line1.childAtIndex(1).stringValue", "'AXValue: :'");
31 shouldBe("line1.childAtIndex(2).stringValue", "'AXValue: line1'");
33 var line2
= accessibilityController
.accessibleElementById("line2");
34 shouldBe("line2.childAtIndex(0).stringValue", "'AXValue: 2'");
35 shouldBe("line2.childAtIndex(1).stringValue", "'AXValue: :'");
36 shouldBe("line2.childAtIndex(2).stringValue", "'AXValue: line2'");
38 document
.getElementById("container").style
.display
= "none";