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

Side by Side Diff: chrome/test/data/extensions/api_test/automation/tests/tabs/query.js

Issue 655273005: Implement AutomationNode.querySelector(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address comments Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 var allTests = [
6 function testQuery() {
7 var cancelButton = rootNode.firstChild().lastChild();
8 function assertCorrectResult(queryResult) {
9 console.log("cancelButton: " + cancelButton.toString());
Devlin 2014/10/29 21:23:43 These logs should be removed before committing (ju
aboxhall 2014/10/30 18:34:18 Acknowledged.
10 console.log("queryResult: " + queryResult.toString());
11 assertEq(queryResult, cancelButton);
12 chrome.test.succeed();
13 }
14 rootNode.query({'selector': 'body > button:nth-of-type(2)'},
15 assertCorrectResult);
16 }
17 ];
18
19 setUpAndRunTests(allTests);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698