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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/MutationObserver/observe-exceptions-expected.txt

Issue 2678583002: Make MutationObserver observe parameter optional as per spec (Closed)
Patch Set: Rebase Created 3 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
1 Test that WebKitMutationObserver.observe throws exceptions appropriately 1 Test that WebKitMutationObserver.observe throws exceptions appropriately
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 PASS observer.observe() threw exception TypeError: Failed to execute 'observe' o n 'MutationObserver': 2 arguments required, but only 0 present.. 6 PASS observer.observe() threw exception TypeError: Failed to execute 'observe' o n 'MutationObserver': 1 argument required, but only 0 present..
7 PASS observer.observe(null) threw exception TypeError: Failed to execute 'observ e' on 'MutationObserver': 2 arguments required, but only 1 present.. 7 PASS observer.observe(null) threw exception TypeError: Failed to execute 'observ e' on 'MutationObserver': parameter 1 is not of type 'Node'..
8 PASS observer.observe(undefined) threw exception TypeError: Failed to execute 'o bserve' on 'MutationObserver': 2 arguments required, but only 1 present.. 8 PASS observer.observe(undefined) threw exception TypeError: Failed to execute 'o bserve' on 'MutationObserver': parameter 1 is not of type 'Node'..
9 PASS observer.observe(document.body) threw exception TypeError: Failed to execut e 'observe' on 'MutationObserver': 2 arguments required, but only 1 present.. 9 PASS observer.observe(document.body) threw exception TypeError: Failed to execut e 'observe' on 'MutationObserver': The options object must set at least one of ' attributes', 'characterData', or 'childList' to true..
10 PASS observer.observe(document.body, null) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object must set at least on e of 'attributes', 'characterData', or 'childList' to true.. 10 PASS observer.observe(document.body, null) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object must set at least on e of 'attributes', 'characterData', or 'childList' to true..
11 PASS observer.observe(document.body, undefined) threw exception TypeError: Faile d to execute 'observe' on 'MutationObserver': The options object must set at lea st one of 'attributes', 'characterData', or 'childList' to true.. 11 PASS observer.observe(document.body, undefined) threw exception TypeError: Faile d to execute 'observe' on 'MutationObserver': The options object must set at lea st one of 'attributes', 'characterData', or 'childList' to true..
12 PASS observer.observe(null, {attributes: true}) threw exception TypeError: Faile d to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. . 12 PASS observer.observe(null, {attributes: true}) threw exception TypeError: Faile d to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'Node'. .
13 PASS observer.observe(undefined, {attributes: true}) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'N ode'.. 13 PASS observer.observe(undefined, {attributes: true}) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': parameter 1 is not of type 'N ode'..
14 PASS observer.observe(document.body, {subtree: true}) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.. 14 PASS observer.observe(document.body, {subtree: true}) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object must set at least one of 'attributes', 'characterData', or 'childList' to true..
15 PASS observer.observe(document.body, {attributes: false, attributeOldValue: true }) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' i s true or not present.. 15 PASS observer.observe(document.body, {attributes: false, attributeOldValue: true }) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeOldValue' to true when 'attributes' i s true or not present..
16 PASS observer.observe(document.body, {attributes: false, attributeFilter: ["id"] }) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present.. 16 PASS observer.observe(document.body, {attributes: false, attributeFilter: ["id"] }) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver': The options object may only set 'attributeFilter' when 'attributes' is true or not present..
17 PASS observer.observe(document.body, {attributes: false, attributeOldValue: fals e}) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver' : The options object must set at least one of 'attributes', 'characterData', or 'childList' to true.. 17 PASS observer.observe(document.body, {attributes: false, attributeOldValue: fals e}) threw exception TypeError: Failed to execute 'observe' on 'MutationObserver' : The options object must set at least one of 'attributes', 'characterData', or 'childList' to true..
18 PASS observer.observe(document.body, {characterData: false, characterDataOldValu e: true}) threw exception TypeError: Failed to execute 'observe' on 'MutationObs erver': The options object may only set 'characterDataOldValue' to true when 'ch aracterData' is true or not present.. 18 PASS observer.observe(document.body, {characterData: false, characterDataOldValu e: true}) threw exception TypeError: Failed to execute 'observe' on 'MutationObs erver': The options object may only set 'characterDataOldValue' to true when 'ch aracterData' is true or not present..
19 PASS observer.observe(document.body, {characterData: false, characterDataOldValu e: false}) threw exception TypeError: Failed to execute 'observe' on 'MutationOb server': The options object must set at least one of 'attributes', 'characterDat a', or 'childList' to true.. 19 PASS observer.observe(document.body, {characterData: false, characterDataOldValu e: false}) threw exception TypeError: Failed to execute 'observe' on 'MutationOb server': The options object must set at least one of 'attributes', 'characterDat a', or 'childList' to true..
20 PASS successfullyParsed is true 20 PASS successfullyParsed is true
21 21
22 TEST COMPLETE 22 TEST COMPLETE
23 23
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698