Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fullscreen / full-screen-remove-ancestor-during-transition.html
index c28b2f7..735c520 100644 (file)
@@ -1,3 +1,4 @@
+<!DOCTYPE html>
 <script src="../resources/js-test.js"></script>
 <script>
 if (window.testRunner) {
@@ -14,12 +15,7 @@ function runWithKeyDown(fn)
 }
 
 function init() {
-    // Bail out early if the full screen API is not enabled or is missing:
-    if (Element.prototype.webkitRequestFullScreen == undefined) {
-        alert("Fullscreen API not available.");
-    } else {
-        runWithKeyDown(goFullScreen);
-    }
+    runWithKeyDown(goFullScreen);
 }
 
 function goFullScreen() {
@@ -35,9 +31,10 @@ function goFullScreen() {
         }, 0);
     }, 0);
     element.webkitRequestFullScreen();
+    shouldNotBe("document.webkitFullscreenElement", "null");
 }
 </script>
 <body onload="init()">
-    <iframe webkitallowfullscreen src="resources/inner.html" id="block1"></iframe>
+    <iframe allowfullscreen src="resources/inner.html" id="block1"></iframe>
     PASS
 </body>