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

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

Issue 52823006: Small crash fix for set pages dialog drag'n'drop issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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/custom_home_pages_table_model.cc ('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 541101000f55f67d4928abb3711362634d7946bb..173980bf6625f896ff12648c5669c4ce953b3b7c 100644
--- a/chrome/browser/ui/webui/options/options_browsertest.js
+++ b/chrome/browser/ui/webui/options/options_browsertest.js
@@ -261,6 +261,12 @@ TEST_F('OptionsWebUITest', 'EnterPreventsDefault', function() {
testDone();
});
+// Verifies that sending an empty list of indexes to move doesn't crash chrome.
+TEST_F('OptionsWebUITest', 'emptySelectedIndexesDoesntCrash', function() {
+ chrome.send('dragDropStartupPage', [0, []]);
+ setTimeout(testDone);
+});
+
/**
* TestFixture for OptionsPage WebUI testing including tab history.
* @extends {testing.Test}
« no previous file with comments | « chrome/browser/custom_home_pages_table_model.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698