From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../domparsing/DOMParser-parseFromString-html.html | 74 ++++++++++++ .../DOMParser-parseFromString-xml-doctype.html | 27 +++++ .../domparsing/DOMParser-parseFromString-xml.html | 54 +++++++++ testing/web-platform/tests/domparsing/OWNERS | 4 + .../XMLSerializer-serializeToString.html | 26 ++++ .../tests/domparsing/createContextualFragment.html | 131 +++++++++++++++++++++ .../tests/domparsing/innerhtml-01.xhtml | 28 +++++ .../tests/domparsing/innerhtml-03.xhtml | 59 ++++++++++ .../tests/domparsing/innerhtml-04.html | 24 ++++ .../tests/domparsing/innerhtml-05.xhtml | 26 ++++ .../tests/domparsing/innerhtml-06.html | 19 +++ .../tests/domparsing/innerhtml-07.html | 49 ++++++++ .../tests/domparsing/insert-adjacent.html | 38 ++++++ .../domparsing/insert_adjacent_html-xhtml.xhtml | 91 ++++++++++++++ .../tests/domparsing/insert_adjacent_html.html | 94 +++++++++++++++ .../tests/domparsing/insert_adjacent_html.js | 33 ++++++ .../tests/domparsing/outerhtml-01.html | 15 +++ .../tests/domparsing/outerhtml-02.html | 54 +++++++++ .../tests/domparsing/style_attribute_html.html | 52 ++++++++ .../tests/domparsing/xml-serialization.xhtml | 91 ++++++++++++++ 20 files changed, 989 insertions(+) create mode 100644 testing/web-platform/tests/domparsing/DOMParser-parseFromString-html.html create mode 100644 testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml-doctype.html create mode 100644 testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml.html create mode 100644 testing/web-platform/tests/domparsing/OWNERS create mode 100644 testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html create mode 100644 testing/web-platform/tests/domparsing/createContextualFragment.html create mode 100644 testing/web-platform/tests/domparsing/innerhtml-01.xhtml create mode 100644 testing/web-platform/tests/domparsing/innerhtml-03.xhtml create mode 100644 testing/web-platform/tests/domparsing/innerhtml-04.html create mode 100644 testing/web-platform/tests/domparsing/innerhtml-05.xhtml create mode 100644 testing/web-platform/tests/domparsing/innerhtml-06.html create mode 100644 testing/web-platform/tests/domparsing/innerhtml-07.html create mode 100644 testing/web-platform/tests/domparsing/insert-adjacent.html create mode 100644 testing/web-platform/tests/domparsing/insert_adjacent_html-xhtml.xhtml create mode 100644 testing/web-platform/tests/domparsing/insert_adjacent_html.html create mode 100644 testing/web-platform/tests/domparsing/insert_adjacent_html.js create mode 100644 testing/web-platform/tests/domparsing/outerhtml-01.html create mode 100644 testing/web-platform/tests/domparsing/outerhtml-02.html create mode 100644 testing/web-platform/tests/domparsing/style_attribute_html.html create mode 100644 testing/web-platform/tests/domparsing/xml-serialization.xhtml (limited to 'testing/web-platform/tests/domparsing') diff --git a/testing/web-platform/tests/domparsing/DOMParser-parseFromString-html.html b/testing/web-platform/tests/domparsing/DOMParser-parseFromString-html.html new file mode 100644 index 000000000..ec424423a --- /dev/null +++ b/testing/web-platform/tests/domparsing/DOMParser-parseFromString-html.html @@ -0,0 +1,74 @@ + +DOMParser basic test of HTML parsing + + + diff --git a/testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml-doctype.html b/testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml-doctype.html new file mode 100644 index 000000000..cd655acf9 --- /dev/null +++ b/testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml-doctype.html @@ -0,0 +1,27 @@ + + +HTML entities for various XHTML Doctype variants + + + +
+ diff --git a/testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml.html b/testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml.html new file mode 100644 index 000000000..c639c239d --- /dev/null +++ b/testing/web-platform/tests/domparsing/DOMParser-parseFromString-xml.html @@ -0,0 +1,54 @@ + +DOMParser + + + +
+ diff --git a/testing/web-platform/tests/domparsing/OWNERS b/testing/web-platform/tests/domparsing/OWNERS new file mode 100644 index 000000000..8aeebafa5 --- /dev/null +++ b/testing/web-platform/tests/domparsing/OWNERS @@ -0,0 +1,4 @@ +@sideshowbarker +@ChrisParis +@deniak +@jdm diff --git a/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html b/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html new file mode 100644 index 000000000..60932ee37 --- /dev/null +++ b/testing/web-platform/tests/domparsing/XMLSerializer-serializeToString.html @@ -0,0 +1,26 @@ + + + + + domparsing Test: XMLSerializer.serializeToString + + + + +

domparsing_XMLSerializer_serializeToString

+ + + diff --git a/testing/web-platform/tests/domparsing/createContextualFragment.html b/testing/web-platform/tests/domparsing/createContextualFragment.html new file mode 100644 index 000000000..ce7d81358 --- /dev/null +++ b/testing/web-platform/tests/domparsing/createContextualFragment.html @@ -0,0 +1,131 @@ + +createContextualFragment() tests +
+ + + diff --git a/testing/web-platform/tests/domparsing/innerhtml-01.xhtml b/testing/web-platform/tests/domparsing/innerhtml-01.xhtml new file mode 100644 index 000000000..432cfbf41 --- /dev/null +++ b/testing/web-platform/tests/domparsing/innerhtml-01.xhtml @@ -0,0 +1,28 @@ + + +innerHTML in XHTML: getting while the document is in an invalid state + + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/domparsing/innerhtml-03.xhtml b/testing/web-platform/tests/domparsing/innerhtml-03.xhtml new file mode 100644 index 000000000..313531e49 --- /dev/null +++ b/testing/web-platform/tests/domparsing/innerhtml-03.xhtml @@ -0,0 +1,59 @@ + + + +innerHTML in XHTML + + + + + + + +
+ + + diff --git a/testing/web-platform/tests/domparsing/innerhtml-04.html b/testing/web-platform/tests/domparsing/innerhtml-04.html new file mode 100644 index 000000000..32c921d23 --- /dev/null +++ b/testing/web-platform/tests/domparsing/innerhtml-04.html @@ -0,0 +1,24 @@ + +innerHTML in HTML + + + + +
+ diff --git a/testing/web-platform/tests/domparsing/innerhtml-05.xhtml b/testing/web-platform/tests/domparsing/innerhtml-05.xhtml new file mode 100644 index 000000000..da2d85159 --- /dev/null +++ b/testing/web-platform/tests/domparsing/innerhtml-05.xhtml @@ -0,0 +1,26 @@ + + +innerHTML in XHTML + + + + + + + + +
+ + + + diff --git a/testing/web-platform/tests/domparsing/innerhtml-06.html b/testing/web-platform/tests/domparsing/innerhtml-06.html new file mode 100644 index 000000000..81e9c57b5 --- /dev/null +++ b/testing/web-platform/tests/domparsing/innerhtml-06.html @@ -0,0 +1,19 @@ + + + +math in html: innerHTML + + + + +

math in html: innerHTML

+
+
+
x
+
+ diff --git a/testing/web-platform/tests/domparsing/innerhtml-07.html b/testing/web-platform/tests/domparsing/innerhtml-07.html new file mode 100644 index 000000000..9e313a2cb --- /dev/null +++ b/testing/web-platform/tests/domparsing/innerhtml-07.html @@ -0,0 +1,49 @@ + +innerHTML and string conversion + + + + +
+ diff --git a/testing/web-platform/tests/domparsing/insert-adjacent.html b/testing/web-platform/tests/domparsing/insert-adjacent.html new file mode 100644 index 000000000..f43ec406e --- /dev/null +++ b/testing/web-platform/tests/domparsing/insert-adjacent.html @@ -0,0 +1,38 @@ + +insertAdjacentHTML + + + + +
+
+ + diff --git a/testing/web-platform/tests/domparsing/insert_adjacent_html-xhtml.xhtml b/testing/web-platform/tests/domparsing/insert_adjacent_html-xhtml.xhtml new file mode 100644 index 000000000..eadf10e2c --- /dev/null +++ b/testing/web-platform/tests/domparsing/insert_adjacent_html-xhtml.xhtml @@ -0,0 +1,91 @@ + + + insertAdjacentHTML in HTML + + + + + +

+ +
+ + diff --git a/testing/web-platform/tests/domparsing/insert_adjacent_html.html b/testing/web-platform/tests/domparsing/insert_adjacent_html.html new file mode 100644 index 000000000..dfe624f03 --- /dev/null +++ b/testing/web-platform/tests/domparsing/insert_adjacent_html.html @@ -0,0 +1,94 @@ + + + + insertAdjacentHTML in HTML + + + + + +

+ +
+ + diff --git a/testing/web-platform/tests/domparsing/insert_adjacent_html.js b/testing/web-platform/tests/domparsing/insert_adjacent_html.js new file mode 100644 index 000000000..2451228d1 --- /dev/null +++ b/testing/web-platform/tests/domparsing/insert_adjacent_html.js @@ -0,0 +1,33 @@ +function testThrowingNoParent(element, desc) { + test(function() { + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("afterend", "") } + ); + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("beforebegin", "") } + ); + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("afterend", "foo") } + ); + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("beforebegin", "foo") } + ); + }, "When the parent node is " + desc + ", insertAdjacentHTML should throw for beforebegin and afterend (text)"); + test(function() { + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("afterend", "") } + ); + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("beforebegin", "") } + ); + }, "When the parent node is " + desc + ", insertAdjacentHTML should throw for beforebegin and afterend (comments)"); + test(function() { + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("afterend", "
") } + ); + assert_throws("NO_MODIFICATION_ALLOWED_ERR", + function() { element.insertAdjacentHTML("beforebegin", "
") } + ); + }, "When the parent node is " + desc + ", insertAdjacentHTML should throw for beforebegin and afterend (elements)"); +} + diff --git a/testing/web-platform/tests/domparsing/outerhtml-01.html b/testing/web-platform/tests/domparsing/outerhtml-01.html new file mode 100644 index 000000000..2e8072e49 --- /dev/null +++ b/testing/web-platform/tests/domparsing/outerhtml-01.html @@ -0,0 +1,15 @@ + +outerHTML: child of #document + + + + +
+ + diff --git a/testing/web-platform/tests/domparsing/outerhtml-02.html b/testing/web-platform/tests/domparsing/outerhtml-02.html new file mode 100644 index 000000000..7b69fbf67 --- /dev/null +++ b/testing/web-platform/tests/domparsing/outerhtml-02.html @@ -0,0 +1,54 @@ + +outerHTML and string conversion + + + + +
+ diff --git a/testing/web-platform/tests/domparsing/style_attribute_html.html b/testing/web-platform/tests/domparsing/style_attribute_html.html new file mode 100644 index 000000000..f7f057d2d --- /dev/null +++ b/testing/web-platform/tests/domparsing/style_attribute_html.html @@ -0,0 +1,52 @@ + + +Style attribute in HTML + + + diff --git a/testing/web-platform/tests/domparsing/xml-serialization.xhtml b/testing/web-platform/tests/domparsing/xml-serialization.xhtml new file mode 100644 index 000000000..678523d1e --- /dev/null +++ b/testing/web-platform/tests/domparsing/xml-serialization.xhtml @@ -0,0 +1,91 @@ + + + XML serialization + + + + +
+ + + -- cgit v1.2.3