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

Side by Side Diff: chrome/test/data/extensions/platform_apps/window_api_interactive/test.js

Issue 1079913002: [Win] Keep client area the same size as window when fullscreened. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 5 years, 8 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 callbackPass = chrome.test.callbackPass; 5 var callbackPass = chrome.test.callbackPass;
6 6
7 function testWindowGetsFocus(win) { 7 function testWindowGetsFocus(win) {
8 // If the window is already focused, we are done. 8 // If the window is already focused, we are done.
9 if (win.contentWindow.document.hasFocus()) { 9 if (win.contentWindow.document.hasFocus()) {
10 chrome.test.assertTrue(win.contentWindow.document.hasFocus(), 10 chrome.test.assertTrue(win.contentWindow.document.hasFocus(),
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 chrome.test.runTests([ 225 chrome.test.runTests([
226 function drawThenClearAttention() { 226 function drawThenClearAttention() {
227 chrome.app.window.create('test.html', {}, callbackPass(function(win) { 227 chrome.app.window.create('test.html', {}, callbackPass(function(win) {
228 win.drawAttention(); 228 win.drawAttention();
229 win.clearAttention(); 229 win.clearAttention();
230 })); 230 }));
231 } 231 }
232 ]); 232 ]);
233 } 233 }
234 234
235 function testFullscreen() {
236 chrome.test.runTests([
237 function createFullscreen() {
238 chrome.app.window.create('test.html', {
239 state: 'fullscreen',
240 }, callbackPass(function (win) {
241 chrome.test.assertEq(win.contentWindow.screen.width,
242 win.contentWindow.innerWidth);
243 chrome.test.assertEq(win.contentWindow.screen.height,
244 win.contentWindow.innerHeight);
245 }));
246 }
247 ]);
248 }
249
235 chrome.app.runtime.onLaunched.addListener(function() { 250 chrome.app.runtime.onLaunched.addListener(function() {
236 chrome.test.sendMessage('Launched', function(reply) { 251 chrome.test.sendMessage('Launched', function(reply) {
237 window[reply](); 252 window[reply]();
238 }); 253 });
239 }); 254 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/glass_app_window_frame_view_win.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698