| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e564224af7bbbd13ce6e20d6d5c77bb1a0ee7d68
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/webui/on_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.OnMessage
|
| +
|
| +chrome.test.listenOnce(chrome.test.onMessage, function(args) {
|
| + if (args.data != 'hi') {
|
| + console.error('Expected "hi", Actual ' + JSON.stringify(args.data));
|
| + chrome.test.sendMessage('false');
|
| + } else {
|
| + chrome.test.sendMessage('true');
|
| + }
|
| +});
|
| +
|
| +domAutomationController.send(true);
|
|
|