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

Unified Diff: chrome/browser/ui/webui/options/options_browsertest.js

Issue 306993006: Settings: do the same-path check after the main page special-case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/options_page.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/options_browsertest.js
diff --git a/chrome/browser/ui/webui/options/options_browsertest.js b/chrome/browser/ui/webui/options/options_browsertest.js
index 591771f0972cec2b4d78f944ee7846d293605575..1f890691f1290b0e58f922080c1e9e590fbc8f92 100644
--- a/chrome/browser/ui/webui/options/options_browsertest.js
+++ b/chrome/browser/ui/webui/options/options_browsertest.js
@@ -636,6 +636,22 @@ TEST_F('OptionsWebUIExtendedTest', 'CloseOverlay', function() {
});
});
+// Test that closing an overlay that did not push history when opening does not
+// again push history.
+TEST_F('OptionsWebUIExtendedTest', 'CloseOverlayNoHistory', function() {
+ // Open the profile delete prompt.
+ ManageProfileOverlay.showDeleteDialog(BrowserOptions.getCurrentProfile());
+
+ // Opening the prompt does not add to the history.
+ var self = this;
+ this.verifyHistory_([''], function() {
+ // Close the overlay.
+ OptionsPage.closeOverlay();
+ // Still no history changes.
+ self.verifyHistory_([''], testDone);
+ });
Dan Beam 2014/05/30 21:13:17 nit: instead of making |self| this.verifyHistor
davidben 2014/05/30 21:20:36 Done. (Cool, I'm glad that's how we should be doin
+});
+
// Make sure an overlay isn't closed (even temporarily) when another overlay is
// opened on top.
TEST_F('OptionsWebUIExtendedTest', 'OverlayAboveNoReset', function() {
« no previous file with comments | « chrome/browser/resources/options/options_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698