OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 var ActiveDescendantAttribute = [ 'activeDescendant' ]; | 5 var ActiveDescendantAttribute = [ 'activeDescendant' ]; |
6 var LinkAttributes = [ 'url' ]; | 6 var LinkAttributes = [ 'url' ]; |
7 var DocumentAttributes = [ 'docUrl', | 7 var DocumentAttributes = [ 'docUrl', |
8 'docTitle', | 8 'docTitle', |
9 'docLoaded', | 9 'docLoaded', |
10 'docLoadingProgress' ]; | 10 'docLoadingProgress' ]; |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 assertTrue(Boolean(checkTest3)); | 293 assertTrue(Boolean(checkTest3)); |
294 assertEq(checkTest3.checked, 'mixed'); | 294 assertEq(checkTest3.checked, 'mixed'); |
295 | 295 |
296 // Uncheckable nodes have a checked attribute of undefined | 296 // Uncheckable nodes have a checked attribute of undefined |
297 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } }); | 297 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } }); |
298 assertTrue(Boolean(checkTest4)); | 298 assertTrue(Boolean(checkTest4)); |
299 assertEq(checkTest4.checked, undefined); | 299 assertEq(checkTest4.checked, undefined); |
300 | 300 |
301 chrome.test.succeed(); | 301 chrome.test.succeed(); |
302 }, | 302 }, |
| 303 |
| 304 function testHtmlTagAttribute() { |
| 305 var figure = rootNode.find({ attributes: { htmlTag: 'figure' } }); |
| 306 assertTrue(Boolean(figure)); |
| 307 assertEq(figure.htmlTag, 'figure'); |
| 308 |
| 309 chrome.test.succeed(); |
| 310 } |
303 ]; | 311 ]; |
304 | 312 |
305 setUpAndRunTests(allTests, 'attributes.html'); | 313 setUpAndRunTests(allTests, 'attributes.html'); |
OLD | NEW |