Auto merge of #16933 - MortimerGoro:mutation_children, r=jdm

Implement MutationObserver childList mutations.

<!-- Please describe your changes on the following line: -->

Implement MutationObserver childList mutations

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16933)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-05-20 15:04:43 -05:00 committed by GitHub
commit 323760f47e
6 changed files with 112 additions and 119 deletions

View file

@ -1,90 +0,0 @@
[MutationObserver-childList.html]
type: testharness
expected: TIMEOUT
[childList Node.textContent: replace content mutation]
expected: TIMEOUT
[childList Node.textContent: no previous content mutation]
expected: TIMEOUT
[childList Node.textContent: empty string mutation]
expected: TIMEOUT
[childList Node.normalize mutation]
expected: TIMEOUT
[childList Node.normalize mutations]
expected: TIMEOUT
[childList Node.insertBefore: addition mutation]
expected: TIMEOUT
[childList Node.insertBefore: removal mutation]
expected: TIMEOUT
[childList Node.insertBefore: removal and addition mutations]
expected: TIMEOUT
[childList Node.insertBefore: fragment addition mutations]
expected: TIMEOUT
[childList Node.insertBefore: fragment removal mutations]
expected: TIMEOUT
[childList Node.insertBefore: last child addition mutation]
expected: TIMEOUT
[childList Node.appendChild: addition mutation]
expected: TIMEOUT
[childList Node.appendChild: removal mutation]
expected: TIMEOUT
[childList Node.appendChild: removal and addition mutations]
expected: TIMEOUT
[childList Node.appendChild: fragment addition mutations]
expected: TIMEOUT
[childList Node.appendChild: fragment removal mutations]
expected: TIMEOUT
[childList Node.appendChild: addition outside document tree mutation]
expected: TIMEOUT
[childList Node.replaceChild: replacement mutation]
expected: TIMEOUT
[childList Node.replaceChild: removal mutation]
expected: TIMEOUT
[childList Node.replaceChild: internal replacement mutation]
expected: TIMEOUT
[childList Node.removeChild: removal mutation]
expected: TIMEOUT
[childList Range.deleteContents: child removal mutation]
expected: TIMEOUT
[childList Range.deleteContents: child and data removal mutation]
expected: TIMEOUT
[childList Range.extractContents: child removal mutation]
expected: TIMEOUT
[childList Range.extractContents: child and data removal mutation]
expected: TIMEOUT
[childList Range.insertNode: child insertion mutation]
expected: TIMEOUT
[childList Range.insertNode: children insertion mutation]
expected: TIMEOUT
[childList Range.surroundContents: children removal and addition mutation]
expected: TIMEOUT
[childList Node.replaceChild: self internal replacement mutation]
expected: TIMEOUT

View file

@ -1,12 +0,0 @@
[MutationObserver-inner-outer.html]
type: testharness
expected: TIMEOUT
[innerHTML mutation]
expected: FAIL
[innerHTML with 2 children mutation]
expected: TIMEOUT
[outerHTML mutation]
expected: TIMEOUT