Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / add-children-pseudo-element.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6
7 <style>
8 .pseudo::after {
9   content: url(resources/svg-circle.svg);
10   width: 18px;
11   height: 20px;
12   position: absolute;
13   margin-top: 6px;
14   right: 6px
15 }
16
17 .pseudo.hidden::after {
18     content: ' ';
19 }
20 </style>
21
22 <body id="body">
23
24 <div id="container">
25 <div id="test" style="float : left;">
26 <span>Language</span>
27 <input id="test">
28 </div>
29
30 <div id="float" style="display: inline-block;" class="pseudo">
31 <span required="" style="color: rgb(194, 0, 0);">Email</span>
32 <input type="text" required="" aria-required="true" value="" onkeyup="hidePseudo();">
33 </div>
34
35 </div>
36
37 <p id="description"></p>
38 <div id="console"></div>
39
40 <script>
41
42     description("Make sure that we are updating the render block flow element's children correctly.");
43
44     if (window.accessibilityController) {
45         var element = accessibilityController.accessibleElementById("float");
46         if (accessibilityController.platformName != "atk")
47             shouldBe("element.childrenCount", "3");
48         else
49             shouldBe("element.childrenCount", "2");
50         
51         eventSender.keyDown('\t');
52         eventSender.keyDown('\t');
53         
54         if (accessibilityController.platformName != "atk")
55             shouldBe("element.childrenCount", "2");
56         else
57             shouldBe("element.childrenCount", "1");
58         showPseudo();
59         
60         function hidePseudo() {
61             document.getElementById("float").className += "hidden"
62         }
63         
64         function showPseudo() {
65             document.getElementById("float").className = "pseudo";
66         }
67                 
68         // Make sure getting the attributes of its children won't cause crash
69         element.attributesOfChildren();
70     }
71
72 </script>
73
74 <script src="../resources/js-test-post.js"></script>
75 </body>
76 </html>