| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |