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

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

Issue 8586009: Allow WebUI Tests to use preLoad in HtmlDialogUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 CertificateViewerUITest.prototype = { 11 CertificateViewerUITest.prototype = {
12 __proto__: testing.Test.prototype, 12 __proto__: testing.Test.prototype,
13 13
14 /** 14 /**
15 * Define the C++ fixture class and include it. 15 * Define the C++ fixture class and include it.
16 * @type {?string} 16 * @type {?string}
17 * @override 17 * @override
18 */ 18 */
19 typedefCppFixture: 'CertificateViewerUITest', 19 typedefCppFixture: 'CertificateViewerUITest',
20
21 /**
22 * Show the certificate viewer dialog.
23 */
24 testGenPreamble: function() {
25 GEN('ShowCertificateViewer();');
26 },
27
20 }; 28 };
21 29
22 /** 30 /**
23 * Test fixture for asynchronous tests. 31 * Test fixture for asynchronous tests.
24 * @extends {CertificateViewerUITest} 32 * @extends {CertificateViewerUITest}
25 */ 33 */
26 function CertificateViewerUITestAsync() {}; 34 function CertificateViewerUITestAsync() {};
27 35
28 CertificateViewerUITestAsync.prototype = { 36 CertificateViewerUITestAsync.prototype = {
29 __proto__: CertificateViewerUITest.prototype, 37 __proto__: CertificateViewerUITest.prototype,
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 function getElementWithValue(tree) { 121 function getElementWithValue(tree) {
114 for (var i = 0; i < tree.childNodes.length; i++) { 122 for (var i = 0; i < tree.childNodes.length; i++) {
115 var element = tree.childNodes[i]; 123 var element = tree.childNodes[i];
116 if (element.detail && element.detail.payload && element.detail.payload.val) 124 if (element.detail && element.detail.payload && element.detail.payload.val)
117 return element; 125 return element;
118 if (element = getElementWithValue(element)) 126 if (element = getElementWithValue(element))
119 return element; 127 return element;
120 } 128 }
121 return null; 129 return null;
122 } 130 }
OLDNEW
« no previous file with comments | « chrome/test/data/webui/async_gen-inl.h ('k') | chrome/test/data/webui/certificate_viewer_ui_test-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698