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

Unified Diff: chrome/test/data/webui/settings/settings_transitions_browsertest.js

Issue 2200853002: MD Settings: Test transitioning between subpages on different pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TestTransitions
Patch Set: rebase Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_page/main_page_behavior.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/settings_transitions_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_transitions_browsertest.js b/chrome/test/data/webui/settings/settings_transitions_browsertest.js
index ce17208a56acf8790ea58a10a004a05de9db350d..d336f3e3bf41a63e048b3c15486bc7e2ce1aeaef 100644
--- a/chrome/test/data/webui/settings/settings_transitions_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_transitions_browsertest.js
@@ -404,3 +404,40 @@ TEST_F('SettingsTransitionsBrowserTest', 'Subpages', function() {
mocha.run();
});
+
+TEST_F('SettingsTransitionsBrowserTest', 'Navigation', function() {
+ var self = this;
+ testing.Test.disableAnimationsAndTransitions();
+
+ suite('Navigation', function() {
+ test('navigate between basic and advanced subpages', function(done) {
+ var basic = self.getPage('basic');
+ var advanced;
+ var section;
+
+ assertEquals(settings.Route.BASIC, basic.currentRoute);
+ settings.navigateTo(settings.Route.SEARCH_ENGINES);
+
+ setTimeout(function() {
+ section = self.getSection(basic, 'search');
+ assertGT(section.clientHeight, 0);
+
+ settings.navigateTo(settings.Route.SITE_SETTINGS);
+ setTimeout(function() {
+ advanced = self.getPage('advanced');
+ section = self.getSection(advanced, 'privacy');
+ assertGT(section.clientHeight, 0);
+
+ settings.navigateTo(settings.Route.FONTS);
+ setTimeout(function() {
+ section = self.getSection(basic, 'appearance');
+ assertGT(section.clientHeight, 0);
+ done();
+ });
+ });
+ });
+ });
+ });
+
+ mocha.run();
+});
« no previous file with comments | « chrome/browser/resources/settings/settings_page/main_page_behavior.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698