Bug 1465876 [wpt PR 9752] - Update the DOM-Parsing IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Wed, 06 Jun 2018 16:00:46 +0000
changeset 422177 2544a9eeb993026e9cd8306d31452b689ff87183
parent 422176 9e02883f1f8add8c91befa81aac6a429e844343c
child 422178 910b8c482226c20e4dff6cff2db2f768cdf3c2b6
push id34122
push userebalazs@mozilla.com
push dateMon, 11 Jun 2018 09:37:00 +0000
treeherdermozilla-central@9941eb8c3b29 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1465876
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1465876 [wpt PR 9752] - Update the DOM-Parsing IDL file, a=testonly Automatic update from web-platform-testsAdd DOM-Parsing IDL file + test (#9752) -- wpt-commits: 0f222620c19433eebe6d9dcb3c3319aae1532553 wpt-pr: 9752
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/domparsing/interfaces.any.js
testing/web-platform/tests/interfaces/DOM-Parsing.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -286989,16 +286989,21 @@
      {}
     ]
    ],
    "interfaces/BackgroundSync.idl": [
     [
      {}
     ]
    ],
+   "interfaces/DOM-Parsing.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/FileAPI.idl": [
     [
      {}
     ]
    ],
    "interfaces/IndexedDB.idl": [
     [
      {}
@@ -326804,16 +326809,26 @@
     ]
    ],
    "domparsing/insert_adjacent_html.html": [
     [
      "/domparsing/insert_adjacent_html.html",
      {}
     ]
    ],
+   "domparsing/interfaces.any.js": [
+    [
+     "/domparsing/interfaces.any.html",
+     {}
+    ],
+    [
+     "/domparsing/interfaces.any.worker.html",
+     {}
+    ]
+   ],
    "domparsing/outerhtml-01.html": [
     [
      "/domparsing/outerhtml-01.html",
      {}
     ]
    ],
    "domparsing/outerhtml-02.html": [
     [
@@ -555361,16 +555376,20 @@
   "domparsing/insert_adjacent_html.html": [
    "8d1132f613684ea6017ac12176f3a1ca0c782cc9",
    "testharness"
   ],
   "domparsing/insert_adjacent_html.js": [
    "b26dd3780474b79d71d302cea37dc18bf5038145",
    "support"
   ],
+  "domparsing/interfaces.any.js": [
+   "c839218d1a8dd146fa204f2d4d366bb0958770b9",
+   "testharness"
+  ],
   "domparsing/outerhtml-01.html": [
    "8c5c0ac91406ee6c8da4845b8ac10c7fec42a7d3",
    "testharness"
   ],
   "domparsing/outerhtml-02.html": [
    "8cd50c102f335e9226abd1869a9e8800f287723d",
    "testharness"
   ],
@@ -580749,16 +580768,20 @@
   "input-events/input-events-typing-manual.html": [
    "f585014db144083ee2f70f6fd65f78bf2e289093",
    "manual"
   ],
   "interfaces/BackgroundSync.idl": [
    "f4812cb04b153d5f39e12e373b184c04d29b00fd",
    "support"
   ],
+  "interfaces/DOM-Parsing.idl": [
+   "4324fb1908608583b898ae01ad44d9f8e1da89ac",
+   "support"
+  ],
   "interfaces/FileAPI.idl": [
    "3fb06078e603a6010c2eb0fb45715c8cbda35678",
    "support"
   ],
   "interfaces/IndexedDB.idl": [
    "3df484f3207920891c278bd99ec22e4029aa039f",
    "support"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/domparsing/interfaces.any.js
@@ -0,0 +1,16 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+'use strict';
+
+// https://w3c.github.io/DOM-Parsing/
+
+promise_test(async () => {
+  const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
+  const idl = await fetch('/interfaces/DOM-Parsing.idl').then(r => r.text());
+  const idlArray = new IdlArray();
+  idlArray.add_untested_idls(dom);
+  idlArray.add_idls(idl);
+  idlArray.test();
+  done();
+}, 'Test driver');
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/DOM-Parsing.idl
@@ -0,0 +1,31 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the DOM Parsing and Serialization spec.
+// See https://w3c.github.io/DOM-Parsing/
+
+[Constructor, Exposed=Window]
+interface DOMParser {
+  [NewObject] Document parseFromString(DOMString str, SupportedType type);
+};
+
+enum SupportedType {
+  "text/html",
+  "text/xml",
+  "application/xml",
+  "application/xhtml+xml",
+  "image/svg+xml"
+};
+
+[Constructor, Exposed=Window]
+  interface XMLSerializer {
+  DOMString serializeToString(Node root);
+};
+
+partial interface Element {
+  [CEReactions, TreatNullAs=EmptyString] attribute DOMString innerHTML;
+  [CEReactions, TreatNullAs=EmptyString] attribute DOMString outerHTML;
+  [CEReactions] void insertAdjacentHTML(DOMString position, DOMString text);
+};
+
+partial interface Range {
+  [CEReactions, NewObject] DocumentFragment createContextualFragment(DOMString fragment);
+};