| OLD | NEW |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | 1 <!DOCTYPE html> |
| 2 "http://www.w3.org/TR/html4/strict.dtd"> | 2 <title>Testing that overloading some controls doesn't crash the browser</title> |
| 3 | 3 <script src="../resources/testharness.js"></script> |
| 4 <html> | 4 <script src="../resources/testharnessreport.js"></script> |
| 5 <head> | 5 <script src="media-file.js"></script> |
| 6 <title>Testing that overloading some controls doesn't crash the browser</tit
le> | 6 <style> |
| 7 <style> | 7 .nocontrols::-webkit-media-controls-panel { |
| 8 .nocontrols::-webkit-media-controls-panel{ | 8 display:none; |
| 9 display:none; | 9 } |
| 10 } | 10 .notimeline::-webkit-media-controls-timeline-container { |
| 11 .notimeline::-webkit-media-controls-timeline-container{ | 11 display:none; |
| 12 display:none; | 12 } |
| 13 } | 13 </style> |
| 14 </style> | 14 <video class="nocontrols" width=300 height=200 controls></video> |
| 15 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 15 <video class="notimeline" width=300 height=200 controls></video> |
| 16 (Please avoid writing new tests using video-test.js) --> | 16 <script> |
| 17 <script src=video-test.js></script> | 17 test(function() { |
| 18 </head> | 18 // Test is complete if there is no crash. |
| 19 <body> | 19 }); |
| 20 <video class="nocontrols" width=300 height=200 controls></video> | 20 </script> |
| 21 <video class="notimeline" width=300 height=200 controls></video> | |
| 22 <script> | |
| 23 consoleWrite("I did not crash"); | |
| 24 endTest(); | |
| 25 </script> | |
| 26 </body> | 21 </body> |
| 27 </html> | 22 </html> |
| OLD | NEW |