Bug 1452027 [wpt PR 10341] - Add some obsolete, proprietary Gecko interfaces to historical tests., a=testonly
authorMs2ger <Ms2ger@gmail.com>
Tue, 01 May 2018 14:48:28 +0000
changeset 472662 d8ed381b7fbb7c1a59c734778273c8b6e42dff6e
parent 472661 cf24b32ed7dddddb8a5ef570ac257b0e8c49091f
child 472663 92858618fe5a00285c87dc2731bf3aad59864388
push id1728
push userjlund@mozilla.com
push dateMon, 18 Jun 2018 21:12:27 +0000
treeherdermozilla-release@c296fde26f5f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1452027, 10341
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 1452027 [wpt PR 10341] - Add some obsolete, proprietary Gecko interfaces to historical tests., a=testonly Automatic update from web-platform-testsAdd some obsolete, proprietary Gecko interfaces to historical tests. -- wpt-commits: 50af0bd57122303b0d34801cdc5c89c8ed11c170 wpt-pr: 10341
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/FileAPI/historical.https.html
testing/web-platform/tests/IndexedDB/historical.html
testing/web-platform/tests/dom/historical.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -400677,17 +400677,17 @@
    "24ba1757871636bea9cd26a48d97f86c494584ba",
    "support"
   ],
   "FileAPI/filelist-section/support/upload.zip": [
    "fa1e9bd48a2e1f5fe91e6f9b3aa401b4ccf15dfa",
    "support"
   ],
   "FileAPI/historical.https.html": [
-   "93903b4f58bc215ea2a67fc6d281593ec5ce79e9",
+   "e1cf63d05a0e401cc38a11d2b42efb9e8d315610",
    "testharness"
   ],
   "FileAPI/idlharness-manual.html": [
    "df5170b0704955d185dfd7e3e3c44516cdc4292a",
    "manual"
   ],
   "FileAPI/idlharness.html": [
    "b12d3e9d4d69b4b922f8fb588f94db7bbdacbef9",
@@ -400917,17 +400917,17 @@
    "80333b08cae052d1fb58875404c87462206204b3",
    "testharness"
   ],
   "IndexedDB/globalscope-indexedDB-SameObject.html": [
    "5c0e8658667785b5322e42e476693d87edad6e56",
    "testharness"
   ],
   "IndexedDB/historical.html": [
-   "0c4584e1b021a286445a2a9d3388ff011a1b933e",
+   "2a5eaca2bbe1d0c9495ab7c48560d611f60a007c",
    "testharness"
   ],
   "IndexedDB/idb-binary-key-detached.htm": [
    "ff7f932150cca2156afd7eda9d97e49566942803",
    "testharness"
   ],
   "IndexedDB/idb-binary-key-roundtrip.htm": [
    "587b7c783d77450a2c9c1cc09ccaf530e6e5d363",
@@ -552865,17 +552865,17 @@
    "084a6f752edee6578113035fece6d0eb85a2fdf7",
    "testharness"
   ],
   "dom/events/relatedTarget.window.js": [
    "0426d2ecae3f3562be175e4364353d979365ed1c",
    "testharness"
   ],
   "dom/historical.html": [
-   "ccf3d9d2d8eb3e7353ecedd8a4d8ba232f9374ec",
+   "291d078c4424d0491aeab7524d350eab7304f989",
    "testharness"
   ],
   "dom/interface-objects.html": [
    "05963c8b0a839f3e07b5478d99fc034e4654b515",
    "testharness"
   ],
   "dom/interfaces.html": [
    "3308c9f3341c12ce99217309eba608e50cca669d",
--- a/testing/web-platform/tests/FileAPI/historical.https.html
+++ b/testing/web-platform/tests/FileAPI/historical.https.html
@@ -5,27 +5,30 @@
   <title>Historical features</title>
   <script src="/resources/testharness.js"></script>
   <script src="/resources/testharnessreport.js"></script>
   <script src="/service-workers/service-worker/resources/test-helpers.sub.js"></script>
  </head>
  <body>
   <div id="log"></div>
   <script>
-    test(function() {
-        assert_false('toNativeLineEndings' in window);
-    }, '"toNativeLineEndings" should not be supported');
+    var removedFromWindow = [
+        'toNativeLineEndings',
+        'FileError',
+        'FileException',
+        'FileHandle',
+        'FileRequest',
+        'MutableFile',
+    ];
 
-    test(function() {
-        assert_false('FileError' in window);
-    }, '"FileError" should not be supported');
-
-    test(function() {
-        assert_false('FileException' in window);
-    }, '"FileException" should not be supported');
+    removedFromWindow.forEach(function(name) {
+        test(function() {
+            assert_false(name in window);
+        }, '"' + name + '" should not be supported');
+    });
 
     test(function() {
         var b = new Blob();
         var prefixes = ['op', 'moz', 'webkit', 'ms'];
         for (var i = 0; i < prefixes.length; ++i) {
             assert_false(prefixes[i]+'Slice' in b, "'"+prefixes[i]+"Slice' in b");
             assert_false(prefixes[i]+'Slice' in Blob.prototype, "'"+prefixes[i]+"Slice in Blob.prototype");
         }
--- a/testing/web-platform/tests/IndexedDB/historical.html
+++ b/testing/web-platform/tests/IndexedDB/historical.html
@@ -58,9 +58,23 @@ test(function() {
   // Replaced circa May 2012 by a DOMString (later, IDBTransactionMode enum).
   assert_false('READ_WRITE' in IDBTransaction);
 }, '"READ_WRITE" should not be supported on IDBTransaction.');
 
 test(function() {
   // Replaced circa May 2012 by a DOMString (later, IDBTransactionMode enum).
   assert_false('VERSION_CHANGE' in IDBTransaction);
 }, '"VERSION_CHANGE" should not be supported on IDBTransaction.');
+
+// Gecko-proprietary interfaces.
+var removedFromWindow = [
+  'IDBFileHandle',
+  'IDBFileRequest',
+  'IDBMutableFile',
+];
+
+removedFromWindow.forEach(function(name) {
+  test(function() {
+    assert_false(name in window);
+  }, '"' + name + '" should not be supported');
+});
+
 </script>
--- a/testing/web-platform/tests/dom/historical.html
+++ b/testing/web-platform/tests/dom/historical.html
@@ -7,22 +7,24 @@
 <script>
 function isInterfaceNuked(name) {
   test(function() {
     assert_equals(window[name], undefined)
   }, "Historical DOM features must be removed: " + name)
 }
 var nukedInterfaces = [
   "DOMConfiguration",
+  "DOMCursor",
   "DOMError",
   "DOMErrorHandler",
   "DOMImplementationList",
   "DOMImplementationSource",
   "DOMLocator",
   "DOMObject",
+  "DOMRequest",
   "DOMSettableTokenList",
   "DOMUserData",
   "Entity",
   "EntityReference",
   "EventException", // DOM Events
   "NameList",
   "Notation",
   "TypeInfo",