/**
* Browse to the downloads page & call our preLoad().
*/
- browsePreload: 'chrome://downloads',
+ browsePreload: 'chrome://downloads/',
/** @override */
typedefCppFixture: 'DownloadsUIBrowserTest',
GEN(' SetDeleteAllowed(true);');
},
+ /** @override */
+ runAccessibilityChecks: true,
+
+ /** @override */
+ accessibilityIssuesAreErrors: true,
+
/**
* Sends TOTAL_RESULT_COUNT fake downloads to the page. This can't be called
* in the preLoad, because it requires the global Download object to have
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}