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

Unified Diff: chrome/test/data/extensions/api_test/push_messaging_canary/push_messaging_canary.js

Issue 13483025: Test code to see if a timer fixes the issue for the majority of cases. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Push Messaging Canary Test Fix - Try a longer timeout Created 7 years, 8 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/test/data/extensions/api_test/push_messaging_canary/manifest.json ('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/api_test/push_messaging_canary/push_messaging_canary.js
diff --git a/chrome/test/data/extensions/api_test/push_messaging_canary/push_messaging_canary.js b/chrome/test/data/extensions/api_test/push_messaging_canary/push_messaging_canary.js
index fd19f3caffff07f52b8dbc09fce81b574f88f664..a6759f3ef9bdbaafa552dea491c0155f7f076eb8 100644
--- a/chrome/test/data/extensions/api_test/push_messaging_canary/push_messaging_canary.js
+++ b/chrome/test/data/extensions/api_test/push_messaging_canary/push_messaging_canary.js
@@ -16,8 +16,13 @@ function verifyDetails(details) {
function startTestWithCredentials(paramClientId, paramClientSecret,
paramRefreshToken) {
+ var callbackPassFunc = chrome.test.callbackPass(verifyDetails);
chrome.pushMessaging.onMessage.addListener(
- chrome.test.callbackPass(verifyDetails));
+ function(details) {
+ // We need to allow time for the invalidation service to ACK before we
+ // shutdown.
+ window.setTimeout(callbackPassFunc(details), 20000);
+ });
clientId = paramClientId;
clientSecret = paramClientSecret;
« no previous file with comments | « chrome/test/data/extensions/api_test/push_messaging_canary/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698