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

Unified Diff: chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js

Issue 2017113002: [Extensions] DCHECK that ExtensionFunctions respond (and only once) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/browser_action/open_popup/open_popup_succeeds.js
diff --git a/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js b/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js
index 182a56f626b3053d317ade4d3d360887c84971ac..2d618f2a52e500f26915200d278bf7ca5556305b 100644
--- a/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js
+++ b/chrome/test/data/extensions/api_test/browser_action/open_popup/open_popup_succeeds.js
@@ -7,7 +7,9 @@
chrome.browserAction.openPopup(function(popupWindow) {
chrome.test.assertTrue(!!popupWindow);
chrome.test.notifyPass();
- chrome.test.sendMessage('ready', function() {
+ chrome.test.sendMessage('ready', function(reply) {
+ if (reply !== 'show another')
+ return;
chrome.browserAction.openPopup(function(popupWindow2) {
chrome.test.assertTrue(!!popupWindow2);
chrome.test.succeed();

Powered by Google App Engine
This is Rietveld 408576698