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

Unified Diff: LayoutTests/platform/chromium/media/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/media/video-frame-size-change.html
diff --git a/LayoutTests/platform/chromium/media/video-frame-size-change.html b/LayoutTests/platform/chromium/media/video-frame-size-change.html
deleted file mode 100644
index 2048725e951f358cb0c426be6fecaa60c12ed917..0000000000000000000000000000000000000000
--- a/LayoutTests/platform/chromium/media/video-frame-size-change.html
+++ /dev/null
@@ -1,83 +0,0 @@
-<!DOCTYPE html>
-<html>
- <body onload="load()">
- <p>Test that a video element scales decoded frames to match the initial size
- as opposed to changing the size of the element.</p>
- <video width="320"></video>
- <video></video>
-
- <script>
- if (window.testRunner) {
- testRunner.waitUntilDone();
- }
-
- function load() {
- var video = document.getElementsByTagName("video")[1];
- var video_fixed_size = document.getElementsByTagName("video")[0];
- video.src = "resources/frame_size_change.webm";
- video_fixed_size.src = "resources/frame_size_change.webm";
-
- var canplayCount = 0;
- function oncanplay() {
- if (++canplayCount < 2) {
- return;
- }
-
- // Make sure we render the first frame.
- if (window.testRunner) {
- testRunner.display();
- }
-
- video.play();
- video_fixed_size.play();
- };
- video.addEventListener('canplay', oncanplay);
- video_fixed_size.addEventListener('canplay', oncanplay);
-
- var playingCount = 0;
- function onplaying() {
- if (++playingCount < 2) {
- return;
- }
-
- // Make sure both videos play for a bit.
- function ontimeupdate(e) {
- if (e.target.currentTime > 1.0) {
- e.target.pause();
- }
- };
- video.addEventListener('timeupdate', ontimeupdate);
- video_fixed_size.addEventListener('timeupdate', ontimeupdate);
- };
- video.addEventListener('playing', onplaying);
- video_fixed_size.addEventListener('playing', onplaying);
-
- var pauseCount = 0;
- function onpause() {
- if (++pauseCount < 2) {
- return;
- }
-
- var seekedCount = 0;
- function onseeked() {
- if (++seekedCount < 2) {
- return;
- }
-
- if (window.testRunner) {
- testRunner.notifyDone();
- }
- }
-
- video.addEventListener('seeked', onseeked);
- video_fixed_size.addEventListener('seeked', onseeked);
-
- video.currentTime = 1.0;
- video_fixed_size.currentTime = 0.5;
- };
- video.addEventListener('pause', onpause);
- video_fixed_size.addEventListener('pause', onpause);
- }
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698