diff --git a/browser/base/content/test/browser_social_mozSocial_API.js b/browser/base/content/test/browser_social_mozSocial_API.js index 7315aa1debb..e4b13fc848e 100644 --- a/browser/base/content/test/browser_social_mozSocial_API.js +++ b/browser/base/content/test/browser_social_mozSocial_API.js @@ -59,6 +59,8 @@ var tests = { // The sidebar message will always come first, since it loads by default ok(true, "got sidebar message"); gotSidebarMessage = true; + // load a status panel + port.postMessage({topic: "test-ambient-notification"}); checkNext(); break; } diff --git a/browser/base/content/test/browser_social_toolbar.js b/browser/base/content/test/browser_social_toolbar.js index 7c12a7ebc4f..5bc85196bf8 100644 --- a/browser/base/content/test/browser_social_toolbar.js +++ b/browser/base/content/test/browser_social_toolbar.js @@ -7,8 +7,8 @@ function test() { let manifest = { // normal provider name: "provider 1", - origin: "https://example1.com", - workerURL: "https://example1.com/worker.js", + origin: "https://example.com", + workerURL: "https://example.com/browser/browser/base/content/test/social_worker.js", iconURL: "chrome://branding/content/icon48.png" }; runSocialTestWithProvider(manifest, function (finishcb) { diff --git a/browser/base/content/test/social_worker.js b/browser/base/content/test/social_worker.js index 5e5460e1067..f5de29f9194 100644 --- a/browser/base/content/test/social_worker.js +++ b/browser/base/content/test/social_worker.js @@ -77,13 +77,15 @@ onconnect = function(e) { profileURL: "http://en.wikipedia.org/wiki/Kuma_Lisa" }; port.postMessage({topic: "social.user-profile", data: profile}); + break; + case "test-ambient-notification": let icon = { name: "testIcon", iconURL: "chrome://branding/content/icon48.png", contentPanel: "https://example.com/browser/browser/base/content/test/social_panel.html", counter: 1 }; - port.postMessage({topic: "social.ambient-notification", data: icon}); + apiPort.postMessage({topic: "social.ambient-notification", data: icon}); break; case "test-isVisible": sidebarPort.postMessage({topic: "test-isVisible"});