mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
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:
parent
9b14daffa4
commit
6107fa863e
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user