Auto merge of #22891 - georgeroman:implement_cdatasection, r=Manishearth

Implement CDATASection interface and createCDATASection method

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

---
<!-- 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
- [X] These changes fix #22846

<!-- 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/22891)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2019-03-18 17:22:55 -04:00 committed by GitHub
commit 34fda66dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 106 additions and 112 deletions

View file

@ -99,21 +99,6 @@
[DOMTokenList interface: calling supports(DOMString) on document.body.classList with too few arguments must throw TypeError]
expected: FAIL
[Document interface: operation createCDATASection(DOMString)]
expected: FAIL
[Document interface: new Document() must inherit property "createCDATASection" with the proper type (18)]
expected: FAIL
[Document interface: calling createCDATASection(DOMString) on new Document() with too few arguments must throw TypeError]
expected: FAIL
[Document interface: xmlDoc must inherit property "createCDATASection" with the proper type (18)]
expected: FAIL
[Document interface: calling createCDATASection(DOMString) on xmlDoc with too few arguments must throw TypeError]
expected: FAIL
[Attr interface: existence and properties of interface object]
expected: FAIL
@ -297,21 +282,6 @@
[EventTarget interface: calling dispatchEvent(Event) on document.querySelector("[id\]").attributes[0\] with too few arguments must throw TypeError]
expected: FAIL
[CDATASection interface: existence and properties of interface object]
expected: FAIL
[CDATASection interface object length]
expected: FAIL
[CDATASection interface object name]
expected: FAIL
[CDATASection interface: existence and properties of interface prototype object]
expected: FAIL
[CDATASection interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[Node interface: document.querySelector("[id\]").attributes[0\] must inherit property "getRootNode" with the proper type (17)]
expected: FAIL
@ -504,18 +474,12 @@
[Document interface: new Document() must inherit property "origin" with the proper type]
expected: FAIL
[Document interface: new Document() must inherit property "createCDATASection(DOMString)" with the proper type]
expected: FAIL
[Node interface: new Document() must inherit property "isConnected" with the proper type]
expected: FAIL
[Document interface: xmlDoc must inherit property "origin" with the proper type]
expected: FAIL
[Document interface: xmlDoc must inherit property "createCDATASection(DOMString)" with the proper type]
expected: FAIL
[Node interface: xmlDoc must inherit property "isConnected" with the proper type]
expected: FAIL
@ -795,9 +759,6 @@
[Unscopable handled correctly for remove() on CharacterData]
expected: FAIL
[CDATASection interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[AbstractRange interface: existence and properties of interface object]
expected: FAIL
@ -1001,9 +962,6 @@
[Document interface: attribute origin]
expected: FAIL
[Document interface: operation createCDATASection(DOMString)]
expected: FAIL
[Unscopable handled correctly for prepend([object Object\],[object Object\]) on Document]
expected: FAIL
@ -1013,21 +971,9 @@
[Document interface: new Document() must inherit property "origin" with the proper type]
expected: FAIL
[Document interface: new Document() must inherit property "createCDATASection(DOMString)" with the proper type]
expected: FAIL
[Document interface: calling createCDATASection(DOMString) on new Document() with too few arguments must throw TypeError]
expected: FAIL
[Document interface: xmlDoc must inherit property "origin" with the proper type]
expected: FAIL
[Document interface: xmlDoc must inherit property "createCDATASection(DOMString)" with the proper type]
expected: FAIL
[Document interface: calling createCDATASection(DOMString) on xmlDoc with too few arguments must throw TypeError]
expected: FAIL
[DocumentType interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
@ -1172,24 +1118,6 @@
[Text interface: document.createTextNode("abc") must inherit property "assignedSlot" with the proper type]
expected: FAIL
[CDATASection interface: existence and properties of interface object]
expected: FAIL
[CDATASection interface object length]
expected: FAIL
[CDATASection interface object name]
expected: FAIL
[CDATASection interface: existence and properties of interface prototype object]
expected: FAIL
[CDATASection interface: existence and properties of interface prototype object's "constructor" property]
expected: FAIL
[CDATASection interface: existence and properties of interface prototype object's @@unscopables property]
expected: FAIL
[AbstractRange interface: existence and properties of interface object]
expected: FAIL

View file

@ -1,4 +0,0 @@
[Node-insertBefore.html]
[Should check the 'parent' type before checking whether 'child' is a child of 'parent']
expected: FAIL

View file

@ -1,7 +0,0 @@
[Node-replaceChild.html]
[If the context node is not a node that can contain children, a HierarchyRequestError exception should be thrown]
expected: FAIL
[Should check the 'parent' type before checking whether 'child' is a child of 'parent']
expected: FAIL

View file

@ -1,5 +0,0 @@
[value-defaultValue-textContent-xhtml.xhtml]
type: testharness
[defaultValue and value include CDATASection Text nodes]
expected: FAIL

View file

@ -13281,7 +13281,7 @@
],
"mozilla/interfaces.html": [
[
"/_mozilla/mozilla/interfaces.html",
"mozilla/interfaces.html",
{}
]
],
@ -20239,7 +20239,7 @@
"testharness"
],
"mozilla/interfaces.html": [
"ab4ead5cfb5afc8b65cb71841e32ee46ec75318b",
"f8d8ab879f84bf03f89b12d5d010c83c1025265a",
"testharness"
],
"mozilla/interfaces.js": [

View file

@ -31,6 +31,7 @@ test_interfaces([
"CanvasGradient",
"CanvasRenderingContext2D",
"CanvasPattern",
"CDATASection",
"ChannelMergerNode",
"ChannelSplitterNode",
"CharacterData",