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

Side by Side Diff: LayoutTests/media/track/track-webvtt-tc029-timings-whitespace.html

Issue 15651003: [WebVTT] HTML5 "space" characters around "-->" are not required (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
6 <script src=../media-file.js></script>
7 <script src=../video-test.js></script>
8 <script>
9
10 numberOfTrackTests = 1;
11
12 function trackLoaded()
13 {
14 numberOfTracksLoaded++;
15 if (numberOfTracksLoaded == numberOfTrackTests) {
16 testTrack0();
17 }
18 }
19
20 function testTrack0()
21 {
22 findMediaElement();
23 var expected =
24 {
25 length: 12,
26 tests:
27 [
28 {
29 property: "id",
30 values: ["1","2","3","4","5","6","7","8","9","10","1 1","12"],
31 },
32 {
33 property: "startTime",
34 values: [ "0.1","0.1","0.1","0.1","0.1","0.1","0.1", "0.1","0.1","0.1","0.1","0.1"],
35 },
36 {
37 property: "endTime",
38 values: [ "1.5","1.5","1.5","1.5","1.5","1.5","1.5", "1.5","1.5","1.5","1.5","1.5"],
39 },
40 {
41 property: "text",
42 values:
43 [
44 'Single U+0020 SPACE left of cue-timings separator "-->"',
45 'Single U+0020 SPACE right of cue-timings separato r "-->"',
46 'Single U+0009 TAB left of cue-timings separator " -->"',
47 'Single U+0009 TAB right of cue-timings separator "-->"',
48 'Single U+000C FORM FEED left of cue-timings separ ator "-->"',
49 'Single U+000C FORM FEED right of cue-timings sepa rator "-->"',
50 'Several U+0020 SPACE left of cue-timings separato r "-->"',
51 'Several U+0020 SPACE right of cue-timings separat or "-->"',
52 'Several U+0009 TAB left of cue-timings separator "-->"',
53 'Several U+0009 TAB right of cue-timings separator "-->"',
54 'Several U+000C FORM FEED left of cue-timings sepa rator "-->"',
55 'Several U+000C FORM FEED right of cue-timings sep arator "-->"',
56 ],
57 },
58 ],
59 };
60 testCues(0, expected);
61
62 allTestsEnded();
63 }
64 </script>
65 </head>
66 <body onload="enableAllTextTracks()">
67 <p>Tests that "Skip whitespace" step around cue-timings separator is worki ng correctly.</p>
68 <video>
69 <track src="captions-webvtt/tc029-timings-whitespace.vtt" onload="tr ackLoaded()">
70 </video>
71 </body>
72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698