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

Unified Diff: third_party/WebKit/LayoutTests/media/unsupported-tracks.html

Issue 2062673002: Convert unsupported* and video-append* tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/media/unsupported-tracks.html
diff --git a/third_party/WebKit/LayoutTests/media/unsupported-tracks.html b/third_party/WebKit/LayoutTests/media/unsupported-tracks.html
index 77ed01c35e9dc029b3bcea829527b24b3551a284..f1fd3bcd4a30008f1d947f26f2706c48eaa5cbbb 100644
--- a/third_party/WebKit/LayoutTests/media/unsupported-tracks.html
+++ b/third_party/WebKit/LayoutTests/media/unsupported-tracks.html
@@ -1,13 +1,13 @@
-<video controls></video>
-<p>Test that QuickTime file with unsupported track types only generates an error.<p>
-<script src=media-file.js></script>
-<!-- TODO(foolip): Convert test to testharness.js. crbug.com/588956
- (Please avoid writing new tests using video-test.js) -->
-<script src=video-test.js></script>
+<!DOCTYPE html>
+<title>Test that QuickTime file with unsupported track types only, generates an error.</title>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script src="media-file.js"></script>
+<video></video>
<script>
-video.src = findMediaFile("video", "content/unsupported_track");
-waitForEvent("error", function () {
- testExpected("video.error", null, "!=");
- endTest();
+async_test(function(t) {
+ var video = document.querySelector("video");
+ video.src = findMediaFile("video", "content/unsupported_track");
+ video.onerror = t.step_func_done();
});
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698