Backed out changeset 377601350abc (bug 1198381)
authorCarsten "Tomcat" Book <cbook@mozilla.com>
Tue, 25 Oct 2016 12:32:52 +0200
changeset 362114 ced3b02ea694ce36382918060fa76b6cbd978254
parent 362113 523d47a7f8f38c271a2d5cf4fb9cbdbad1036e3b
child 362115 8a58ea1299769ae39cd971fb5da290ffa54f10fc
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-beta@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs1198381
milestone52.0a1
backs out377601350abc0f3148c2c73cd80f6b2810dbcecf
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
Backed out changeset 377601350abc (bug 1198381)
dom/tests/mochitest/general/test_interfaces.html
testing/web-platform/meta/MANIFEST.json
testing/web-platform/meta/html/webappapis/idle-callbacks/__dir__.ini
testing/web-platform/tests/html/webappapis/idle-callbacks/callback-exception.html
testing/web-platform/tests/html/webappapis/idle-callbacks/callback-iframe.html
testing/web-platform/tests/html/webappapis/idle-callbacks/callback-invoked.html
testing/web-platform/tests/html/webappapis/idle-callbacks/callback-multiple-calls.html
testing/web-platform/tests/html/webappapis/idle-callbacks/callback-timeout.html
testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html
testing/web-platform/tests/html/webappapis/idle-callbacks/idlharness.html
--- a/dom/tests/mochitest/general/test_interfaces.html
+++ b/dom/tests/mochitest/general/test_interfaces.html
@@ -560,18 +560,16 @@ var interfaceNamesInGlobalScope =
     "HTMLTrackElement",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "HTMLUListElement",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "HTMLUnknownElement",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "HTMLVideoElement",
 // IMPORTANT: Do not change this list without review from a DOM peer!
-    "IdleDeadline",
-// IMPORTANT: Do not change this list without review from a DOM peer!
     "IDBCursor",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "IDBCursorWithValue",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "IDBDatabase",
 // IMPORTANT: Do not change this list without review from a DOM peer!
     "IDBFactory",
 // IMPORTANT: Do not change this list without review from a DOM peer!
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -37691,58 +37691,16 @@
           }
         ],
         "html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html": [
           {
             "path": "html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html",
             "url": "/html/semantics/scripting-1/the-script-element/script-onload-insertion-point.html"
           }
         ],
-        "html/webappapis/idle-callbacks/callback-exception.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/callback-exception.html",
-            "url": "/html/webappapis/idle-callbacks/callback-exception.html"
-          }
-        ],
-        "html/webappapis/idle-callbacks/callback-iframe.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/callback-iframe.html",
-            "url": "/html/webappapis/idle-callbacks/callback-iframe.html"
-          }
-        ],
-        "html/webappapis/idle-callbacks/callback-invoked.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/callback-invoked.html",
-            "url": "/html/webappapis/idle-callbacks/callback-invoked.html"
-          }
-        ],
-        "html/webappapis/idle-callbacks/callback-multiple-calls.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/callback-multiple-calls.html",
-            "url": "/html/webappapis/idle-callbacks/callback-multiple-calls.html"
-          }
-        ],
-        "html/webappapis/idle-callbacks/callback-timeout.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/callback-timeout.html",
-            "url": "/html/webappapis/idle-callbacks/callback-timeout.html"
-          }
-        ],
-        "html/webappapis/idle-callbacks/cancel-invoked.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/cancel-invoked.html",
-            "url": "/html/webappapis/idle-callbacks/cancel-invoked.html"
-          }
-        ],
-        "html/webappapis/idle-callbacks/idlharness.html": [
-          {
-            "path": "html/webappapis/idle-callbacks/idlharness.html",
-            "url": "/html/webappapis/idle-callbacks/idlharness.html"
-          }
-        ],
         "secure-contexts/basic-dedicated-worker.html": [
           {
             "path": "secure-contexts/basic-dedicated-worker.html",
             "url": "/secure-contexts/basic-dedicated-worker.html"
           }
         ],
         "secure-contexts/basic-dedicated-worker.https.html": [
           {
deleted file mode 100644
--- a/testing/web-platform/meta/html/webappapis/idle-callbacks/__dir__.ini
+++ /dev/null
@@ -1,1 +0,0 @@
-prefs: [dom.requestIdleCallback.enabled:true]
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/callback-exception.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>requestIdleCallback callback exception reported to error handler</title>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<div id="log"></div>
-<script>
-  var custom_exception = 'requestIdleCallbackException';
-  setup({allow_uncaught_exception : true});
-  async_test(function (t) {
-    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
-    addEventListener("error",function(e) {
-      t.step(function() {
-        assert_equals(e.error.message, custom_exception);
-        t.done();
-      })
-    });
-    window.requestIdleCallback(function () {
-      throw new Error(custom_exception);
-    });
-  }, "requestIdleCallback callback exceptions are reported to error handler");
-</script>
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/callback-iframe.html
+++ /dev/null
@@ -1,17 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title></title>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<div id="log"></div>
-<iframe style="display:none" id="frame"></iframe>
-<script>
-  async_test(function (t) {
-    let frame = document.getElementById("frame");
-    frame.contentWindow.test = function() {
-      frame.contentWindow.requestIdleCallback(t.step_func_done());
-    }
-
-    frame.contentWindow.test();
-  });
-</script>
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/callback-invoked.html
+++ /dev/null
@@ -1,12 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>requestIdleCallback callback must be called eventually</title>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<div id="log"></div>
-<script>
-  async_test(function (t) {
-    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
-    window.requestIdleCallback(t.step_func_done());
-  }, "requestIdleCallback callback is invoked at least once before the timeout");
-</script>
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/callback-multiple-calls.html
+++ /dev/null
@@ -1,41 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>multiple calls to requestIdleCallback</title>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<div id="log"></div>
-<script>
-  async_test(function (t) {
-    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
-    var counter = 0;
-    function f(c) {
-      assert_equals(counter, c);
-      if (counter === 99) {
-        t.done();
-      }
-
-      ++counter;
-    }
-    for (var i = 0; i < 100; ++i) {
-      let j = i;
-      window.requestIdleCallback(t.step_func(function () { f(j) }));
-    }
-  }, "requestIdleCallback callbacks should be invoked in order (called iteratively)");
-
-  async_test(function (t) {
-    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
-    var counter = 0;
-
-    function f(c) {
-      assert_equals(counter, c);
-      if (counter === 99) {
-        t.done();
-      }
-
-      ++counter;
-      window.requestIdleCallback(t.step_func(function () { f(c + 1) }));
-    }
-
-    window.requestIdleCallback(t.step_func(function () { f(0) }));
-  }, "requestIdleCallback callbacks should be invoked in order (called recursively)");
-</script>
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/callback-timeout.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>requestIdleCallback timeout callback must be called with didTimeout equal to true</title>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<div id="log"></div>
-<script>
-  async_test(function (t) {
-    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
-    var counter = 0;
-
-    function g(deadline) {
-      assert_true(deadline.didTimeout)
-      t.done();
-    }
-
-    function f(deadline) {
-      assert_false(deadline.didTimeout);
-      window.requestIdleCallback(t.step_func(g), {timeout:300});
-
-      var d = Date.now() + 500;
-      while (Date.now() < d) {
-
-      }
-    }
-    window.requestIdleCallback(t.step_func(f));
-  }, "requestIdleCallback callback should time out");
-</script>
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/cancel-invoked.html
+++ /dev/null
@@ -1,26 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>cancelling idle requests</title>
-<script src=/resources/testharness.js></script>
-<script src=/resources/testharnessreport.js></script>
-<div id="log"></div>
-<script>
-  test(function (t) {
-    window.cancelIdleCallback(42);
-    assert_true(true);
-  }, "cancelIdleCallback does nothing if there is no callback with the given handle");
-
-  async_test(function (t) {
-    assert_false(document.hidden, "document.hidden must exist and be false to run this test properly");
-    var neverCalled = true;
-    var handle = window.requestIdleCallback(function () {
-      neverCalled = false;
-    });
-    window.cancelIdleCallback(handle);
-
-    t.step_timeout(function() {
-      assert_true(neverCalled);
-      t.done();
-    }, 2000);
-  }, "A cancelled callback is never invoked");
-</script>
deleted file mode 100644
--- a/testing/web-platform/tests/html/webappapis/idle-callbacks/idlharness.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<title>idlharness test</title>
-<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' style='display:none'>
-[PrimaryGlobal]
-interface Window {
-};
-</pre>
-
-<pre id='idl'>
-partial interface Window {
-  unsigned long requestIdleCallback(IdleRequestCallback callback,
-                                    optional IdleRequestOptions options);
-  void          cancelIdleCallback(unsigned long handle);
-};
-
-dictionary IdleRequestOptions {
-  unsigned long timeout;
-};
-
-callback IdleRequestCallback = void (IdleDeadline deadline);
-</pre>
-<script>
-  var idl_array = new IdlArray();
-  idl_array.add_untested_idls(document.getElementById("untested_idl").textContent);
-  idl_array.add_idls(document.getElementById("idl").textContent);
-  idl_array.add_objects({Window: ["window"]});
-  idl_array.test();
-</script>