Chromium Code Reviews| 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 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 CertificateViewerUITestAsync.prototype = { | 36 CertificateViewerUITestAsync.prototype = { |
| 37 __proto__: CertificateViewerUITest.prototype, | 37 __proto__: CertificateViewerUITest.prototype, |
| 38 | 38 |
| 39 /** @inheritDoc */ | 39 /** @inheritDoc */ |
| 40 isAsync: true, | 40 isAsync: true, |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // Include the bulk of c++ code. | 43 // Include the bulk of c++ code. |
| 44 // Certificate viewer UI tests are disabled on platforms with native certificate | 44 // Certificate viewer UI tests are disabled on platforms with native certificate |
| 45 // viewers. | 45 // viewers. |
| 46 // They fails on aura/linux, aura/chromeos. See crbug.com/105952. | |
|
Sheridan Rawlins
2011/12/02 01:04:39
nit: s/fails/fail/
| |
| 46 GEN('#include "chrome/test/data/webui/certificate_viewer_ui_test-inl.h"'); | 47 GEN('#include "chrome/test/data/webui/certificate_viewer_ui_test-inl.h"'); |
| 47 GEN('') | 48 GEN('') |
| 48 GEN('#if !defined(OS_POSIX) || defined(OS_MACOSX)') | 49 GEN('#if !defined(OS_POSIX) || defined(OS_MACOSX) || defined(USE_AURA)') |
| 49 GEN('#define MAYBE_testDialogURL DISABLED_testDialogURL') | 50 GEN('#define MAYBE_testDialogURL DISABLED_testDialogURL') |
| 50 GEN('#define MAYBE_testCN DISABLED_testCN') | 51 GEN('#define MAYBE_testCN DISABLED_testCN') |
| 51 GEN('#define MAYBE_testDetails DISABLED_testDetails') | 52 GEN('#define MAYBE_testDetails DISABLED_testDetails') |
| 52 GEN('#else') | 53 GEN('#else') |
| 53 GEN('#define MAYBE_testDialogURL testDialogURL') | 54 GEN('#define MAYBE_testDialogURL testDialogURL') |
| 54 GEN('#define MAYBE_testCN testCN') | 55 GEN('#define MAYBE_testCN testCN') |
| 55 GEN('#define MAYBE_testDetails testDetails') | 56 GEN('#define MAYBE_testDetails testDetails') |
| 56 GEN('#endif') | 57 GEN('#endif') |
| 57 GEN(''); | 58 GEN(''); |
| 58 | 59 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 121 function getElementWithValue(tree) { | 122 function getElementWithValue(tree) { |
| 122 for (var i = 0; i < tree.childNodes.length; i++) { | 123 for (var i = 0; i < tree.childNodes.length; i++) { |
| 123 var element = tree.childNodes[i]; | 124 var element = tree.childNodes[i]; |
| 124 if (element.detail && element.detail.payload && element.detail.payload.val) | 125 if (element.detail && element.detail.payload && element.detail.payload.val) |
| 125 return element; | 126 return element; |
| 126 if (element = getElementWithValue(element)) | 127 if (element = getElementWithValue(element)) |
| 127 return element; | 128 return element; |
| 128 } | 129 } |
| 129 return null; | 130 return null; |
| 130 } | 131 } |
| OLD | NEW |