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.
5 // out/Debug/browser_tests
6 // --gtest_filter=ExtensionWebUITest.CanEmbedExtensionOptions
10 // out/Debug/browser_tests
11 // --gtest_filter=ExtensionWebUITest.CannotEmbedDisabledExtension
12 if (!chrome || !chrome.test || !chrome.test.sendMessage) {
13 console.error('chrome.test.sendMessage is unavailable on ' +
14 document.location.href);
15 domAutomationController.send(false);
19 chrome.test.sendMessage('ready', function(reply) {
20 var extensionoptions = document.createElement('extensionoptions');
21 extensionoptions.addEventListener('load', function() {
22 chrome.test.sendMessage('load');
24 extensionoptions.addEventListener('createfailed', function() {
25 chrome.test.sendMessage('createfailed');
27 extensionoptions.setAttribute('extension', reply);
28 document.body.appendChild(extensionoptions);
31 domAutomationController.send(true);