Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(55)

Unified Diff: LayoutTests/fullscreen/full-screen-iframe-legacy.html

Issue 1240573005: Make video.webkitSupportsFullscreen an alias of document.fullscreenEnabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: move comments to assert descriptions Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fullscreen/full-screen-iframe-legacy.html
diff --git a/LayoutTests/fullscreen/full-screen-iframe-legacy.html b/LayoutTests/fullscreen/full-screen-iframe-legacy.html
index 886275a5587a19c0e3ddeabb6bf38f172d5ee892..3c0aa98b7a2d6bfbb12ccef6142839119696118c 100644
--- a/LayoutTests/fullscreen/full-screen-iframe-legacy.html
+++ b/LayoutTests/fullscreen/full-screen-iframe-legacy.html
@@ -2,25 +2,21 @@
<script src="full-screen-test.js"></script>
<script src="../media/media-file.js"></script>
<script>
+var frame, video;
function canplaythrough() {
- var frame = document.getElementById('frame');
-
+ testExpected("video.webkitDisplayingFullscreen", false);
runWithKeyDown(function() {
- var video = frame.contentDocument.getElementsByTagName('video')[0];
video.webkitEnterFullScreen();
});
+ waitForEventAndEnd(frame.contentDocument, "webkitfullscreenerror");
}
function runTest() {
- var frame = document.getElementById('frame');
-
- waitForEventAndEnd(frame.contentDocument, 'webkitfullscreenerror');
-
- var video = frame.contentDocument.getElementsByTagName('video')[0];
- var mediaFile = findMediaFile("video", "../../media/content/test");
- video.src = mediaFile;
- video.addEventListener('canplaythrough', canplaythrough);
+ frame = document.getElementById("frame");
+ video = frame.contentDocument.querySelector("video");
+ video.src = findMediaFile("video", "../../media/content/test");
+ video.addEventListener("canplaythrough", canplaythrough);
}
</script>
<iframe id="frame" src="resources/legacy.html" onload="runTest()" width="336" height="256">
« no previous file with comments | « no previous file | LayoutTests/fullscreen/full-screen-iframe-legacy-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698