2011-01-10 Jer Noble <jer.noble@apple.com>
[WebKit-https.git] / LayoutTests / fullscreen / full-screen-remove-expected.txt
index 8dc2714..d9a0ab3 100644 (file)
@@ -1,41 +1,6 @@
-
 EVENT(webkitfullscreenchange)
 EXPECTED (document.webkitCurrentFullScreenElement == '[object HTMLElement]') OK
 EVENT(webkitfullscreenchange)
 EXPECTED (document.webkitCurrentFullScreenElement == '[object HTMLHtmlElement]') OK
 END OF TEST
 
-
-
-    // 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 callback;
-        var fullscreenChanged = function(event)
-        {
-            if (callback)
-                callback(event)
-        };
-        waitForEvent(document, 'webkitfullscreenchange', fullscreenChanged);
-    
-        var span = document.getElementsByTagName('span')[0];
-    
-        var spanEnteredFullScreen = function(event) {
-            callback = documentEnteredFullScreen;
-            testExpected("document.webkitCurrentFullScreenElement", span);
-            span.parentNode.removeChild(span);
-        };
-    
-        var documentEnteredFullScreen = function(event) {
-            callback = null;
-            testExpected("document.webkitCurrentFullScreenElement", document.documentElement);
-            endTest();
-        };
-    
-        callback = spanEnteredFullScreen;
-        span.webkitRequestFullScreen();
-    }
-
-