Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9397)

Unified Diff: chrome/test/data/extensions/platform_apps/web_view/rules_registry/main.js

Issue 764643002: Remove WebViewKey in rules registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698