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

Unified Diff: chrome/test/data/media/html/media_event.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/csv/testscenario.csv ('k') | chrome/test/data/media/html/media_fps.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_event.html
diff --git a/chrome/test/data/media/html/media_event.html b/chrome/test/data/media/html/media_event.html
deleted file mode 100644
index 7e993d8e4f2a40cea820fd6f05eb51bd57519213..0000000000000000000000000000000000000000
--- a/chrome/test/data/media/html/media_event.html
+++ /dev/null
@@ -1,62 +0,0 @@
-<!--
-This HTML file contains a div for a player which is used for event testing
-(chrome/test/functional/media_event_*.py).
-The query string should contain the following information:
- tag (required): HTML video/audio tag.
- video file (required): video file name.
- t (optional): if specified, disables the media cache.
- actions (optional): add a list of triples (time, action, action_argument)
- delimited by '|'. For example, '3000|seek|5000' means 'at second 3, seek
- to second 5'. Possible actions are 'play', 'pause', 'seek', or
- 'ratechange'. Time and action_arugment is in milliseconds. 'play' and
- 'pause' should have dummy action_argument, which is ignored.
-
-Example: "media_event.html?tag=video&media=foo.webm&t=t&actions=3000|seek|5000"
--->
-<html>
-<body>
-<div id='player_container'></div>
-<script type='text/javascript' src='player.js'></script>
-<script>
-var events = ['abort', 'canplay', 'canplaythrough', 'durationchange', 'emptied',
- 'ended', 'error', 'load', 'loadeddata', 'loadedmetadata',
- 'loadstart', 'pause', 'play', 'playing', 'progress',
- 'ratechange', 'seeked', 'seeking', 'stalled', 'suspend',
- 'timeupdate', 'volumechange', 'waiting',
- 'cuechange', 'enter', 'exit', 'change'];
-
-var startTime = 0
-
-var table = document.createElement('table');
-table.id = 'event';
-document.body.appendChild(table);
-
-function recordEventTime(evt) {
- // Record the time when an event happens.
- var time = new Date().getTime() - startTime
- document.getElementById(evt.type).innerHTML += time + ' '
-}
-
-var player = document.getElementById('player');
-
-for (var event in events) {
- var row = document.createElement('tr');
- var eventNameColumn = document.createElement('td');
- eventNameColumn.innerHTML = events[event];
- var eventValueColumn = document.createElement('td');
- eventValueColumn.innerHTML = '';
- eventValueColumn.id = events[event];
- row.appendChild(eventNameColumn);
- row.appendChild(eventValueColumn);
- table.appendChild(row)
- player.addEventListener(events[event], recordEventTime, false);
-}
-
-if (ok) {
- startTime = new Date().getTime();
- player.play();
-}
-</script>
-</body>
-</html>
-
« no previous file with comments | « chrome/test/data/media/csv/testscenario.csv ('k') | chrome/test/data/media/html/media_fps.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698