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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/desktop/lazy_desktop.js

Issue 1003283002: Enable chrome.automation.getDesktop on all aura platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/api_test/automation/tests/desktop/lazy_desktop.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/desktop_not_supported.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/lazy_desktop.js
similarity index 54%
rename from chrome/test/data/extensions/api_test/automation/tests/desktop/desktop_not_supported.js
rename to chrome/test/data/extensions/api_test/automation/tests/desktop/lazy_desktop.js
index a20f381ce5438b327b118bbee54a02b08f81a67f..4091840023758bfb5e2b6a4015b01b12d0f7409b 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/desktop_not_supported.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/lazy_desktop.js
@@ -4,11 +4,11 @@
var allTests = [
function testGetDesktop() {
- chrome.automation.getDesktop(function(arg) {
- assertEq(undefined, arg);
- assertEq('getDesktop is unsupported by this platform',
- chrome.runtime.lastError.message);
- chrome.test.succeed();
+ chrome.automation.getDesktop(function(r) {
+ chrome.windows.create({}, function() {
+ assertEq(1, r.children.length);
+ chrome.test.succeed();
+ });
});
}
];

Powered by Google App Engine
This is Rietveld 408576698