| Index: chrome/test/data/extensions/webui/can_embed_extension_options.js
|
| diff --git a/chrome/test/data/extensions/webui/can_embed_extension_options.js b/chrome/test/data/extensions/webui/can_embed_extension_options.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b5223a8ea7f0ac13e6d13c3bb77529e7b4078e13
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/webui/can_embed_extension_options.js
|
| @@ -0,0 +1,24 @@
|
| +// 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.CanEmbedExtensionOptions
|
| +if (!chrome || !chrome.test || !chrome.test.sendMessage) {
|
| + console.error('chrome.test.sendMessage is unavailable on ' +
|
| + document.location.href);
|
| + domAutomationController.send(false);
|
| + return;
|
| +}
|
| +
|
| +chrome.test.sendMessage('ready', function(reply) {
|
| + var extensionoptions = document.createElement('extensionoptions');
|
| + extensionoptions.addEventListener('load', function() {
|
| + chrome.test.sendMessage('guest loaded');
|
| + });
|
| + extensionoptions.setAttribute('extension', reply);
|
| + document.body.appendChild(extensionoptions);
|
| +
|
| +});
|
| +
|
| +domAutomationController.send(true);
|
|
|