Index: chrome/test/data/extensions/webui/send_message.js |
diff --git a/chrome/test/data/extensions/webui/send_message.js b/chrome/test/data/extensions/webui/send_message.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..69ab31429a92caa30db5c0c63c6526f111b528ef |
--- /dev/null |
+++ b/chrome/test/data/extensions/webui/send_message.js |
@@ -0,0 +1,16 @@ |
+// 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. |
+ |
+// out/Debug/browser_tests --gtest_filter=ExtensionWebUITest.SendMessage |
+ |
+chrome.test.sendMessage('ping', function(reply) { |
+ if (reply != 'pong') { |
+ console.error('Expected "pong", Actual ' + JSON.stringify(reply)); |
+ chrome.test.sendMessage('false'); |
+ } else { |
+ chrome.test.sendMessage('true'); |
+ } |
+}); |
+ |
+domAutomationController.send(true); |