Bug 1444846 [wpt PR 9967] - IDL update for AbstractRange and StaticRange, a=testonly
authorAnne van Kesteren <annevk@annevk.nl>
Mon, 09 Apr 2018 17:09:27 +0000
changeset 467090 88ae266890f10214842862a8c0a1f4f512a9f8e6
parent 467089 c2cd7e42c59a078532a107d1adf1454a369b04da
child 467091 cc84a43afa7a98b1fe86588b254e926114e7b88d
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1444846
milestone61.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 1444846 [wpt PR 9967] - IDL update for AbstractRange and StaticRange, a=testonly Automatic update from web-platform-testsIDL update for AbstractRange and StaticRange See https://github.com/whatwg/dom/pull/589. -- remove obsolete IDL test wpt-commits: 1c64b7e7f769ac7ab726f4738677168a95d13ab2, 359dac15b0ae6099d47708ff0d3efb8b5bb0db26 wpt-pr: 9967 wpt-commits: 1c64b7e7f769ac7ab726f4738677168a95d13ab2, 359dac15b0ae6099d47708ff0d3efb8b5bb0db26 wpt-pr: 9967
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/interfaces/dom.idl
testing/web-platform/tests/staticrange/OWNERS
testing/web-platform/tests/staticrange/idlharness.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -293009,21 +293009,16 @@
      {}
     ]
    ],
    "speech-api/OWNERS": [
     [
      {}
     ]
    ],
-   "staticrange/OWNERS": [
-    [
-     {}
-    ]
-   ],
    "storage/OWNERS": [
     [
      {}
     ]
    ],
    "storage/README.md": [
     [
      {}
@@ -361683,22 +361678,16 @@
     ]
    ],
    "speech-api/historical.html": [
     [
      "/speech-api/historical.html",
      {}
     ]
    ],
-   "staticrange/idlharness.html": [
-    [
-     "/staticrange/idlharness.html",
-     {}
-    ]
-   ],
    "storage/estimate-indexeddb-worker.https.html": [
     [
      "/storage/estimate-indexeddb-worker.https.html",
      {}
     ]
    ],
    "storage/estimate-indexeddb.https.html": [
     [
@@ -572041,17 +572030,17 @@
    "fbd624297dbfaa5e0fc2144b701c38eda41537ac",
    "support"
   ],
   "interfaces/dedicated-workers.idl": [
    "993f3d3b4fa58585c444a76d2a5fc9f388e65999",
    "support"
   ],
   "interfaces/dom.idl": [
-   "2d65a8029a80cfc97398d18f911f1ae65067e765",
+   "f5881beeeaa7e990e9b889182989d6d0fb0ba8a3",
    "support"
   ],
   "interfaces/encoding.idl": [
    "0dd77d1c6d854b0bdd003107c2385a224e1953f8",
    "support"
   ],
   "interfaces/encrypted-media.idl": [
    "ef1f1432c42fc6d01f3bfbd576fa5c7de349de96",
@@ -594680,24 +594669,16 @@
   "speech-api/SpeechSynthesis-speak-twice.html": [
    "60eaf93103abe422222307b3c4172f2a0fabee57",
    "testharness"
   ],
   "speech-api/historical.html": [
    "45bfdcce349e2cb28611520b006c060347fdf58d",
    "testharness"
   ],
-  "staticrange/OWNERS": [
-   "290c71b49f1147778f51898e114db808b4568549",
-   "support"
-  ],
-  "staticrange/idlharness.html": [
-   "16f30a68d97edf19c5255328fd1460ac54a4c025",
-   "testharness"
-  ],
   "storage/OWNERS": [
    "2c585ecaee5e62118d3cb98c98e12d959ebcbd50",
    "support"
   ],
   "storage/README.md": [
    "5ce835b9c17e0cd61830abdd4f4e7aa5d5a47d8d",
    "support"
   ],
--- a/testing/web-platform/tests/interfaces/dom.idl
+++ b/testing/web-platform/tests/interfaces/dom.idl
@@ -435,24 +435,32 @@ interface ProcessingInstruction : Charac
 };
 
 [Constructor(optional DOMString data = ""),
  Exposed=Window]
 interface Comment : CharacterData {
 };
 
 
-[Constructor,
- Exposed=Window]
-interface Range {
+[Exposed=Window]
+interface AbstractRange {
   readonly attribute Node startContainer;
   readonly attribute unsigned long startOffset;
   readonly attribute Node endContainer;
   readonly attribute unsigned long endOffset;
   readonly attribute boolean collapsed;
+};
+
+[Exposed=Window]
+interface StaticRange : AbstractRange {
+};
+
+[Constructor,
+ Exposed=Window]
+interface Range : AbstractRange {
   readonly attribute Node commonAncestorContainer;
 
   void setStart(Node node, unsigned long offset);
   void setEnd(Node node, unsigned long offset);
   void setStartBefore(Node node);
   void setStartAfter(Node node);
   void setEndBefore(Node node);
   void setEndAfter(Node node);
deleted file mode 100644
--- a/testing/web-platform/tests/staticrange/OWNERS
+++ /dev/null
@@ -1,2 +0,0 @@
-@garykac
-@siusin
deleted file mode 100644
--- a/testing/web-platform/tests/staticrange/idlharness.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<title>Static Range IDL tests</title>
-<link rel="help" href="http://garykac.github.io/staticrange/index.html#interface-staticrange"/>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="/resources/WebIDLParser.js"></script>
-<script src="/resources/idlharness.js"></script>
-
-<pre id="untested_idl">
-interface Node {
-};
-</pre>
-
-<pre id='idl'>
-interface StaticRange {
-    readonly attribute Node startContainer;
-    readonly attribute unsigned long startOffset;
-    readonly attribute Node endContainer;
-    readonly attribute unsigned long endOffset;
-    readonly attribute boolean collapsed;
-};
-</pre>
-
-<script>
-(function(){
-    "use strict";
-    const idl_array = new IdlArray();
-    idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
-    idl_array.add_idls(document.getElementById("idl").textContent);
-    idl_array.test();
-})();
-</script>