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; |