| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 assertEq(1, progressIndicators[0].maxValueForRange); | 161 assertEq(1, progressIndicators[0].maxValueForRange); |
| 162 | 162 |
| 163 assertEq(0, scrollBars[0].valueForRange); | 163 assertEq(0, scrollBars[0].valueForRange); |
| 164 assertEq(0, scrollBars[0].minValueForRange); | 164 assertEq(0, scrollBars[0].minValueForRange); |
| 165 assertEq(1, scrollBars[0].maxValueForRange); | 165 assertEq(1, scrollBars[0].maxValueForRange); |
| 166 | 166 |
| 167 chrome.test.succeed(); | 167 chrome.test.succeed(); |
| 168 }, | 168 }, |
| 169 | 169 |
| 170 function testTableAttributes() { | 170 function testTableAttributes() { |
| 171 var table = rootNode.find({ role: 'table' });; | 171 var table = rootNode.find({ role: 'grid' });; |
| 172 assertEq(3, table.tableRowCount); | 172 assertEq(3, table.tableRowCount); |
| 173 assertEq(3, table.tableColumnCount); | 173 assertEq(3, table.tableColumnCount); |
| 174 | 174 |
| 175 var row1 = table.firstChild; | 175 var row1 = table.firstChild; |
| 176 var cell1 = row1.firstChild; | 176 var cell1 = row1.firstChild; |
| 177 assertEq(0, cell1.tableCellColumnIndex); | 177 assertEq(0, cell1.tableCellColumnIndex); |
| 178 assertEq(1, cell1.tableCellColumnSpan); | 178 assertEq(1, cell1.tableCellColumnSpan); |
| 179 assertEq(0, cell1.tableCellRowIndex); | 179 assertEq(0, cell1.tableCellRowIndex); |
| 180 assertEq(1, cell1.tableCellRowSpan); | 180 assertEq(1, cell1.tableCellRowSpan); |
| 181 | 181 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 // Uncheckable nodes have a checked attribute of undefined | 276 // Uncheckable nodes have a checked attribute of undefined |
| 277 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } }); | 277 var checkTest4 = rootNode.find({ attributes: { name: 'check-test-4' } }); |
| 278 assertTrue(Boolean(checkTest4)); | 278 assertTrue(Boolean(checkTest4)); |
| 279 assertEq(checkTest4.checked, undefined); | 279 assertEq(checkTest4.checked, undefined); |
| 280 | 280 |
| 281 chrome.test.succeed(); | 281 chrome.test.succeed(); |
| 282 }, | 282 }, |
| 283 ]; | 283 ]; |
| 284 | 284 |
| 285 setUpAndRunTests(allTests, 'attributes.html'); | 285 setUpAndRunTests(allTests, 'attributes.html'); |
| OLD | NEW |