From 6107fa863e60e826f039ddce515de06d26e4e123 Mon Sep 17 00:00:00 2001 From: Mike Conley Date: Thu, 10 Dec 2015 17:50:23 -0500 Subject: [PATCH] Bug 1195295 - Follow-up: remove other race-y SDK test that I failed to remove in 05b98fe2ac4f. r=Mossop Mossop r+'d this over IRC. --- .../source/test/tabs/test-firefox-tabs.js | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/addon-sdk/source/test/tabs/test-firefox-tabs.js b/addon-sdk/source/test/tabs/test-firefox-tabs.js index 16a0597c013..fbc7b161db1 100644 --- a/addon-sdk/source/test/tabs/test-firefox-tabs.js +++ b/addon-sdk/source/test/tabs/test-firefox-tabs.js @@ -765,26 +765,6 @@ exports.testPerTabEvents = function*(assert) { assert.equal(eventCount, 2, "both listeners were notified."); }; -exports.testAttachOnOpen = function (assert, done) { - // Take care that attach has to be called on tab ready and not on tab open. - open().then(focus).then(window => { - tabs.open({ - url: "data:text/html;charset=utf-8,foobar", - onOpen: function (tab) { - let worker = tab.attach({ - contentScript: 'self.postMessage(document.location.href); ', - onMessage: function (msg) { - assert.equal(msg, "about:blank", - "Worker document url is about:blank on open"); - worker.destroy(); - close(window).then(done).then(null, assert.fail); - } - }); - } - }); - }).then(null, assert.fail); -} - exports.testAttachOnMultipleDocuments = function (assert, done) { // Example of attach that process multiple tab documents open().then(focus).then(window => {