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

Unified Diff: chrome/test/data/extensions/platform_apps/window_api/test.js

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize AppWindow::CreateParams::visible_on_all_workspaces. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/platform_apps/window_api/test.js
diff --git a/chrome/test/data/extensions/platform_apps/window_api/test.js b/chrome/test/data/extensions/platform_apps/window_api/test.js
index ebcc4447339240d001de0cdd34ad7bbbda55528d..14396a3dfbfbd83855a38b401e53390c9da3c709 100644
--- a/chrome/test/data/extensions/platform_apps/window_api/test.js
+++ b/chrome/test/data/extensions/platform_apps/window_api/test.js
@@ -1352,6 +1352,21 @@ function testFrameColors() {
]);
}
+function testVisibleOnAllWorkspaces() {
+ chrome.test.runTests([
+ function setAndUnsetVisibleOnAllWorkspaces() {
+ chrome.app.window.create('test.html', {
+ visibleOnAllWorkspaces: true
+ }, callbackPass(function(win) {
+ win.setVisibleOnAllWorkspaces(false);
+ win.setVisibleOnAllWorkspaces(true);
+ chrome.test.sendMessage(
+ 'WaitForRoundTrip', callbackPass(function(reply) {}));
+ }));
+ },
+ ]);
+}
+
chrome.app.runtime.onLaunched.addListener(function() {
chrome.test.sendMessage('Launched', function(reply) {
window[reply]();

Powered by Google App Engine
This is Rietveld 408576698