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

Side by Side Diff: chrome/test/data/android/media/video-play.html

Issue 2425293003: [Android, Media, Test] Fix VideoTest.java on low-end devices (Closed)
Patch Set: Accidental blank line removed Created 4 years, 2 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
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/video/VideoTest.java ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <title>test</title> 2 <title>test</title>
3 <body bgcolor="Silver"> 3 <body bgcolor="Silver">
4 <video id='video1' src="test.webm" controls></video> 4 <video id='video1' src="test.webm" controls></video>
5 <script> 5 <script>
6 var video = document.getElementById('video1'); 6 var video = document.getElementById('video1');
7 var mediaElement = video; 7 var mediaElement = video;
8 8
9 video.oncanplaythrough = function() { 9 video.oncanplaythrough = function() {
10 document.title = 'ready_to_play'; 10 document.title = 'ready_to_play';
11 } 11 }
12 12
13 video.onended = function(e) { 13 video.onended = function(e) {
14 document.title = 'ended'; 14 document.title = 'ended';
15 } 15 }
16 16
17 function playvideo() { 17 function playvideo() {
18 mediaElement.play(); 18 mediaElement.play();
19 } 19 }
20 20
21 mediaElement.load();
21 </script> 22 </script>
22 <button id="button1" onclick="playvideo()">Click me</button> 23 <button id="button1" onclick="playvideo()">Click me</button>
23 </body> 24 </body>
24 </html> 25 </html>
OLDNEW
« no previous file with comments | « chrome/android/javatests/src/org/chromium/chrome/browser/video/VideoTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698