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

Side by Side Diff: chrome/test/data/webui/certificate_viewer_dialog_test.js

Issue 2535293002: Disable flaky CertificateViewerModalUITestAsync.testDetails test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * Test fixture for generated tests. 6 * Test fixture for generated tests.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 */ 8 */
9 function CertificateViewerUITest() {} 9 function CertificateViewerUITest() {}
10 10
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 GEN('#if defined(OS_CHROMEOS)'); 158 GEN('#if defined(OS_CHROMEOS)');
159 159
160 TEST_F('CertificateViewerModalUITest', 'testDialogURL', function() { 160 TEST_F('CertificateViewerModalUITest', 'testDialogURL', function() {
161 this.testDialogUrl(); 161 this.testDialogUrl();
162 }); 162 });
163 163
164 TEST_F('CertificateViewerModalUITest', 'testCN', function() { 164 TEST_F('CertificateViewerModalUITest', 'testCN', function() {
165 this.testCN(); 165 this.testCN();
166 }); 166 });
167 167
168 TEST_F('CertificateViewerModalUITestAsync', 'testDetails', function() { 168 /**
169 * Disabled due to flakiness on Linux ChromiumOS bot: http://crbug/669597
170 */
171 TEST_F('CertificateViewerModalUITestAsync', 'DISABLED_testDetails', function() {
169 this.testDetails(); 172 this.testDetails();
170 }); 173 });
171 174
172 GEN('#endif'); 175 GEN('#endif');
173 176
174 //////////////////////////////////////////////////////////////////////////////// 177 ////////////////////////////////////////////////////////////////////////////////
175 // Support functions 178 // Support functions
176 179
177 /** 180 /**
178 * Find the first tree item (in the certificate fields tree) with a value. 181 * Find the first tree item (in the certificate fields tree) with a value.
179 * @param {!Element} tree Certificate fields subtree to search. 182 * @param {!Element} tree Certificate fields subtree to search.
180 * @return {?Element} The first found element with a value, null if not found. 183 * @return {?Element} The first found element with a value, null if not found.
181 */ 184 */
182 function getElementWithValue(tree) { 185 function getElementWithValue(tree) {
183 for (var i = 0; i < tree.childNodes.length; i++) { 186 for (var i = 0; i < tree.childNodes.length; i++) {
184 var element = tree.childNodes[i]; 187 var element = tree.childNodes[i];
185 if (element.detail && element.detail.payload && element.detail.payload.val) 188 if (element.detail && element.detail.payload && element.detail.payload.val)
186 return element; 189 return element;
187 if (element = getElementWithValue(element)) 190 if (element = getElementWithValue(element))
188 return element; 191 return element;
189 } 192 }
190 return null; 193 return null;
191 } 194 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698