OLD | NEW |
---|---|
(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); | |
OLD | NEW |