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

Unified Diff: chrome/test/data/extensions/api_test/notifications/has_permission_prefs/background.html

Issue 7064038: ExtensionApiTest.Notifications: wait until part 1 finishes cleanup before going to part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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
Index: chrome/test/data/extensions/api_test/notifications/has_permission_prefs/background.html
diff --git a/chrome/test/data/extensions/api_test/notifications/has_permission_prefs/background.html b/chrome/test/data/extensions/api_test/notifications/has_permission_prefs/background.html
index d78435558421860b503b2a2677bc9ad2865a4096..e58b14bd7548099a9719f2e455a6d59334d01188 100644
--- a/chrome/test/data/extensions/api_test/notifications/has_permission_prefs/background.html
+++ b/chrome/test/data/extensions/api_test/notifications/has_permission_prefs/background.html
@@ -12,11 +12,13 @@ function showNotification(url) {
}
// Called by the notification when it is done with its tests.
-function onNotificationDone() {
+function onNotificationDone(notificationWindow) {
var views = chrome.extension.getViews();
chrome.test.assertEq(2, views.length);
+ notificationWindow.onunload = function() {
+ chrome.test.succeed();
+ }
notification.cancel();
- chrome.test.succeed();
}
chrome.test.runTests([

Powered by Google App Engine
This is Rietveld 408576698