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

Unified Diff: chrome/test/data/extensions/platform_apps/pointer_lock/has_permission/window.js

Issue 306823002: Flip --enable-apps-show-on-first-paint flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests Created 6 years, 7 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/pointer_lock/has_permission/window.js
diff --git a/chrome/test/data/extensions/platform_apps/pointer_lock/has_permission/window.js b/chrome/test/data/extensions/platform_apps/pointer_lock/has_permission/window.js
index 22386703066474ea3c0b8c89c62f5700d8ba7aa1..9c8dcb006f4d836618d4ce15977c5243b77ef665 100644
--- a/chrome/test/data/extensions/platform_apps/pointer_lock/has_permission/window.js
+++ b/chrome/test/data/extensions/platform_apps/pointer_lock/has_permission/window.js
@@ -2,7 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-window.onload = function () {
+chrome.app.window.current().onWindowFirstShown.addListener(function() {
+ console.log('poo');
chrome.test.sendMessage('Launched', function() {
chrome.test.runTests([
function requestPointerLock() {
@@ -12,4 +13,4 @@ window.onload = function () {
},
]);
});
-}
+});

Powered by Google App Engine
This is Rietveld 408576698