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

Side by Side Diff: LayoutTests/media/media-controller-expected.txt

Issue 59233014: Setting HTMLMediaElement.controller does not properly remove the 'mediagroup' content attribute (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
1 1
2 Test presence of MediaController constructor, controller, and mediaGroup attribu tes: 2 Test presence of MediaController constructor, controller, and mediaGroup attribu tes:
3 EXPECTED (typeof(MediaController) != 'undefined') OK 3 EXPECTED (typeof(MediaController) != 'undefined') OK
4 EXPECTED (video.controller == 'null') OK 4 EXPECTED (video.controller == 'null') OK
5 EXPECTED (video.mediaGroup == '') OK 5 EXPECTED (video.mediaGroup == '') OK
6 6
7 Test that the presence of a mediaGroup attribute creates a controller: 7 Test that the presence of a mediaGroup attribute creates a controller:
8 EXPECTED (video2.mediaGroup == 'group') OK 8 EXPECTED (video2.mediaGroup == 'group') OK
9 EXPECTED (video2.controller != 'null') OK 9 EXPECTED (video2.controller != 'null') OK
10 10
11 Test that setting mediaGroup to an empty string removes the controller: 11 Test that setting mediaGroup to an empty string removes the controller:
12 RUN(video.mediaGroup = '') 12 RUN(video.mediaGroup = '')
13 EXPECTED (video.controller == 'null') OK 13 EXPECTED (video.controller == 'null') OK
14 14
15 Test manually creating and assigning a controller to a media element: 15 Test manually creating and assigning a controller to a media element:
16 RUN(controller = new MediaController()) 16 RUN(controller = new MediaController())
17 RUN(video.controller = controller) 17 RUN(video.controller = controller)
18 EXPECTED (video.controller == '[object MediaController]') OK 18 EXPECTED (video.controller == '[object MediaController]') OK
19 19
20 Test assigning the wrong type to the controller attribute of a media element: 20 Test assigning the wrong type to the controller attribute of a media element:
21 TEST(video.controller = 42) THROWS("TypeError: Value is not of type MediaControl ler") OK 21 TEST(video.controller = 42) THROWS("TypeError: Failed to set the 'controller' pr operty on 'HTMLMediaElement': The provided value is not of type 'MediaController '.") OK
22 EXPECTED (video.controller == '[object MediaController]') OK 22 EXPECTED (video.controller == '[object MediaController]') OK
23 23
24 Test assigning a null controller to a media element: 24 Test assigning a null controller to a media element:
25 RUN(video.controller = null) 25 RUN(video.controller = null)
26 EXPECTED (video.controller == 'null') OK 26 EXPECTED (video.controller == 'null') OK
27 27
28 Test that two media elements with the same mediaGroup have the same controller: 28 Test that two media elements with the same mediaGroup have the same controller:
29 RUN(video.mediaGroup = 'group') 29 RUN(video.mediaGroup = 'group')
30 RUN(video2.mediaGroup = 'group') 30 RUN(video2.mediaGroup = 'group')
31 EXPECTED (video.controller === video2.controller == 'true') OK 31 EXPECTED (video.controller === video2.controller == 'true') OK
32 END OF TEST 32 END OF TEST
33 33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698