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.
This commit is contained in:
Mike Conley 2015-12-10 17:50:23 -05:00
parent 9b14daffa4
commit 6107fa863e

View File

@ -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 => {