56 lines
1.9 KiB
Plaintext
56 lines
1.9 KiB
Plaintext
Tests calling initMutationEvent() on a mutation event while it is being dispatched and after.
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
PASS testEvent.__proto__ is MutationEvent.prototype
|
|
PASS testEvent.initMutationEvent("foo", true, false, document.body) did not throw exception.
|
|
PASS testEvent.type is "foo"
|
|
PASS testEvent.bubbles is true
|
|
PASS testEvent.cancelable is false
|
|
PASS testEvent.target is null
|
|
PASS testEvent.currentTarget is null
|
|
PASS testEvent.eventPhase is Event.NONE
|
|
PASS testEvent.relatedNode is document.body
|
|
|
|
* In event handler
|
|
PASS event.type is "foo"
|
|
PASS event.bubbles is true
|
|
PASS event.cancelable is false
|
|
PASS event.target is document.body
|
|
PASS event.currentTarget is document.body
|
|
PASS event.eventPhase is Event.AT_TARGET
|
|
PASS event.relatedNode is document.body
|
|
|
|
PASS event.initMutationEvent("bar", false, true, document.documentElement) did not throw exception.
|
|
PASS event.type is "foo"
|
|
PASS event.bubbles is true
|
|
PASS event.cancelable is false
|
|
PASS event.target is document.body
|
|
PASS event.currentTarget is document.body
|
|
PASS event.eventPhase is Event.AT_TARGET
|
|
PASS event.relatedNode is document.body
|
|
PASS document.body.dispatchEvent(testEvent) did not throw exception.
|
|
|
|
* After event has been dispatched
|
|
PASS testEvent.type is "foo"
|
|
PASS testEvent.bubbles is true
|
|
PASS testEvent.cancelable is false
|
|
PASS testEvent.target is document.body
|
|
PASS testEvent.currentTarget is null
|
|
PASS testEvent.eventPhase is Event.NONE
|
|
PASS testEvent.relatedNode is document.body
|
|
|
|
PASS testEvent.initMutationEvent("bar", false, true, document.documentElement) did not throw exception.
|
|
PASS testEvent.type is "bar"
|
|
PASS testEvent.bubbles is false
|
|
PASS testEvent.cancelable is true
|
|
PASS testEvent.target is null
|
|
PASS testEvent.currentTarget is null
|
|
PASS testEvent.eventPhase is Event.NONE
|
|
PASS testEvent.relatedNode is document.documentElement
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|