Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / noscript-ignored.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 <body id="body">
7
8 <canvas width="200" height="100" id="canvas"><noscript><img id='hidden-image' src='resources/cake.png'></noscript></canvas>
9
10 <p id="description"></p>
11 <div id="console"></div>
12
13 <script>
14
15     description("This tests that elements inside noscript are ignored when making the accessible canvas children.");
16
17     var c = document.getElementById("canvas");
18     var ctx = c.getContext("2d");
19     ctx.fillStyle = "#FF0000";
20     ctx.fillRect(0, 0, 150, 75);
21
22     if (window.accessibilityController) {
23         var canvas = accessibilityController.accessibleElementById("canvas");
24         shouldBe("canvas.childrenCount", "0");
25     }
26
27 </script>
28
29 <script src="../resources/js-test-post.js"></script>
30 </body>
31 </html>