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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/constructors/media-key-event-constructor-expected.txt

Issue 1712903002: Remove prefixed EME. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove all prefixed-related code from the EME browser tests. Created 4 years, 10 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 This tests the constructor for the MediaKeyEvent DOM class.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6
7 *** No initializer passed ***
8 PASS new MediaKeyEvent('MediaKeyEvent').bubbles is false
9 PASS new MediaKeyEvent('MediaKeyEvent').cancelable is false
10 PASS new MediaKeyEvent('MediaKeyEvent').keySystem is ""
11 PASS new MediaKeyEvent('MediaKeyEvent').sessionId is ""
12 PASS new MediaKeyEvent('MediaKeyEvent').initData is null
13 PASS new MediaKeyEvent('MediaKeyEvent').message is null
14 PASS new MediaKeyEvent('MediaKeyEvent').defaultURL is ""
15 PASS new MediaKeyEvent('MediaKeyEvent').errorCode is null
16 PASS new MediaKeyEvent('MediaKeyEvent').systemCode is 0
17
18 *** Bubbles and cancelable true, other members are missing ***
19 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).bub bles is true
20 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).can celable is true
21 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).key System is ""
22 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).ses sionId is ""
23 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).ini tData is null
24 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).mes sage is null
25 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).def aultURL is ""
26 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).err orCode is null
27 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true }).sys temCode is 0
28
29 *** Bubbles and cancelable true, invalid other members ***
30 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).bubb les threw exception TypeError: Failed to construct 'MediaKeyEvent': member error Code is not of type MediaKeyError..
31 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).canc elable threw exception TypeError: Failed to construct 'MediaKeyEvent': member er rorCode is not of type MediaKeyError..
32 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).keyS ystem threw exception TypeError: Failed to construct 'MediaKeyEvent': member err orCode is not of type MediaKeyError..
33 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).sess ionId threw exception TypeError: Failed to construct 'MediaKeyEvent': member err orCode is not of type MediaKeyError..
34 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).init Data threw exception TypeError: Failed to construct 'MediaKeyEvent': member erro rCode is not of type MediaKeyError..
35 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).mess age threw exception TypeError: Failed to construct 'MediaKeyEvent': member error Code is not of type MediaKeyError..
36 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).defa ultURL threw exception TypeError: Failed to construct 'MediaKeyEvent': member er rorCode is not of type MediaKeyError..
37 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).erro rCode threw exception TypeError: Failed to construct 'MediaKeyEvent': member err orCode is not of type MediaKeyError..
38 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: undefined, sessionId: undefined, initData: Uint8Array, message: Uint8Array , defaultURL: undefined, errorCode: MediaKeyError, systemCode: undefined }).syst emCode threw exception TypeError: Failed to construct 'MediaKeyEvent': member er rorCode is not of type MediaKeyError..
39
40 *** Initialize 'keySystem' with a invalid values ***
41 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: emptyObject }).keySystem is "[object Object]"
42 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: document }).keySystem is "[ object HTMLDocument]"
43
44 *** Initialize 'sessionId' with a invalid values ***
45 PASS new MediaKeyEvent('MediaKeyEvent', { sessionId: emptyObject }).sessionId is "[object Object]"
46 PASS new MediaKeyEvent('MediaKeyEvent', { sessionId: document }).sessionId is "[ object HTMLDocument]"
47
48 *** Initialize 'initData' with a invalid values ***
49 PASS new MediaKeyEvent('MediaKeyEvent', { initData: 10 }).initData threw excepti on TypeError: Failed to construct 'MediaKeyEvent': member initData is not of typ e Uint8Array..
50 PASS new MediaKeyEvent('MediaKeyEvent', { initData: 'string' }).initData threw e xception TypeError: Failed to construct 'MediaKeyEvent': member initData is not of type Uint8Array..
51 PASS new MediaKeyEvent('MediaKeyEvent', { initData: emptyObject }).initData thre w exception TypeError: Failed to construct 'MediaKeyEvent': member initData is n ot of type Uint8Array..
52 PASS new MediaKeyEvent('MediaKeyEvent', { initData: document }).initData threw e xception TypeError: Failed to construct 'MediaKeyEvent': member initData is not of type Uint8Array..
53
54 *** Initialize 'message' with a invalid values ***
55 PASS new MediaKeyEvent('MediaKeyEvent', { message: 10 }).message threw exception TypeError: Failed to construct 'MediaKeyEvent': member message is not of type U int8Array..
56 PASS new MediaKeyEvent('MediaKeyEvent', { message: 'string' }).message threw exc eption TypeError: Failed to construct 'MediaKeyEvent': member message is not of type Uint8Array..
57 PASS new MediaKeyEvent('MediaKeyEvent', { message: emptyObject }).message threw exception TypeError: Failed to construct 'MediaKeyEvent': member message is not of type Uint8Array..
58 PASS new MediaKeyEvent('MediaKeyEvent', { message: document }).message threw exc eption TypeError: Failed to construct 'MediaKeyEvent': member message is not of type Uint8Array..
59
60 *** Initialize 'defaultURL' with a invalid values ***
61 PASS new MediaKeyEvent('MediaKeyEvent', { defaultURL: emptyObject }).defaultURL is "[object Object]"
62 PASS new MediaKeyEvent('MediaKeyEvent', { defaultURL: document }).defaultURL is "[object HTMLDocument]"
63
64 *** Initialize 'errorCode' with a invalid values ***
65 PASS new MediaKeyEvent('MediaKeyEvent', { errorCode: 10 }).errorCode threw excep tion TypeError: Failed to construct 'MediaKeyEvent': member errorCode is not of type MediaKeyError..
66 PASS new MediaKeyEvent('MediaKeyEvent', { errorCode: 'string' }).errorCode threw exception TypeError: Failed to construct 'MediaKeyEvent': member errorCode is n ot of type MediaKeyError..
67 PASS new MediaKeyEvent('MediaKeyEvent', { errorCode: emptyObject }).errorCode th rew exception TypeError: Failed to construct 'MediaKeyEvent': member errorCode i s not of type MediaKeyError..
68 PASS new MediaKeyEvent('MediaKeyEvent', { errorCode: document }).errorCode threw exception TypeError: Failed to construct 'MediaKeyEvent': member errorCode is n ot of type MediaKeyError..
69
70 *** Initialize 'systemCode' with a invalid values ***
71 PASS new MediaKeyEvent('MediaKeyEvent', { systemCode: 'string' }).systemCode is 0
72 PASS new MediaKeyEvent('MediaKeyEvent', { systemCode: emptyObject }).systemCode is 0
73 PASS new MediaKeyEvent('MediaKeyEvent', { systemCode: document }).systemCode is 0
74
75 *** Bubbles and cancelable true, valid other members ***
76 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). bubbles is true
77 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). cancelable is true
78 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). keySystem is "keySystem"
79 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). sessionId is "sessionId"
80 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). initData is initDataArray
81 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). message is messageArray
82 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). defaultURL is "defaultURL"
83 FAIL new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). errorCode should be non-null. Was null
84 FAIL new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). errorCode.code should be 1. Threw exception TypeError: Cannot read property 'cod e' of null
85 PASS new MediaKeyEvent('MediaKeyEvent', { bubbles: true, cancelable: true, keySy stem: 'keySystem', sessionId: 'sessionId', initData: initDataArray, message: mes sageArray, defaultURL: 'defaultURL', errorCode: errorObject, systemCode: 123 }). systemCode is 123
86
87 *** Initialize with valid members ***
88 FAIL new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).bubbles should be true. Was false .
89 FAIL new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).cancelable should be true. Was fa lse.
90 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).keySystem is "keySystem"
91 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).sessionId is "sessionId"
92 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).initData is initDataArray
93 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).message is messageArray
94 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).defaultURL is "defaultURL"
95 FAIL new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).errorCode should be non-null. Was null
96 FAIL new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).errorCode.code should be 1. Threw exception TypeError: Cannot read property 'code' of null
97 PASS new MediaKeyEvent('MediaKeyEvent', { keySystem: 'keySystem', sessionId: 'se ssionId', initData: initDataArray, message: messageArray, defaultURL: 'defaultUR L', errorCode: errorObject, systemCode: 123 }).systemCode is 123
98
99 PASS successfullyParsed is true
100
101 TEST COMPLETE
102
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698