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

Side by Side Diff: chrome/browser/ui/webui/options/content_settings_exception_area_browsertest.js

Issue 2871613002: Disabling ContentSettingsExceptionAreaWebUITest.testOpenContentSettingsExceptionArea on Mac (Closed)
Patch Set: Created 3 years, 7 months 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 GEN_INCLUDE(['options_browsertest_base.js']); 5 GEN_INCLUDE(['options_browsertest_base.js']);
6 6
7 /** 7 /**
8 * TestFixture for content settings exception area WebUI testing. 8 * TestFixture for content settings exception area WebUI testing.
9 * @extends {testing.Test} 9 * @extends {testing.Test}
10 * @constructor 10 * @constructor
11 */ 11 */
12 function ContentSettingsExceptionAreaWebUITest() {} 12 function ContentSettingsExceptionAreaWebUITest() {}
13 13
14 ContentSettingsExceptionAreaWebUITest.prototype = { 14 ContentSettingsExceptionAreaWebUITest.prototype = {
15 __proto__: testing.Test.prototype, 15 __proto__: testing.Test.prototype,
16 16
17 /** @override */ 17 /** @override */
18 browsePreload: 'chrome://settings-frame/contentExceptions', 18 browsePreload: 'chrome://settings-frame/contentExceptions',
19 }; 19 };
20 20
21 // See crbug.com/579666 for OS_LINUX and crbug.com/588586 for Windows. 21 // See crbug.com/579666 for OS_LINUX and crbug.com/588586 for Windows and
22 GEN('#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_WIN)'); 22 // crbug.com/718947 for Mac.
23 GEN('#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_WIN) || ' +
24 'defined(OS_MACOSX)');
23 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' + 25 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' +
24 'DISABLED_testOpenContentSettingsExceptionArea'); 26 'DISABLED_testOpenContentSettingsExceptionArea');
25 GEN('#else'); 27 GEN('#else');
26 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' + 28 GEN('#define MAYBE_testOpenContentSettingsExceptionArea ' +
27 'testOpenContentSettingsExceptionArea'); 29 'testOpenContentSettingsExceptionArea');
28 GEN('#endif // defined(OS_CHROMEOS) || defined(OS_LINUX)'); 30 GEN('#endif // defined(OS_CHROMEOS) || defined(OS_LINUX)');
29 // Test opening the content settings exception area has correct location. 31 // Test opening the content settings exception area has correct location.
30 TEST_F('ContentSettingsExceptionAreaWebUITest', 32 TEST_F('ContentSettingsExceptionAreaWebUITest',
31 'MAYBE_testOpenContentSettingsExceptionArea', function() { 33 'MAYBE_testOpenContentSettingsExceptionArea', function() {
32 assertEquals(this.browsePreload, document.location.href); 34 assertEquals(this.browsePreload, document.location.href);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // NOTE: if this test doesn't succeed, |ContentSettings.setExceptions| may not 100 // NOTE: if this test doesn't succeed, |ContentSettings.setExceptions| may not
99 // be restored to its original method. I know no easy way to fix this. 101 // be restored to its original method. I know no easy way to fix this.
100 ContentSettings.setExceptions = function() { 102 ContentSettings.setExceptions = function() {
101 setExceptions.apply(ContentSettings, arguments); 103 setExceptions.apply(ContentSettings, arguments);
102 setExceptionsCallback(); 104 setExceptionsCallback();
103 }; 105 };
104 106
105 // Add an item to the location exception area to start the test. 107 // Add an item to the location exception area to start the test.
106 list.items[0].finishEdit(origin, 'block'); 108 list.items[0].finishEdit(origin, 'block');
107 }); 109 });
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