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

Unified Diff: LayoutTests/media/video-controls-captions-trackmenu-sorted-expected.txt

Issue 14631011: Update TestExpectations entries for previously skipped tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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: LayoutTests/media/video-controls-captions-trackmenu-sorted-expected.txt
diff --git a/LayoutTests/media/video-controls-captions-trackmenu-sorted-expected.txt b/LayoutTests/media/video-controls-captions-trackmenu-sorted-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..706c5e84a7a9729dc2128282f92227c89491f2d8
--- /dev/null
+++ b/LayoutTests/media/video-controls-captions-trackmenu-sorted-expected.txt
@@ -0,0 +1,32 @@
+Test that captions and subtitles are sorted in the menu according to user preferences.
+
+EVENT(canplaythrough)
+
+*** Set the user language preference.
+RUN(internals.setUserPreferredLanguages(['en']))
+
+** Test with preferred language set to English, track type set to captions
+RUN(internals.settings.setShouldDisplayTrackKind('Captions', true))
+TypeError: Cannot read property '0' of undefined
+TypeError: Cannot read property '1' of undefined
+TypeError: Cannot read property '2' of undefined
+TypeError: Cannot read property '3' of undefined
+TypeError: Cannot read property '4' of undefined
+TypeError: Cannot read property '5' of undefined
+TypeError: Cannot read property '6' of undefined
+EXPECTED (video.textTracks.length == '6') OK
+TypeError: Cannot read property 'length' of undefined
+
+** Change preferred language to Japanese, change preference to subtitles
+RUN(internals.setUserPreferredLanguages(['ja']))
+RUN(internals.settings.setShouldDisplayTrackKind('Captions', false))
+RUN(internals.settings.setShouldDisplayTrackKind('Subtitles', true))
+TypeError: Cannot read property '0' of undefined
+TypeError: Cannot read property '1' of undefined
+TypeError: Cannot read property '2' of undefined
+TypeError: Cannot read property '3' of undefined
+EXPECTED (video.textTracks.length == '6') OK
+TypeError: Cannot read property 'length' of undefined
+
+END OF TEST
+

Powered by Google App Engine
This is Rietveld 408576698