| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="media-file.js"></script> | 4 <script src="media-file.js"></script> |
| 5 <style> | 5 <style> |
| 6 video { | 6 video { |
| 7 outline: 15px solid blue; | 7 outline: 15px solid blue; |
| 8 border: 15px solid green; | 8 border: 15px solid green; |
| 9 background: orange; | 9 background: orange; |
| 10 padding: 15px; | 10 padding: 15px; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 <script> | 25 <script> |
| 26 if (window.testRunner) { | 26 if (window.testRunner) { |
| 27 testRunner.dumpAsTextWithPixelResults(); | 27 testRunner.dumpAsTextWithPixelResults(); |
| 28 testRunner.waitUntilDone(); | 28 testRunner.waitUntilDone(); |
| 29 } | 29 } |
| 30 | 30 |
| 31 window.onload = function() { | 31 window.onload = function() { |
| 32 if (window.testRunner) { | 32 if (window.testRunner) { |
| 33 document.querySelector('video').oncanplaythrough = function() { | 33 document.querySelector('video').oncanplaythrough = function() { |
| 34 testRunner.setColorProfile('colorSpin', done); | 34 setTimeout(function() { testRunner.notifyDone() }, 0); |
| 35 }; | 35 }; |
| 36 } | 36 } |
| 37 | 37 |
| 38 setSrcByTagName('video', findMediaFile('video', 'content/test')); | 38 setSrcByTagName('video', findMediaFile('video', 'content/test')); |
| 39 }; | 39 }; |
| 40 | |
| 41 function done() { | |
| 42 setTimeout(function() { testRunner.notifyDone() }, 0); | |
| 43 } | |
| 44 </script> | 40 </script> |
| 45 </html> | 41 </html> |
| OLD | NEW |