Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1222)

Unified Diff: chrome/test/data/extensions/platform_apps/messaging/app2/background.js

Issue 448473003: Attempt to fix flaky PlatformAppBrowserTest.Messaging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/apps/app_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/platform_apps/messaging/app2/background.js
diff --git a/chrome/test/data/extensions/platform_apps/messaging/app2/background.js b/chrome/test/data/extensions/platform_apps/messaging/app2/background.js
index 6f05fedbd23753c0cae0bf2e3bcfbb18b67727ae..f64a2ed564c03675ae4d0a886d9156f5586a9d04 100644
--- a/chrome/test/data/extensions/platform_apps/messaging/app2/background.js
+++ b/chrome/test/data/extensions/platform_apps/messaging/app2/background.js
@@ -4,8 +4,6 @@
var otherId = 'ljhhihhmjomkjokmknellgbidphmahkh';
-chrome.test.sendMessage('Launched');
-
chrome.runtime.onConnectExternal.addListener(function(port) {
port.onMessage.addListener(function(msg) {
if (msg == 'ok_to_disconnect') {
@@ -23,3 +21,5 @@ chrome.runtime.onMessageExternal.addListener(function(msg, sender, callback) {
else
callback();
});
+
+chrome.test.sendMessage('Ready');
Matt Giuca 2014/08/06 05:20:03 // Must ensure that the listeners are active befor
benwells 2014/08/06 05:41:39 Done.
« no previous file with comments | « chrome/browser/apps/app_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698