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

Unified Diff: chrome/test/data/media/html/media_fps.html

Issue 9666032: Cleanup deprecated PyAuto media tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update year. Created 8 years, 9 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 | « chrome/test/data/media/html/media_event.html ('k') | chrome/test/data/media/html/media_perf.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/media/html/media_fps.html
diff --git a/chrome/test/data/media/html/media_fps.html b/chrome/test/data/media/html/media_fps.html
deleted file mode 100644
index d73b5e6d56cc03411fb4a7affa91f2a8563a7724..0000000000000000000000000000000000000000
--- a/chrome/test/data/media/html/media_fps.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!--
-This HTML file contains a div for a player which is used for FPS (frame per second)
-testing (chrome/test/functional/media_fps.py).
-The query string should contain the following information:
- tag (optional): HTML video/audio tag (default is video).
- media (required): media file name.
- t (optional): if specified, disables the media cache.
-
- Example: "media_fps.html?tag=video&media=foo.webm&t=t"
--->
-<html>
-<body>
-<div id='player_container'></div>
-<div id='console'></div>
-<br>
-<div id='history'></div>
-<script type='text/javascript' src='player.js'></script>
-<script>
-var previous_play_time = 0;
-var previous_clock_time = 0;
-var previous_framecount = 0;
-var previous_dropcount = 0;
-var start_clock_time = 0;
-
-function timeUpdateHandler() {
- // Get FPS information and print it to the console.
- var container = document.getElementById('console');
- var current_play_time = player.currentTime;
- var current_clock_time = new Date().getTime();
- var current_clock_elapsed_time = (current_clock_time - start_clock_time)
- / 1000;
- var current_framecount = player.webkitDecodedFrameCount;
- var current_dropcount = player.webkitDroppedFrameCount;
- var delta_play_time = current_play_time - previous_play_time;
- var delta_clock_time = current_clock_time - previous_clock_time;
- var delta_frame = current_framecount - previous_framecount;
- var delta_drop = current_dropcount - previous_dropcount;
- var play_fps = delta_frame / delta_play_time;
- var clock_fps = delta_frame / delta_clock_time * 1000;
- container.innerHTML =
- '<div id="play_time">player.currentTime:' + current_play_time +
- '</div>' + '<div id="clock_time">clock_time:' +
- current_clock_elapsed_time + '</div>' +
- '<div id="play_fps">play_fps:' + play_fps + '</div>' +
- '<div id="clock_fps">clock_fps:' + clock_fps + '</div>' +
- '<div id="drop">dropped frame:' + delta_drop + '</div>';
- var history = document.getElementById('history');
- history.innerHTML += current_play_time + ' ' +
- current_clock_elapsed_time + ' ' + play_fps +
- ' ' + clock_fps + ' ' + delta_drop + '<br>';
- previous_play_time = current_play_time;
- previous_clock_time = current_clock_time;
- previous_framecount = current_framecount;
- previous_dropcount = current_dropcount;
-}
-
-tid = setInterval(timeUpdateHandler, 500);
-InstallEventHandler('ended',
- 'document.title = "END"; clearInterval(tid);');
-start_clock_time = new Date().getTime();
-
-if (ok) {
- player.play();
-}
-</script>
-
-</body>
-</html>
« no previous file with comments | « chrome/test/data/media/html/media_event.html ('k') | chrome/test/data/media/html/media_perf.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698