Bug 1137477 - Replace getServiced() with matchAll() in tests. r=catalinb
authorNikhil Marathe <nsm.nikhil@gmail.com>
Thu, 26 Feb 2015 17:20:23 -0500
changeset 231949 483a3749115b2a1f90470df4582c241851788899
parent 231948 41f36857b47e9125f2d601c8a8a18a377697c127
child 231950 f88b64c38d3dce82ac051ed3407136c830bf87f7
push id28364
push usercbook@mozilla.com
push dateThu, 05 Mar 2015 14:12:01 +0000
treeherdermozilla-central@fa59461863f5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscatalinb
bugs1137477
milestone39.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 1137477 - Replace getServiced() with matchAll() in tests. r=catalinb
dom/workers/test/serviceworkers/worker_unregister.js
dom/workers/test/serviceworkers/worker_update.js
--- a/dom/workers/test/serviceworkers/worker_unregister.js
+++ b/dom/workers/test/serviceworkers/worker_unregister.js
@@ -1,10 +1,10 @@
 onmessage = function(e) {
-  clients.getServiced().then(function(c) {
+  clients.matchAll().then(function(c) {
     if (c.length == 0) {
       // We cannot proceed.
       return;
     }
 
     unregister().then(function() {
       c[0].postMessage('DONE');
     }, function() {
--- a/dom/workers/test/serviceworkers/worker_update.js
+++ b/dom/workers/test/serviceworkers/worker_update.js
@@ -1,14 +1,14 @@
 // For now this test only calls update to verify that our registration
 // job queueing works properly when called from the worker thread. We should
 // test actual update scenarios with a SJS test.
 onmessage = function(e) {
   self.update();
-  clients.getServiced().then(function(c) {
+  clients.matchAll().then(function(c) {
     if (c.length == 0) {
       // We cannot proceed.
       return;
     }
 
     c[0].postMessage('FINISH');
   });
 }