| 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 DocumentAttributes, | 235 DocumentAttributes, |
| 236 ScrollableAttributes, | 236 ScrollableAttributes, |
| 237 EditableTextAttributes, | 237 EditableTextAttributes, |
| 238 RangeAttributes, | 238 RangeAttributes, |
| 239 TableAttributes, | 239 TableAttributes, |
| 240 TableCellAttributes); | 240 TableCellAttributes); |
| 241 for (var attributeAttr in allAttributes) { | 241 for (var attributeAttr in allAttributes) { |
| 242 assertFalse(attributeAttr in div); | 242 assertFalse(attributeAttr in div); |
| 243 } | 243 } |
| 244 chrome.test.succeed(); | 244 chrome.test.succeed(); |
| 245 }, |
| 246 |
| 247 function testHtmlAttributes() { |
| 248 var editable = rootNode.find({ role: 'textField' }); |
| 249 assertTrue(editable !== undefined); |
| 250 assertEq('text', editable.htmlAttributes.type); |
| 251 chrome.test.succeed(); |
| 245 } | 252 } |
| 246 ]; | 253 ]; |
| 247 | 254 |
| 248 setUpAndRunTests(allTests, 'attributes.html'); | 255 setUpAndRunTests(allTests, 'attributes.html'); |
| OLD | NEW |