OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // out/Debug/browser_tests --gtest_filter=ExtensionWebUITest.OnMessage |
| 6 |
| 7 chrome.test.listenOnce(chrome.test.onMessage, function(args) { |
| 8 if (args.data != 'hi') { |
| 9 console.error('Expected "hi", Actual ' + JSON.stringify(args.data)); |
| 10 chrome.test.sendMessage('false'); |
| 11 } else { |
| 12 chrome.test.sendMessage('true'); |
| 13 } |
| 14 }); |
| 15 |
| 16 domAutomationController.send(true); |
OLD | NEW |