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

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

Issue 1365433002: Add setSelection function to automation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nobrailleautostartintests
Patch Set: Change setDocumentSelection to take named arguments. Created 5 years, 2 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/actions.js
diff --git a/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js b/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
index f15fa835ce59899101ea6db8717f073bf05bf19f..70a30c66b262eac6777aa3307691a5fe40eeb59f 100644
--- a/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
+++ b/chrome/test/data/extensions/api_test/automation/tests/desktop/actions.js
@@ -2,14 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function listenOnce(node, eventType, callback, capture) {
- var innerCallback = function() {
- node.removeEventListener(eventType, innerCallback, capture);
- callback();
- };
- node.addEventListener(eventType, innerCallback, capture);
-};
-
var allTests = [
function testDoDefault() {
var firstTextField = findAutomationNode(rootNode,
@@ -54,4 +46,4 @@ var allTests = [
}
];
-setupAndRunTests(allTests);
+setUpAndRunTests(allTests);

Powered by Google App Engine
This is Rietveld 408576698