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

Unified Diff: chrome/test/data/extensions/hotword/test.js

Issue 587153002: Suppress the exception thrown when responding to message with no response callback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 6 years, 3 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/hotword/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/hotword/test.js
diff --git a/chrome/test/data/extensions/hotword/test.js b/chrome/test/data/extensions/hotword/test.js
new file mode 100644
index 0000000000000000000000000000000000000000..51a8c808ccd7353cb4b48d633bbd07137a3561fb
--- /dev/null
+++ b/chrome/test/data/extensions/hotword/test.js
@@ -0,0 +1,17 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Send a WAKE_UP command to the hotword helper extension.
+chrome.runtime.sendMessage(
+ 'dnhpdliibojhegemfjheidglijccjfmc',
+ {type: 'wu'});
+
+// Assume messages are delivered in-order. In this case, this message will be
+// handled after the previous one, and indicates the test case has completed.
+chrome.runtime.sendMessage(
+ 'dnhpdliibojhegemfjheidglijccjfmc',
+ {type: 'wu'},
+ function() {
+ chrome.test.sendMessage("done");
+ });
« no previous file with comments | « chrome/test/data/extensions/hotword/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698