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

Unified Diff: chrome/test/data/extensions/api_test/tabs/basics/test.js

Issue 545044: Add the ability to focus a window to chrome.window.update(). (Closed)
Patch Set: tabs Created 10 years, 11 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
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/tabs/basics/test.js
diff --git a/chrome/test/data/extensions/api_test/tabs/basics/test.js b/chrome/test/data/extensions/api_test/tabs/basics/test.js
index a516ddc26e667731e532d1d56fa64716e1fa5148..00f20dd14c6f5d23fff5eda2ee02d50019deacad 100644
--- a/chrome/test/data/extensions/api_test/tabs/basics/test.js
+++ b/chrome/test/data/extensions/api_test/tabs/basics/test.js
@@ -35,7 +35,6 @@ chrome.test.runTests([
assertTrue(tab.index > firstTabIndex);
assertEq(firstWindowId, tab.windowId);
assertEq(false, tab.selected);
- assertEq("chrome://newtab/", tab.url);
}));
},
@@ -241,6 +240,14 @@ chrome.test.runTests([
}));
},
+ function focus() {
+ chrome.test.listenOnce(chrome.windows.onFocusChanged, function(winId) {
+ assertEq(firstWindowId, winId);
+ });
+
+ chrome.windows.update(firstWindowId, {focused: true}, pass());
+ },
+
/*
// TODO(jcampan): http://crbug.com/30662 the detection language library
// crashes on some sites and has been temporarily disabled.
« no previous file with comments | « chrome/common/extensions/api/extension_api.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698