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} |