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

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

Issue 618823002: GuestView: Move lifetime management out of content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 6 years, 3 months 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/display_none_and_back/main.js
diff --git a/chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/main.js b/chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/main.js
deleted file mode 100644
index 6a54e0ff509a23fa0d6f369b3fe0ba76c426552d..0000000000000000000000000000000000000000
--- a/chrome/test/data/extensions/platform_apps/web_view/display_none_and_back/main.js
+++ /dev/null
@@ -1,49 +0,0 @@
-// 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.
-
-var LOG = function(msg) {
- window.console.log(msg);
-};
-
-var failTest = function() {
- chrome.test.sendMessage('WebViewTest.FAILURE');
-};
-
-var firstTime = true;
-
-var startTest = function() {
- document.querySelector('#webview-tag-container').innerHTML =
- '<webview style="width: 10px; height: 10px; margin: 0; padding: 0;"' +
- '></webview>';
-
- var webview = document.querySelector('webview');
- var onLoadStop = function(e) {
- if (firstTime) {
- firstTime = false;
- chrome.test.sendMessage('WebViewTest.LAUNCHED');
- } else {
- chrome.test.sendMessage('WebViewTest.PASSED');
- }
- };
-
- webview.addEventListener('loadstop', onLoadStop);
- 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 'show-guest':
- document.querySelector('webview').style.display = '';
- break;
- default:
- failTest();
- break;
- }
-};
-
-window.onload = startTest;

Powered by Google App Engine
This is Rietveld 408576698