Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: chrome/browser/ui/webui/options/settings_format_browsertest.js

Issue 253543002: web_dev_style: check webui browser tests as well. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698