Summary

Harness status: OK

Found 13 tests

Details

ResultTest NameMessage
PassShould throw if none of childList, attributes, characterData are true
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {           m.observe(document, {});       }")
    at Test.<anonymous> ( /dom/nodes/MutationObserver-sanity.html:9:7)
PassShould not throw if childList is true
Asserts runNo asserts ran
PassShould not throw if attributes is true
Asserts runNo asserts ran
PassShould not throw if characterData is true
Asserts runNo asserts ran
PassShould not throw if attributeOldValue is true and attributes is omitted
Asserts runNo asserts ran
PassShould not throw if characterDataOldValue is true and characterData is omitted
Asserts runNo asserts ran
PassShould not throw if attributeFilter is present and attributes is omitted
Asserts runNo asserts ran
PassShould throw if attributeOldValue is true and attributes is false
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {           m.observe(document, { childList: true, attributeOldValue: true,                                 attributes: false });       }")
    at Test.<anonymous> ( /dom/nodes/MutationObserver-sanity.html:52:7)
PassShould not throw if attributeOldValue and attributes are both true
Asserts runNo asserts ran
PassShould throw if attributeFilter is present and attributes is false
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {           m.observe(document, { childList: true, attributeFilter: ["abc"],                                 attributes: false });       }")
    at Test.<anonymous> ( /dom/nodes/MutationObserver-sanity.html:67:7)
PassShould not throw if attributeFilter is present and attributes is true
Asserts runNo asserts ran
PassShould throw if characterDataOldValue is true and characterData is false
Asserts run
Pass
assert_throws_js(function "function TypeError() { [native code] }", function "() => {           m.observe(document, { childList: true, characterDataOldValue: true,                                 characterData: false });       }")
    at Test.<anonymous> ( /dom/nodes/MutationObserver-sanity.html:82:7)
PassShould not throw if characterDataOldValue is true and characterData is true
Asserts runNo asserts ran