blob: 4c5184909deb08947c4e9bab289844d2036782ee [file] [log] [blame]
This tests the constructor for the ApplicationCacheErrorEvent DOM class.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
FAIL new ApplicationCacheErrorEvent('eventType').bubbles should be false. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType').cancelable should be false. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType').reason should be . Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType').url should be . Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType').status should be 0. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType').message should be . Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { bubbles: false }).bubbles should be false. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { bubbles: true }).bubbles should be true. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { cancelable: false }).cancelable should be false. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { cancelable: true }).cancelable should be true. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { reason: 'foo' }).reason should be foo. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { url: 'bar' }).url should be bar. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { status: 42 }).status should be 42. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
FAIL new ApplicationCacheErrorEvent('eventType', { message: 'baz' }).message should be baz. Threw exception ReferenceError: ApplicationCacheErrorEvent is not defined
PASS successfullyParsed is true
TEST COMPLETE