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

Unified Diff: third_party/WebKit/LayoutTests/media/track/track-helpers.js

Issue 2012833002: Convert track-webvtt-tc[016-018] tests to testharness.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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-helpers.js
diff --git a/third_party/WebKit/LayoutTests/media/track/track-helpers.js b/third_party/WebKit/LayoutTests/media/track/track-helpers.js
index f56e8240c4bade51ccc20a5c6806e313b732f08f..f9abc8456d24b4e62350b47c0edc3f1e29a1b788 100644
--- a/third_party/WebKit/LayoutTests/media/track/track-helpers.js
+++ b/third_party/WebKit/LayoutTests/media/track/track-helpers.js
@@ -14,4 +14,13 @@ function assert_cues_equal(cues, expected) {
assert_equals(cues[i].endTime, expected[i].endTime);
assert_equals(cues[i].text, expected[i].text);
}
+}
+
+function assert_cues_equal_by_style(cues, expected) {
fs 2016/05/25 19:49:56 s/style/settings/ maybe
Srirama 2016/05/26 10:47:18 Renamed as assert_cues_match
+ assert_equals(cues.length, expected.length);
+ for (var i = 0; i < cues.length; i++) {
+ assert_equals(cues[i].position, expected[i].position);
+ assert_equals(cues[i].align, expected[i].align);
+ assert_equals(cues[i].vertical, expected[i].vertical);
+ }
}

Powered by Google App Engine
This is Rietveld 408576698