Chromium Code Reviews| 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 | |
| 6 // --gtest_filter=ExtensionWebUITest.CanEmbedExtensionOptions | |
| 7 if (!chrome || !chrome.test || !chrome.test.sendMessage) { | |
| 8 console.error('chrome.test.sendMessage is unavailable on ' + | |
| 9 document.location.href); | |
| 10 domAutomationController.send(false); | |
| 11 return; | |
| 12 } | |
| 13 | |
| 14 chrome.test.sendMessage('ready', function(reply) { | |
| 15 var extensionoptions = document.createElement('extensionoptions'); | |
| 16 extensionoptions.addEventListener('load', function() { | |
| 17 chrome.test.sendMessage('guest loaded'); | |
| 18 }); | |
| 19 extensionoptions.setAttribute('extension', reply); | |
| 20 document.body.appendChild(extensionoptions); | |
| 21 | |
|
not at google - send to devlin
2014/08/12 00:08:24
delete this line
ericzeng
2014/08/12 00:32:27
Done.
| |
| 22 }); | |
| 23 | |
| 24 domAutomationController.send(true); | |
| OLD | NEW |