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

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

Issue 2230123002: MD Settings: fix collapse animation once and for all (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Overscroll2
Patch Set: rebase, rebase fix (doWhenReady) Created 4 years, 3 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 | « chrome/browser/resources/settings/settings_page_css.html ('k') | 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 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 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 TEST_F('CrSettingsNonExistentRouteTest', 'All', function() { 678 TEST_F('CrSettingsNonExistentRouteTest', 'All', function() {
679 suite('NonExistentRoutes', function() { 679 suite('NonExistentRoutes', function() {
680 test('redirect to basic', function() { 680 test('redirect to basic', function() {
681 assertEquals(settings.Route.BASIC, settings.getCurrentRoute()); 681 assertEquals(settings.Route.BASIC, settings.getCurrentRoute());
682 assertEquals('/', location.pathname); 682 assertEquals('/', location.pathname);
683 }); 683 });
684 }); 684 });
685 mocha.run(); 685 mocha.run();
686 }); 686 });
687 687
688 // Hangs on ASAN builder for unknown reasons. TODO(michaelpg): Find reason.
689 GEN('#if defined(ADDRESS_SANITIZER)');
690 GEN('#define MAYBE_All DISABLED_All');
691 GEN('#else');
692 GEN('#define MAYBE_All All');
693 GEN('#endif');
694
688 /** 695 /**
689 * @constructor 696 * @constructor
690 * @extends {SettingsPageBrowserTest} 697 * @extends {SettingsPageBrowserTest}
691 */ 698 */
692 function CrSettingsRouteDynamicParametersTest() {} 699 function CrSettingsRouteDynamicParametersTest() {}
693 700
694 CrSettingsRouteDynamicParametersTest.prototype = { 701 CrSettingsRouteDynamicParametersTest.prototype = {
695 __proto__: CrSettingsBrowserTest.prototype, 702 __proto__: CrSettingsBrowserTest.prototype,
696 703
697 /** @override */ 704 /** @override */
698 browsePreload: 'chrome://md-settings/people?guid=a%2Fb&foo=42', 705 browsePreload: 'chrome://md-settings/people?guid=a%2Fb&foo=42',
699 }; 706 };
700 707
701 TEST_F('CrSettingsRouteDynamicParametersTest', 'All', function() { 708 TEST_F('CrSettingsRouteDynamicParametersTest', 'MAYBE_All', function() {
702 suite('DynamicParameters', function() { 709 suite('DynamicParameters', function() {
703 test('get parameters from URL and navigation', function(done) { 710 test('get parameters from URL and navigation', function(done) {
704 assertEquals(settings.Route.PEOPLE, settings.getCurrentRoute()); 711 assertEquals(settings.Route.PEOPLE, settings.getCurrentRoute());
705 assertEquals('a/b', settings.getQueryParameters().get('guid')); 712 assertEquals('a/b', settings.getQueryParameters().get('guid'));
706 assertEquals('42', settings.getQueryParameters().get('foo')); 713 assertEquals('42', settings.getQueryParameters().get('foo'));
707 714
708 var params = new URLSearchParams(); 715 var params = new URLSearchParams();
709 params.set('bar', 'b=z'); 716 params.set('bar', 'b=z');
710 params.set('biz', '3'); 717 params.set('biz', '3');
711 settings.navigateTo(settings.Route.SYNC, params); 718 settings.navigateTo(settings.Route.SYNC, params);
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 'test_browser_proxy.js', 814 'test_browser_proxy.js',
808 'metrics_reporting_tests.js', 815 'metrics_reporting_tests.js',
809 ]), 816 ]),
810 }; 817 };
811 818
812 TEST_F('CrSettingsMetricsReportingTest', 'All', function() { 819 TEST_F('CrSettingsMetricsReportingTest', 'All', function() {
813 mocha.run(); 820 mocha.run();
814 }); 821 });
815 822
816 GEN('#endif'); 823 GEN('#endif');
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_page_css.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698