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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-webvtt-tc010-no-timings.html

Issue 1962593002: Convert track-webvtt-tc[008-010] tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test failure Created 4 years, 7 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/track/track-webvtt-tc010-no-timings.html
diff --git a/third_party/WebKit/LayoutTests/media/track/track-webvtt-tc010-no-timings.html b/third_party/WebKit/LayoutTests/media/track/track-webvtt-tc010-no-timings.html
index c8146724ff75bd2755894384c69a87bb6dd17aba..c3385949af6ae4d5b4005cef914a3c362fd426f3 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-webvtt-tc010-no-timings.html
+++ b/third_party/WebKit/LayoutTests/media/track/track-webvtt-tc010-no-timings.html
@@ -1,34 +1,17 @@
<!DOCTYPE html>
-<html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>Tests cue without timings are ignored.</title>
+<script src="track-helpers.js"></script>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<video>
+ <track src="captions-webvtt/tc010-no-timings.vtt" default>
+</video>
+<script>
+async_test(function(t) {
+ var track = document.querySelector("track");
- <script src=../media-file.js></script>
- <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956
- (Please avoid writing new tests using video-test.js) -->
- <script src=../video-test.js></script>
- <script>
-
- function trackLoaded()
- {
- findMediaElement();
- var expected =
- {
- length : 0,
- tests:
- [],
- };
- testCues(0, expected);
-
- endTest();
- }
-
- </script>
- </head>
- <body>
- <p>Tests cue without timings are ignored.</p>
- <video>
- <track src="captions-webvtt/tc010-no-timings.vtt" onload="trackLoaded()" default>
- </video>
- </body>
-</html>
+ track.onload = t.step_func_done(function() {
+ assert_cues_equal(track.track.cues, []);
+ });
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698