Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / MutationObserver / observe-childList-expected.txt
blobd7bb27642f1d46befbc2d00fb1ae59d8e077d20a
1 Test WebKitMutationObserver.observe on attributes.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Testing basic aspects of childList observation.
7 ...can childList changes be observed at all
8 PASS mutations.length is 1
9 PASS mutations[0].type is "childList"
10 PASS mutations[0].addedNodes.length is 1
11 PASS mutations[0].addedNodes[0] is removedDiv1
12 ...observer.disconnect() should prevent further delivery of mutations.
13 PASS mutations is null
14 ...re-observing after disconnect works with the same observer.
15 PASS mutations.length is 2
16 PASS mutations[0].type is "childList"
17 PASS mutations[0].removedNodes.length is 1
18 PASS mutations[0].removedNodes[0] is removedDiv1
19 PASS mutations[1].type is "childList"
20 PASS mutations[1].removedNodes.length is 1
21 PASS mutations[1].removedNodes[0] is removedDiv2
23 Testing that observing without specifying "childList" does not result in hearing about childList changes.
24 PASS mutations is null
26 Testing that re-observing the same node with the same observer has the effect of resetting the options.
27 PASS calls is 1
28 PASS mutations.length is 1
29 PASS mutations[0].type is "childList"
30 PASS mutations is null
32 Testing that multiple observers can be registered to a given node and both receive mutations.
33 PASS mutations.length is 1
34 PASS mutations[0].type is "childList"
35 PASS mutations2.length is 1
36 PASS mutations2[0].type is "childList"
38 Testing that innerText and innerHTML always result in a single childList mutation.
39 ...innerHTML
40 PASS mutations.length is 1
41 PASS mutations[0].type is "childList"
42 PASS mutations[0].addedNodes.length is 3
43 PASS mutations[0].addedNodes[0] is addedDiv1
44 PASS mutations[0].addedNodes[1] is addedDiv2
45 PASS mutations[0].addedNodes[2] is addedDiv3
46 PASS mutations[0].removedNodes.length is 2
47 PASS mutations[0].removedNodes[0] is removedDiv1
48 PASS mutations[0].removedNodes[1] is removedDiv2
49 ...innerText
50 PASS mutations.length is 1
51 PASS mutations[0].type is "childList"
52 PASS mutations[0].addedNodes.length is 1
53 PASS mutations[0].removedNodes.length is 3
55 Testing that replaceChild results in minimal childList mutations.
56 ...simple replace child
57 PASS mutations.length is 1
58 PASS mutations[0].type is "childList"
59 PASS mutations[0].addedNodes.length is 1
60 PASS mutations[0].addedNodes[0] is addedDiv1
61 PASS mutations[0].removedNodes.length is 1
62 PASS mutations[0].removedNodes[0] is removedDiv1
63 ...replace with DocumentFragment
64 PASS mutations.length is 1
65 PASS mutations[0].type is "childList"
66 PASS mutations[0].addedNodes.length is 2
67 PASS mutations[0].addedNodes[0] is addedDiv1
68 PASS mutations[0].addedNodes[1] is addedDiv2
69 PASS mutations[0].removedNodes.length is 1
70 PASS mutations[0].removedNodes[0] is removedDiv1
72 Testing that insertBefore results in minimal childList mutations.
73 PASS mutations.length is 1
74 PASS mutations[0].type is "childList"
75 PASS mutations[0].addedNodes.length is 2
76 PASS mutations[0].addedNodes[0] is addedDiv1
77 PASS mutations[0].addedNodes[1] is addedDiv2
78 PASS mutations[0].removedNodes.length is 0
80 Testing that appendChild results in minimal childList mutations.
81 PASS mutations.length is 1
82 PASS mutations[0].type is "childList"
83 PASS mutations[0].addedNodes.length is 2
84 PASS mutations[0].addedNodes[0] is addedDiv1
85 PASS mutations[0].addedNodes[1] is addedDiv2
86 PASS mutations[0].removedNodes.length is 0
88 Setting an empty childlist to the empty string with innerHTML should not assert.
89 PASS mutations is null
91 PASS successfullyParsed is true
93 TEST COMPLETE