OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 /** | 5 /** |
6 * TestFixture for testing the formatting of settings pages. | 6 * TestFixture for testing the formatting of settings pages. |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 * @constructor | 8 * @constructor |
9 */ | 9 */ |
10 function SettingsFormatWebUITest() {} | 10 function SettingsFormatWebUITest() {} |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 /** | 144 /** |
145 * Each radio button requires name and value properties. | 145 * Each radio button requires name and value properties. |
146 */ | 146 */ |
147 TEST_F('SettingsFormatWebUITest', 'RadioButtonNameValueCheck', function() { | 147 TEST_F('SettingsFormatWebUITest', 'RadioButtonNameValueCheck', function() { |
148 var elements = document.querySelectorAll('input[type=radio]'); | 148 var elements = document.querySelectorAll('input[type=radio]'); |
149 for (var i = 0; i < elements.length; i++) { | 149 for (var i = 0; i < elements.length; i++) { |
150 var element = elements[i]; | 150 var element = elements[i]; |
151 if (!element.name) | 151 if (!element.name) |
152 this.fail('MISSING_RADIO_BUTTON_NAME', element); | 152 this.fail('MISSING_RADIO_BUTTON_NAME', element); |
153 | 153 |
154 if (!element.getAttribute("value")) | 154 if (!element.getAttribute('value')) |
155 this.fail('MISSING_RADIO_BUTTON_VALUE', element); | 155 this.fail('MISSING_RADIO_BUTTON_VALUE', element); |
156 } | 156 } |
157 }); | 157 }); |
OLD | NEW |