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

Side by Side Diff: LayoutTests/media/media-captions-no-controls-expected.txt

Issue 411833006: Use the mediaControlsButton() helper more in media tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/media/media-captions-no-controls.html ('k') | LayoutTests/media/media-controls.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Tests that adding a text track does not make controls visible. 1 Tests that adding a text track does not make controls visible.
2 2
3 EVENT(canplaythrough) 3 EVENT(canplaythrough)
4 4
5 ** Initial state: no text tracks, controls should not be visible ** 5 ** Initial state: no text tracks, controls should not be visible **
6 EXPECTED (video.textTracks.length == '0') OK 6 EXPECTED (video.textTracks.length == '0') OK
7 EXPECTED (video.controls == 'false') OK 7 EXPECTED (video.controls == 'false') OK
8 EXPECTED (internals.shadowRoot(video).firstChild == 'null') OK 8 EXPECTED (internals.shadowRoot(video).firstChild == 'null') OK
9 9
10 ** Add a text track, controls should not become visible ** 10 ** Add a text track, controls should not become visible **
11 RUN(video.addTextTrack('captions')) 11 RUN(video.addTextTrack('captions'))
12 EXPECTED (video.textTracks.length == '1') OK 12 EXPECTED (video.textTracks.length == '1') OK
13 EXPECTED (video.controls == 'false') OK 13 EXPECTED (video.controls == 'false') OK
14 EXPECTED (internals.shadowRoot(video).firstChild == 'null') OK 14 EXPECTED (internals.shadowRoot(video).firstChild == 'null') OK
15 15
16 ** Enable controls ** 16 ** Enable controls **
17 RUN(video.setAttribute('controls','controls')) 17 RUN(video.setAttribute('controls','controls'))
18 EXPECTED (video.textTracks.length == '1') OK 18 EXPECTED (video.textTracks.length == '1') OK
19 EXPECTED (video.controls == 'true') OK 19 EXPECTED (video.controls == 'true') OK
20 EXPECTED (internals.shadowRoot(video).firstChild != 'null') OK 20 EXPECTED (internals.shadowRoot(video).firstChild != 'null') OK
21 EXPECTED (controlsElement.style['display'] != 'none') OK 21 EXPECTED (panel.style['display'] != 'none') OK
22 22
23 END OF TEST 23 END OF TEST
24 24
OLDNEW
« no previous file with comments | « LayoutTests/media/media-captions-no-controls.html ('k') | LayoutTests/media/media-controls.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698