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

Side by Side Diff: chrome/test/data/media/html/media_cpu_perf.html

Issue 9464004: Fix CPU and memory perf PyAuto test running on av_perf. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!-- Used by media_cpu_perf to calculate CPU performance statistics. -->
2
3 <!DOCTYPE html>
4 <html lang="en-US">
5 <head>
6 <title>CPU and Memory Perf Test</title>
7 </head>
8
9 <body>
10 <video preload controls></video>
11 </body>
12
13 <script type="text/javascript">
14 var video = document.querySelector("video");
15
16 video.addEventListener("error", function() { endTest(false); }, false);
17 video.addEventListener("ended", function() { endTest(true); }, false);
18
19 function endTest(successFlag) {
20 // Notify PyAuto that we've completed the test run.
21 if (window.domAutomationController)
22 window.domAutomationController.send(successFlag);
23 }
24
25 function startTest(url) {
26 video.src = url;
27 video.play();
28 }
29 </script>
30 </html>
OLDNEW
« no previous file with comments | « no previous file | chrome/test/functional/media/media_cpu_perf.py » ('j') | chrome/test/functional/media/media_cpu_perf.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698