| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** @fileoverview Site settings page tests. */ | 5 /** @fileoverview Site settings page tests. */ |
| 6 | 6 |
| 7 GEN_INCLUDE(['settings_page_browsertest.js']); | 7 GEN_INCLUDE(['settings_page_browsertest.js']); |
| 8 /** | 8 /** |
| 9 * @constructor | 9 * @constructor |
| 10 * @extends {SettingsPageBrowserTest} | 10 * @extends {SettingsPageBrowserTest} |
| 11 */ | 11 */ |
| 12 function SettingsSiteSettingsPageBrowserTest() {} | 12 function SettingsSiteSettingsPageBrowserTest() {} |
| 13 | 13 |
| 14 SettingsSiteSettingsPageBrowserTest.prototype = { | 14 SettingsSiteSettingsPageBrowserTest.prototype = { |
| 15 __proto__: SettingsPageBrowserTest.prototype, | 15 __proto__: SettingsPageBrowserTest.prototype, |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 // Failing on ChromiumOS dbg. https://crbug.com/709442 | 18 // Failing on ChromiumOS dbg. https://crbug.com/709442 |
| 19 GEN('#if defined(OS_CHROMEOS) && !defined(NDEBUG)'); | 19 GEN('#if (defined(OS_WIN) || defined(OS_CHROMEOS)) && !defined(NDEBUG)'); |
| 20 GEN('#define MAYBE_labels DISABLED_labels'); | 20 GEN('#define MAYBE_labels DISABLED_labels'); |
| 21 GEN('#else'); | 21 GEN('#else'); |
| 22 GEN('#define MAYBE_labels labels'); | 22 GEN('#define MAYBE_labels labels'); |
| 23 GEN('#endif'); | 23 GEN('#endif'); |
| 24 TEST_F('SettingsSiteSettingsPageBrowserTest', 'MAYBE_labels', function() { | 24 TEST_F('SettingsSiteSettingsPageBrowserTest', 'MAYBE_labels', function() { |
| 25 suite('Site settings page', function() { | 25 suite('Site settings page', function() { |
| 26 var ui; | 26 var ui; |
| 27 | 27 |
| 28 suiteSetup(function() { | 28 suiteSetup(function() { |
| 29 ui = assert(document.createElement('settings-site-settings-page')); | 29 ui = assert(document.createElement('settings-site-settings-page')); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 44 settings.PermissionValues.DEFAULT, 'a', 'b', 'c')); | 44 settings.PermissionValues.DEFAULT, 'a', 'b', 'c')); |
| 45 assertEquals('c', ui.defaultSettingLabel_( | 45 assertEquals('c', ui.defaultSettingLabel_( |
| 46 settings.PermissionValues.ASK, 'a', 'b', 'c')); | 46 settings.PermissionValues.ASK, 'a', 'b', 'c')); |
| 47 assertEquals('c', ui.defaultSettingLabel_( | 47 assertEquals('c', ui.defaultSettingLabel_( |
| 48 settings.PermissionValues.DETECT_IMPORTANT_CONTENT, 'a', 'b', 'c')); | 48 settings.PermissionValues.DETECT_IMPORTANT_CONTENT, 'a', 'b', 'c')); |
| 49 }); | 49 }); |
| 50 }); | 50 }); |
| 51 | 51 |
| 52 mocha.run(); | 52 mocha.run(); |
| 53 }); | 53 }); |
| OLD | NEW |