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

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

Issue 550413002: Revert "Add AppWindow.setVisibleOnAllWorkspaces." (https://codereview.chromium.org/469993003) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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 var callbackFail = chrome.test.callbackFail; 6 var callbackFail = chrome.test.callbackFail;
7 var defaultFuzzFactor = 1; 7 var defaultFuzzFactor = 1;
8 8
9 function assertFuzzyEq(expected, actual, fuzzFactor, message) { 9 function assertFuzzyEq(expected, actual, fuzzFactor, message) {
10 if (!message) { 10 if (!message) {
(...skipping 1334 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 chrome.app.window.create('test.html', { 1345 chrome.app.window.create('test.html', {
1346 frame: { 1346 frame: {
1347 color: 'DontWorryBeHappy' 1347 color: 'DontWorryBeHappy'
1348 } 1348 }
1349 }, 1349 },
1350 callbackFail('The color specification could not be parsed.')); 1350 callbackFail('The color specification could not be parsed.'));
1351 } 1351 }
1352 ]); 1352 ]);
1353 } 1353 }
1354 1354
1355 function testVisibleOnAllWorkspaces() {
1356 chrome.test.runTests([
1357 function setAndUnsetVisibleOnAllWorkspaces() {
1358 chrome.app.window.create('test.html', {
1359 visibleOnAllWorkspaces: true
1360 }, callbackPass(function(win) {
1361 win.setVisibleOnAllWorkspaces(false);
1362 win.setVisibleOnAllWorkspaces(true);
1363 chrome.test.sendMessage(
1364 'WaitForRoundTrip', callbackPass(function(reply) {}));
1365 }));
1366 },
1367 ]);
1368 }
1369
1370 chrome.app.runtime.onLaunched.addListener(function() { 1355 chrome.app.runtime.onLaunched.addListener(function() {
1371 chrome.test.sendMessage('Launched', function(reply) { 1356 chrome.test.sendMessage('Launched', function(reply) {
1372 window[reply](); 1357 window[reply]();
1373 }); 1358 });
1374 }); 1359 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698