Bug 1222097 - Test openWindow with a relative URL. r=bkelly, a=ritu
authorMarco Castelluccio <mar.castelluccio@studenti.unina.it>
Fri, 06 Nov 2015 12:09:00 +0100
changeset 305478 b83e637429b054767c9c5b6ae5054b45ee7b5d05
parent 305477 86a326cd514626d8ec7b603cddae345da95f298e
child 305479 46d8b9f2182038a1f86623b31c4c386522a0b54d
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbkelly, ritu
bugs1222097
milestone44.0a2
Bug 1222097 - Test openWindow with a relative URL. r=bkelly, a=ritu
dom/workers/test/serviceworkers/openWindow_worker.js
--- a/dom/workers/test/serviceworkers/openWindow_worker.js
+++ b/dom/workers/test/serviceworkers/openWindow_worker.js
@@ -1,13 +1,13 @@
 // the worker won't shut down between events because we increased
 // the timeout values.
 var client;
 var window_count = 0;
-var expected_window_count = 6;
+var expected_window_count = 7;
 var resolve_got_all_windows = null;
 var got_all_windows = new Promise(function(res, rej) {
   resolve_got_all_windows = res;
 });
 
 // |expected_window_count| needs to be updated for every new call that's
 // expected to actually open a new window regardless of what |clients.openWindow|
 // returns.
@@ -92,16 +92,17 @@ onnotificationclick = function(e) {
   var redirect_xorigin = "http://example.com/tests/dom/workers/test/serviceworkers/redirect.sjs?"
   var same_origin = "http://mochi.test:8888/tests/dom/workers/test/serviceworkers/open_window/client.html"
   var different_origin = "http://example.com/tests/dom/workers/test/serviceworkers/open_window/client.html"
 
 
   promises.push(testForUrl("about:blank", "TypeError", null, results));
   promises.push(testForUrl(different_origin, null, null, results));
   promises.push(testForUrl(same_origin, null, {url: same_origin}, results));
+  promises.push(testForUrl("open_window/client.html", null, {url: same_origin}, results));
 
   // redirect tests
   promises.push(testForUrl(redirect + "open_window/client.html", null,
 			   {url: same_origin}, results));
   promises.push(testForUrl(redirect + different_origin, null, null, results));
 
   promises.push(testForUrl(redirect_xorigin + "open_window/client.html", null,
 			   null, results));