| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var embedder = {}; | 5 var embedder = {}; |
| 6 embedder.test = {}; | 6 embedder.test = {}; |
| 7 embedder.triggerNavUrl = | 7 embedder.triggerNavUrl = |
| 8 'data:text/html,<html><body>trigger navigation<body></html>'; | 8 'data:text/html,<html><body>trigger navigation<body></html>'; |
| 9 | 9 |
| 10 window.runTest = function(testName) { | 10 window.runTest = function(testName) { |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 webview1.setAttribute('src', embedder.triggerNavUrl); | 120 webview1.setAttribute('src', embedder.triggerNavUrl); |
| 121 webview2.setAttribute('src', embedder.triggerNavUrl); | 121 webview2.setAttribute('src', embedder.triggerNavUrl); |
| 122 document.body.appendChild(webview1); | 122 document.body.appendChild(webview1); |
| 123 document.body.appendChild(webview2); | 123 document.body.appendChild(webview2); |
| 124 } | 124 } |
| 125 | 125 |
| 126 embedder.test.testList = { | 126 embedder.test.testList = { |
| 127 'testPointerLockLostWithFocus': testPointerLockLostWithFocus, | 127 'testPointerLockLostWithFocus': testPointerLockLostWithFocus, |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 onload = function() { | 130 chrome.app.window.current().onWindowFirstShown.addListener(function() { |
| 131 chrome.test.getConfig(function(config) { | 131 chrome.test.getConfig(function(config) { |
| 132 chrome.test.sendMessage('Launched'); | 132 chrome.test.sendMessage('Launched'); |
| 133 }); | 133 }); |
| 134 }; | 134 }); |
| OLD | NEW |