OLD | NEW |
1 CONSOLE WARNING: Attr child nodes are deprecated and will be removed in M45, aro
und August 2015. Please use 'Attr.value' instead. | |
2 Test WebKitMutationObserver.observe on attributes | 1 Test WebKitMutationObserver.observe on attributes |
3 | 2 |
4 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
". |
5 | 4 |
6 | 5 |
7 Testing basic aspects of attribute observation. | 6 Testing basic aspects of attribute observation. |
8 ...can attribute changes be observed at all | 7 ...can attribute changes be observed at all |
9 PASS mutations.length is 2 | 8 PASS mutations.length is 2 |
10 PASS mutations[0].type is "attributes" | 9 PASS mutations[0].type is "attributes" |
11 PASS mutations[0].attributeName is "foo" | 10 PASS mutations[0].attributeName is "foo" |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 Testing that a no-op style property mutation does not create Mutation Records. | 183 Testing that a no-op style property mutation does not create Mutation Records. |
185 PASS mutations is null | 184 PASS mutations is null |
186 | 185 |
187 Test that mutating an attribute through an attr node delivers mutation records | 186 Test that mutating an attribute through an attr node delivers mutation records |
188 PASS mutations.length is 1 | 187 PASS mutations.length is 1 |
189 PASS mutations[0].target is div | 188 PASS mutations[0].target is div |
190 PASS mutations[0].type is "attributes" | 189 PASS mutations[0].type is "attributes" |
191 PASS mutations[0].attributeName is "data-test" | 190 PASS mutations[0].attributeName is "data-test" |
192 PASS mutations[0].oldValue is "foo" | 191 PASS mutations[0].oldValue is "foo" |
193 | 192 |
194 Test that mutating an attribute by attaching a child to an attr node delivers mu
tation records | |
195 PASS mutations.length is 1 | |
196 PASS mutations[0].target is div | |
197 PASS mutations[0].type is "attributes" | |
198 PASS mutations[0].attributeName is "data-test" | |
199 PASS mutations[0].oldValue is "foo" | |
200 | |
201 Test that mutating via setAttributeNode delivers mutation records | 193 Test that mutating via setAttributeNode delivers mutation records |
202 PASS mutations.length is 3 | 194 PASS mutations.length is 3 |
203 PASS mutations[0].target is div | 195 PASS mutations[0].target is div |
204 PASS mutations[0].type is "attributes" | 196 PASS mutations[0].type is "attributes" |
205 PASS mutations[0].attributeName is "data-test" | 197 PASS mutations[0].attributeName is "data-test" |
206 PASS mutations[0].oldValue is "foo" | 198 PASS mutations[0].oldValue is "foo" |
207 PASS mutations[1].target is div | 199 PASS mutations[1].target is div |
208 PASS mutations[1].type is "attributes" | 200 PASS mutations[1].type is "attributes" |
209 PASS mutations[1].attributeName is "data-other" | 201 PASS mutations[1].attributeName is "data-other" |
210 PASS mutations[1].oldValue is null | 202 PASS mutations[1].oldValue is null |
(...skipping 17 matching lines...) Expand all Loading... |
228 PASS mutations[0].oldValue is "foo" | 220 PASS mutations[0].oldValue is "foo" |
229 PASS mutations[1].target is div | 221 PASS mutations[1].target is div |
230 PASS mutations[1].type is "attributes" | 222 PASS mutations[1].type is "attributes" |
231 PASS mutations[1].attributeName is "data-test" | 223 PASS mutations[1].attributeName is "data-test" |
232 PASS mutations[1].oldValue is "bar" | 224 PASS mutations[1].oldValue is "bar" |
233 | 225 |
234 PASS successfullyParsed is true | 226 PASS successfullyParsed is true |
235 | 227 |
236 TEST COMPLETE | 228 TEST COMPLETE |
237 | 229 |
OLD | NEW |