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

Unified Diff: chrome/test/data/extensions/webui/on_message.js

Issue 411733002: WIP: diff which plumbs through the event URL. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/webui/on_message.js
diff --git a/chrome/test/data/extensions/webui/on_message.js b/chrome/test/data/extensions/webui/on_message.js
index e564224af7bbbd13ce6e20d6d5c77bb1a0ee7d68..48464e579b98979fd23476970d8ebe792eaaf1b4 100644
--- a/chrome/test/data/extensions/webui/on_message.js
+++ b/chrome/test/data/extensions/webui/on_message.js
@@ -4,6 +4,13 @@
// out/Debug/browser_tests --gtest_filter=ExtensionWebUITest.OnMessage
+if (!chrome || !chrome.test || !chrome.test.onMessage) {
+ console.error('chrome.test.onMessage is unavailable on ' +
+ document.location.href);
+ domAutomationController.send(false);
+ return;
+}
+
chrome.test.listenOnce(chrome.test.onMessage, function(args) {
if (args.data != 'hi') {
console.error('Expected "hi", Actual ' + JSON.stringify(args.data));
« no previous file with comments | « chrome/browser/extensions/extension_webui_apitest.cc ('k') | chrome/test/data/extensions/webui/sanity_check_available_apis.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698