OLD | NEW |
1 <video controls></video> | 1 <!DOCTYPE html> |
2 <p>Test that QuickTime file with unsupported track types only generates an error
.<p> | 2 <title>Test that QuickTime file with unsupported track types only, generates an
error.</title> |
3 <script src=media-file.js></script> | 3 <script src="../resources/testharness.js"></script> |
4 <!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956 | 4 <script src="../resources/testharnessreport.js"></script> |
5 (Please avoid writing new tests using video-test.js) --> | 5 <script src="media-file.js"></script> |
6 <script src=video-test.js></script> | 6 <video></video> |
7 <script> | 7 <script> |
8 video.src = findMediaFile("video", "content/unsupported_track"); | 8 async_test(function(t) { |
9 waitForEvent("error", function () { | 9 var video = document.querySelector("video"); |
10 testExpected("video.error", null, "!="); | 10 video.src = findMediaFile("video", "content/unsupported_track"); |
11 endTest(); | 11 video.onerror = t.step_func_done(); |
12 }); | 12 }); |
13 </script> | 13 </script> |
OLD | NEW |