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

Unified Diff: chrome/test/data/extensions/api_test/automation/tests/desktop/common.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/common.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
index a6d3d9afb09ae040e9b16185b7e4a3c46e37654d..406c75c54f1298a00771d6eb398be10598537ff5 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/common.js
@@ -42,14 +42,14 @@ function runWithDocument(docString, callback) {
function setupAndRunTests(allTests, opt_docString) {
function runTestInternal() {
- chrome.automation.getDesktop(function(rootNodeArg) {
- rootNode = rootNodeArg;
- chrome.test.runTests(allTests);
- });
+ chrome.test.runTests(allTests);
}
- if (opt_docString)
- runWithDocument(opt_docString, runTestInternal);
- else
- runTestInternal();
+ chrome.automation.getDesktop(function(rootNodeArg) {
+ rootNode = rootNodeArg;
+ if (opt_docString)
+ runWithDocument(opt_docString, runTestInternal);
+ else
+ runTestInternal();
+ });
}

Powered by Google App Engine
This is Rietveld 408576698