Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fullscreen / full-screen-iframe-zIndex.html
index 06d9711..44b5afd 100644 (file)
@@ -3,20 +3,14 @@
     <head>
         <script>
             var runPixelTests = true;
-            
+
             function init() {
-                // Bail out early if the full screen API is not enabled or is missing:
-                if (Element.prototype.webkitRequestFullScreen == undefined) {
-                    logResult(false, "Element.prototype.webkitRequestFullScreen == undefined");
-                    endTest();
-                } else {
-                    var iframe = document.getElementById('block1');
-                    var element = iframe.contentDocument.documentElement;
-                    waitForEventAndEnd(element, 'webkitfullscreenchange');
-                    runWithKeyDown(goFullScreen);
-                }
+                var iframe = document.getElementById('block1');
+                var element = iframe.contentDocument.documentElement;
+                waitForEventAndEnd(element, 'webkitfullscreenchange');
+                runWithKeyDown(goFullScreen);
             }
-            
+
             function goFullScreen() {
                var iframe = document.getElementById('block1');
                var element = iframe.contentDocument.documentElement;
         </style>
     </head>
     <body onload="init()">
-        <div>This tests that an element with a positive z-index appears behind the full screen element.  
-             After entering full screen mode, only a white box should be visible.
+        <div>This tests that an element with a positive z-index appears behind the full screen element.
+             After entering full screen mode, the whole screen should be white.
              Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
         <div id="block2"></div>
-        <iframe webkitallowfullscreen src="resources/inner.html" id="block1"></iframe>
+        <iframe allowfullscreen src="resources/empty.html" id="block1"></iframe>
     </body>
+</html>