| Index: chrome/test/data/extensions/platform_apps/web_view/rules_registry/main.js
|
| diff --git a/chrome/test/data/extensions/platform_apps/web_view/visibility_changed/main.js b/chrome/test/data/extensions/platform_apps/web_view/rules_registry/main.js
|
| similarity index 57%
|
| copy from chrome/test/data/extensions/platform_apps/web_view/visibility_changed/main.js
|
| copy to chrome/test/data/extensions/platform_apps/web_view/rules_registry/main.js
|
| index 29591a383de13f22a920b3015e4ce1b605af7505..85de24737bdb12608aba361741daf5bc8ae6e9cb 100644
|
| --- a/chrome/test/data/extensions/platform_apps/web_view/visibility_changed/main.js
|
| +++ b/chrome/test/data/extensions/platform_apps/web_view/rules_registry/main.js
|
| @@ -2,14 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -var LOG = function(msg) {
|
| - window.console.log(msg);
|
| -};
|
| -
|
| -var failTest = function() {
|
| - chrome.test.sendMessage('WebViewTest.FAILURE');
|
| -};
|
| -
|
| var startTest = function() {
|
| document.querySelector('#webview-tag-container').innerHTML =
|
| '<webview style="width: 10px; height: 10px; margin: 0; padding: 0;"' +
|
| @@ -24,19 +16,4 @@ var startTest = function() {
|
| webview.src = 'data:text/html,<body>Guest</body>';
|
| };
|
|
|
| -window.onAppCommand = function(command) {
|
| - LOG('onAppCommand: ' + command);
|
| - switch (command) {
|
| - case 'hide-guest':
|
| - document.querySelector('webview').style.display = 'none';
|
| - break;
|
| - case 'hide-embedder':
|
| - document.body.style.display = 'none';
|
| - break;
|
| - default:
|
| - failTest();
|
| - break;
|
| - }
|
| -};
|
| -
|
| window.onload = startTest;
|
|
|