mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 789248. Fix failing social tests by only updating the status panel on tests that require it and are sure to clear it up afterwards. r=felipe
This commit is contained in:
parent
f4119f617d
commit
207baefbc9
@ -59,6 +59,8 @@ var tests = {
|
|||||||
// The sidebar message will always come first, since it loads by default
|
// The sidebar message will always come first, since it loads by default
|
||||||
ok(true, "got sidebar message");
|
ok(true, "got sidebar message");
|
||||||
gotSidebarMessage = true;
|
gotSidebarMessage = true;
|
||||||
|
// load a status panel
|
||||||
|
port.postMessage({topic: "test-ambient-notification"});
|
||||||
checkNext();
|
checkNext();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -7,8 +7,8 @@ function test() {
|
|||||||
|
|
||||||
let manifest = { // normal provider
|
let manifest = { // normal provider
|
||||||
name: "provider 1",
|
name: "provider 1",
|
||||||
origin: "https://example1.com",
|
origin: "https://example.com",
|
||||||
workerURL: "https://example1.com/worker.js",
|
workerURL: "https://example.com/browser/browser/base/content/test/social_worker.js",
|
||||||
iconURL: "chrome://branding/content/icon48.png"
|
iconURL: "chrome://branding/content/icon48.png"
|
||||||
};
|
};
|
||||||
runSocialTestWithProvider(manifest, function (finishcb) {
|
runSocialTestWithProvider(manifest, function (finishcb) {
|
||||||
|
@ -77,13 +77,15 @@ onconnect = function(e) {
|
|||||||
profileURL: "http://en.wikipedia.org/wiki/Kuma_Lisa"
|
profileURL: "http://en.wikipedia.org/wiki/Kuma_Lisa"
|
||||||
};
|
};
|
||||||
port.postMessage({topic: "social.user-profile", data: profile});
|
port.postMessage({topic: "social.user-profile", data: profile});
|
||||||
|
break;
|
||||||
|
case "test-ambient-notification":
|
||||||
let icon = {
|
let icon = {
|
||||||
name: "testIcon",
|
name: "testIcon",
|
||||||
iconURL: "chrome://branding/content/icon48.png",
|
iconURL: "chrome://branding/content/icon48.png",
|
||||||
contentPanel: "https://example.com/browser/browser/base/content/test/social_panel.html",
|
contentPanel: "https://example.com/browser/browser/base/content/test/social_panel.html",
|
||||||
counter: 1
|
counter: 1
|
||||||
};
|
};
|
||||||
port.postMessage({topic: "social.ambient-notification", data: icon});
|
apiPort.postMessage({topic: "social.ambient-notification", data: icon});
|
||||||
break;
|
break;
|
||||||
case "test-isVisible":
|
case "test-isVisible":
|
||||||
sidebarPort.postMessage({topic: "test-isVisible"});
|
sidebarPort.postMessage({topic: "test-isVisible"});
|
||||||
|
Loading…
Reference in New Issue
Block a user