Bug 1478776 - Part 3: Forward todo/todo_is to APZ mochitests, too. r=botond
authorJan Henning <jh+bugzilla@buttercookie.de>
Thu, 20 Dec 2018 21:34:57 +0000
changeset 451694 e6b186bffed79a39f5a3694679ec853a4943ca8c
parent 451693 93a3c7fc4acea01c618a459f5502b638aa718a84
child 451695 b056dade814dc2018a7fb3114b21ab33301a44fe
push id35251
push userccoroiu@mozilla.com
push dateFri, 21 Dec 2018 21:54:30 +0000
treeherdermozilla-central@74101900e7d4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs1478776
milestone66.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 1478776 - Part 3: Forward todo/todo_is to APZ mochitests, too. r=botond Differential Revision: https://phabricator.services.mozilla.com/D14040
gfx/layers/apz/test/mochitest/apz_test_utils.js
--- a/gfx/layers/apz/test/mochitest/apz_test_utils.js
+++ b/gfx/layers/apz/test/mochitest/apz_test_utils.js
@@ -277,16 +277,18 @@ function runSubtestsSeriallyInFreshWindo
         w.SimpleTest = SimpleTest;
         w.is = function(a, b, msg) { return is(a, b, aFile + " | " + msg); };
         w.ok = function(cond, msg) {
           arguments[1] = aFile + " | " + msg;
           // Forward all arguments to SimpleTest.ok where we will check that ok() was
           // called with at most 2 arguments.
           return SimpleTest.ok.apply(SimpleTest, arguments);
         };
+        w.todo_is = function(a, b, msg)  { return todo_is(a, b, aFile + " | " + msg); };
+        w.todo = function(cond, msg) { return todo(cond, aFile + " | " + msg); };
         if (test.onload) {
           w.addEventListener('load', function(e) { test.onload(w); }, { once: true });
         }
         var subtestUrl = location.href.substring(0, location.href.lastIndexOf('/') + 1) + aFile;
         function urlResolves(url) {
           var request = new XMLHttpRequest();
           request.open('GET', url, false);
           request.send();