| Index: chrome/browser/ui/webui/downloads_ui_browsertest.js
|
| diff --git a/chrome/browser/ui/webui/downloads_ui_browsertest.js b/chrome/browser/ui/webui/downloads_ui_browsertest.js
|
| index 1cd786a13bc26139bb8d223454e85ed99c0d0030..f8de341e9583d6f32632c212acf461028e96f1a7 100644
|
| --- a/chrome/browser/ui/webui/downloads_ui_browsertest.js
|
| +++ b/chrome/browser/ui/webui/downloads_ui_browsertest.js
|
| @@ -26,7 +26,7 @@ BaseDownloadsWebUITest.prototype = {
|
| /**
|
| * Browse to the downloads page & call our preLoad().
|
| */
|
| - browsePreload: 'chrome://downloads',
|
| + browsePreload: 'chrome://downloads/',
|
|
|
| /** @override */
|
| typedefCppFixture: 'DownloadsUIBrowserTest',
|
| @@ -137,6 +137,14 @@ TEST_F('BaseDownloadsWebUITest', 'DeleteAllowed', function() {
|
| testDone();
|
| });
|
|
|
| +// Test that clicking <a href=#> doesn't actually go to #.
|
| +TEST_F('BaseDownloadsWebUITest', 'PoundLinkClicksDontChangeUrl', function() {
|
| + assertEquals(this.browsePreload, document.location.href);
|
| + document.querySelector('.clear-all-link').click();
|
| + assertEquals(this.browsePreload, document.location.href);
|
| + testDone();
|
| +});
|
| +
|
| /**
|
| * Fixture for Downloads WebUI testing when deletions are prohibited.
|
| * @extends {BaseDownloadsWebUITest}
|
|
|