1 This tests the constructor for the MediaEncryptedEvent DOM class.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS new MediaEncryptedEvent('eventType').bubbles is false
7 PASS new MediaEncryptedEvent('eventType').cancelable is false
8 PASS new MediaEncryptedEvent('eventType').initDataType is ""
9 PASS new MediaEncryptedEvent('eventType').initData is null
10 PASS new MediaEncryptedEvent('eventType', { bubbles: true, cancelable: true }).bubbles is true
11 PASS new MediaEncryptedEvent('eventType', { bubbles: true, cancelable: true }).cancelable is true
12 PASS new MediaEncryptedEvent('eventType', { bubbles: true, cancelable: true }).initDataType is ""
13 PASS new MediaEncryptedEvent('eventType', { bubbles: true, cancelable: true }).initData is null
14 PASS new MediaEncryptedEvent('eventType', { initDataType: 'foo' }).initDataType is "foo"
15 PASS new MediaEncryptedEvent('eventType', { initData: initData }).initData is initData
16 PASS new MediaEncryptedEvent('eventType', { initData: 'foo' }).initData threw exception TypeError: Failed to construct 'MediaEncryptedEvent': member initData is not of type ArrayBuffer..
17 PASS new MediaEncryptedEvent('eventType', { initData: 1 }).initData threw exception TypeError: Failed to construct 'MediaEncryptedEvent': member initData is not of type ArrayBuffer..
18 PASS successfullyParsed is true