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

Unified Diff: LayoutTests/platform/chromium/compositing/video-frame-size-change.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
Index: LayoutTests/platform/chromium/compositing/video-frame-size-change.html
diff --git a/LayoutTests/platform/chromium/compositing/video-frame-size-change.html b/LayoutTests/platform/chromium/compositing/video-frame-size-change.html
deleted file mode 100644
index 8fd0281c973f79923a2fe26b293c5f7f5787c162..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/compositing/video-frame-size-change.html
+++ /dev/null
@@ -1,57 +0,0 @@
-<!DOCTYPE html>
-<html>
- <body onload="load()">
- <p>Tests decoding and rendering a video element that has a changing resolution.</p>
- <video width=320></video>
- <video width=320></video>
- <script>
- if (window.testRunner) {
- testRunner.waitUntilDone();
- }
-
- function load() {
- var canplayCount = 0;
- function oncanplay() {
- if (++canplayCount < 2) {
- return;
- }
- // Make sure we render the first frame.
- if (window.testRunner) {
- testRunner.display();
- }
- video.play();
- };
-
- // Get the first video to stay on frame zero for comparison purposes.
- var video = document.getElementsByTagName("video")[0];
- video.src = "../media/resources/frame_size_change.webm";
- video.addEventListener('canplay', oncanplay);
-
- // Get the second video to play through the clip with changing dimensions.
- video = document.getElementsByTagName("video")[1];
- video.src = "../media/resources/frame_size_change.webm";
- video.addEventListener('canplay', oncanplay);
-
- video.addEventListener('playing', function() {
- // Make sure the video plays for a bit.
- video.addEventListener('timeupdate', function() {
- if (video.currentTime > 1.0) {
- video.pause();
- }
- });
- });
-
- video.addEventListener('pause', function() {
- // Now seek back to a point where resolution should be different.
- video.addEventListener('seeked', function() {
- if (window.testRunner) {
- testRunner.notifyDone();
- }
- });
-
- video.currentTime = 0.5;
- });
- }
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698