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

Side by Side Diff: chrome/test/data/webui/settings/cr_settings_browsertest.js

Issue 2378823004: Timing issues in tests for settings-main scrolling/overscroll. (Closed)
Patch Set: rebase Created 4 years, 2 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 | chrome/test/data/webui/settings/settings_main_navigation_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 Runs the Polymer Settings tests. */ 5 /** @fileoverview Runs the Polymer Settings tests. */
6 6
7 /** @const {string} Path to source root. */ 7 /** @const {string} Path to source root. */
8 var ROOT_PATH = '../../../../../'; 8 var ROOT_PATH = '../../../../../';
9 9
10 // Polymer BrowserTest fixture. 10 // Polymer BrowserTest fixture.
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 done(); 763 done();
764 }); 764 });
765 window.history.back(); 765 window.history.back();
766 }); 766 });
767 }); 767 });
768 mocha.run(); 768 mocha.run();
769 }); 769 });
770 770
771 // Times out on Windows Tests (dbg). See https://crbug.com/651296. 771 // Times out on Windows Tests (dbg). See https://crbug.com/651296.
772 GEN('#if defined(OS_WIN)'); 772 GEN('#if defined(OS_WIN)');
773 GEN('#define MAYBE_MainPage_All DISABLED_All'); 773 GEN('#define MAYBE_Main_Navigation DISABLED_Navigation');
774 GEN('#define MAYBE_Main_Search DISABLED_Search');
774 GEN('#else'); 775 GEN('#else');
775 GEN('#define MAYBE_MainPage_All All'); 776 GEN('#define MAYBE_Main_Navigation Navigation');
777 GEN('#define MAYBE_Main_Search Search');
776 GEN('#endif'); 778 GEN('#endif');
777 779
778 /** 780 /**
779 * Test fixture for chrome/browser/resources/settings/settings_main/. 781 * Test fixture for chrome/browser/resources/settings/settings_main/.
780 * @constructor 782 * @constructor
781 * @extends {CrSettingsBrowserTest} 783 * @extends {CrSettingsBrowserTest}
782 */ 784 */
783 function CrSettingsMainPageTest() {} 785 function CrSettingsMainTest() {}
784 786
785 CrSettingsMainPageTest.prototype = { 787 CrSettingsMainTest.prototype = {
786 __proto__: CrSettingsBrowserTest.prototype, 788 __proto__: CrSettingsBrowserTest.prototype,
787 789
788 /** @override */ 790 /** @override */
789 browsePreload: 'chrome://md-settings/settings_main/settings_main.html', 791 browsePreload: 'chrome://md-settings/settings_main/settings_main.html',
790 792
791 /** @override */ 793 /** @override */
792 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([ 794 extraLibraries: CrSettingsBrowserTest.prototype.extraLibraries.concat([
793 'settings_main_test.js', 795 'settings_main_navigation_test.js',
796 'settings_main_search_test.js',
794 ]), 797 ]),
795 }; 798 };
796 799
797 TEST_F('CrSettingsMainPageTest', 'MAYBE_MainPage_All', function() { 800 TEST_F('CrSettingsMainTest', 'MAYBE_Main_Navigation', function() {
798 settings_main_page.registerTests(); 801 settings_main_navigation_test.registerTests();
799 mocha.run(); 802 mocha.run();
800 }); 803 });
801 804
805 TEST_F('CrSettingsMainTest', 'MAYBE_Main_Search', function() {
806 settings_main_search_test.registerTests();
807 mocha.run();
808 });
809
802 /** 810 /**
803 * @constructor 811 * @constructor
804 * @extends {CrSettingsBrowserTest} 812 * @extends {CrSettingsBrowserTest}
805 */ 813 */
806 function CrControlledButtonTest() {} 814 function CrControlledButtonTest() {}
807 815
808 CrControlledButtonTest.prototype = { 816 CrControlledButtonTest.prototype = {
809 __proto__: CrSettingsBrowserTest.prototype, 817 __proto__: CrSettingsBrowserTest.prototype,
810 818
811 /** @override */ 819 /** @override */
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 'test_privacy_page_browser_proxy.js', 864 'test_privacy_page_browser_proxy.js',
857 'metrics_reporting_tests.js', 865 'metrics_reporting_tests.js',
858 ]), 866 ]),
859 }; 867 };
860 868
861 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { 869 TEST_F('CrSettingsMetricsReportingTest', 'All', function() {
862 mocha.run(); 870 mocha.run();
863 }); 871 });
864 872
865 GEN('#endif'); 873 GEN('#endif');
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/webui/settings/settings_main_navigation_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698