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

Side by Side Diff: LayoutTests/media/track/track-language-preference-no-crash.html

Issue 1224083013: Gracefully handle track-less elements on updating track selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/media/track/track-language-preference-no-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
6 <style>
7 video { background-color: yellow; width: 320px; height: 240px;}
8 </style>
9 <script src=../media-file.js></script>
10 <script src=../video-test.js></script>
11 <script>
12 function setPreferences()
13 {
14 if (!window.internals) {
15 consoleWrite("<b>** This test only works in DRT! **<" + "/b> ");
16 return;
17 }
18
19 consoleWrite("<i>**Set user preferred languages<" + "/i>");
20 run("internals.setUserPreferredLanguages(['jp', 'es-ES', 'en', ' fr'])");
21 window.internals.settings.setTextTrackKindUserPreference('captio ns');
22 }
23
24 function setup()
25 {
26 var video = document.createElement("video");
27 setPreferences();
28 endTest();
29 }
30
31 </script>
32 </head>
33 <body onload="setup()">
34 <p>Tests that setting preferences on a track-less video element does not crash.</p>
35 <video>
36 </video>
37 </body>
38 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/track/track-language-preference-no-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698