1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 var assertEq = chrome.test.assertEq;
6 var assertFalse = chrome.test.assertFalse;
7 var assertTrue = chrome.test.assertTrue;
9 var EventType = chrome.automation.EventType;
10 var RoleType = chrome.automation.RoleType;
11 var StateType = chrome.automation.StateType;
15 function findAutomationNode(root, condition) {
19 var children = root.children();
20 for (var i = 0; i < children.length; i++) {
21 var result = findAutomationNode(children[i], condition);
28 function setupAndRunTests(allTests) {
29 chrome.automation.getDesktop(function(rootNodeArg) {
30 rootNode = rootNodeArg;
31 chrome.test.runTests(allTests);