Bug 1471782 [wpt PR 9767] - Update the cors-rfc1918 IDL file, a=testonly
authorLuke Bjerring <lukebjerring@users.noreply.github.com>
Fri, 06 Jul 2018 17:52:33 +0000
changeset 425918 799e19ab6d87dc88978c7a36e9e5897a07302dba
parent 425917 b1a9005da5d79d651739bd63f6bdcdcb3902754a
child 425919 699914c37c8e7b2070c94a047ab161f7d088506a
push id34267
push userrgurzau@mozilla.com
push dateWed, 11 Jul 2018 22:05:21 +0000
treeherdermozilla-central@3aca103e4915 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1471782
milestone63.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 1471782 [wpt PR 9767] - Update the cors-rfc1918 IDL file, a=testonly Automatic update from web-platform-testsTentative CORS-RFC1918 test -- wpt-commits: 0007ac4d85e94353387fd8a74d10976c46e7cd07 wpt-pr: 9767
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/fetch/cors-rfc1918/idlharness.tentative.any.js
testing/web-platform/tests/interfaces/cors-rfc1918.idl
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -288661,16 +288661,21 @@
      {}
     ]
    ],
    "interfaces/cookie-store.idl": [
     [
      {}
     ]
    ],
+   "interfaces/cors-rfc1918.idl": [
+    [
+     {}
+    ]
+   ],
    "interfaces/css-animations.idl": [
     [
      {}
     ]
    ],
    "interfaces/css-font-loading.idl": [
     [
      {}
@@ -339064,16 +339069,26 @@
     ]
    ],
    "fetch/corb/style-html-correctly-labeled.sub.html": [
     [
      "/fetch/corb/style-html-correctly-labeled.sub.html",
      {}
     ]
    ],
+   "fetch/cors-rfc1918/idlharness.tentative.any.js": [
+    [
+     "/fetch/cors-rfc1918/idlharness.tentative.any.html",
+     {}
+    ],
+    [
+     "/fetch/cors-rfc1918/idlharness.tentative.any.worker.html",
+     {}
+    ]
+   ],
    "fetch/cross-origin-resource-policy/fetch-in-iframe.html": [
     [
      "/fetch/cross-origin-resource-policy/fetch-in-iframe.html",
      {}
     ]
    ],
    "fetch/cross-origin-resource-policy/fetch.html": [
     [
@@ -569921,16 +569936,20 @@
   "fetch/corb/style-css-with-json-parser-breaker.sub.html": [
    "aefb6ce91d1be7998ed70dd6101fea451911af8c",
    "testharness"
   ],
   "fetch/corb/style-html-correctly-labeled.sub.html": [
    "465d933f4e52ef4e5a4bd0de40873410195843cd",
    "testharness"
   ],
+  "fetch/cors-rfc1918/idlharness.tentative.any.js": [
+   "08d7db9d67437d64350503f153abfd7015a0d27e",
+   "testharness"
+  ],
   "fetch/cross-origin-resource-policy/fetch-in-iframe.html": [
    "4d836bed1e90a2d14b1651c0f3229b3f3d0b6b91",
    "testharness"
   ],
   "fetch/cross-origin-resource-policy/fetch.html": [
    "6a881615d9df0750b640298725be56e60cd5804c",
    "testharness"
   ],
@@ -591441,16 +591460,20 @@
   "interfaces/console.idl": [
    "43ced34008dc73d05c79140d8dc33c60e2d9df3a",
    "support"
   ],
   "interfaces/cookie-store.idl": [
    "bb4c385873deafd746f186058b111193c8aebf01",
    "support"
   ],
+  "interfaces/cors-rfc1918.idl": [
+   "d7f133c8dd6e1656f82c077d9795714827b9c869",
+   "support"
+  ],
   "interfaces/css-animations.idl": [
    "520ed1f6d245c75551aed3f74f988026edf3ff59",
    "support"
   ],
   "interfaces/css-font-loading.idl": [
    "9f2f252c5b63c159d9680de46a932bfa4335bf11",
    "support"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/fetch/cors-rfc1918/idlharness.tentative.any.js
@@ -0,0 +1,20 @@
+// META: script=/resources/WebIDLParser.js
+// META: script=/resources/idlharness.js
+
+promise_test(async () => {
+  const idl = await fetch('/interfaces/cors-rfc1918.idl').then(r => r.text());
+  const html = await fetch('/interfaces/html.idl').then(r => r.text());
+  const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
+
+  const idlArray = new IdlArray();
+  idlArray.add_idls(idl);
+  idlArray.add_dependency_idls(html);
+  idlArray.add_dependency_idls(dom);
+
+  const objects = {
+    Document: ['document'],
+    WorkerGlobalScope: ['self'],
+  };
+  idlArray.add_objects(objects);
+  idlArray.test();
+}, 'Test CORS RFC1918 interfaces');
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/interfaces/cors-rfc1918.idl
@@ -0,0 +1,14 @@
+// GENERATED CONTENT - DO NOT EDIT
+// Content of this file was automatically extracted from the
+// "CORS and RFC1918" spec.
+// See: https://wicg.github.io/cors-rfc1918/
+
+enum AddressSpace { "local", "private", "public" };
+
+partial interface Document {
+  readonly attribute AddressSpace addressSpace;
+};
+
+partial interface WorkerGlobalScope {
+  readonly attribute AddressSpace addressSpace;
+};