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

Unified Diff: chrome/test/data/download-anchor-attrib.html

Issue 7484063: Add a browser-test for downloading an anchor with a suggested name for download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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/download/download_browsertest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/download-anchor-attrib.html
diff --git a/chrome/test/data/download-anchor-attrib.html b/chrome/test/data/download-anchor-attrib.html
new file mode 100644
index 0000000000000000000000000000000000000000..142679ef294dcd467264426deed7e1b77336c123
--- /dev/null
+++ b/chrome/test/data/download-anchor-attrib.html
@@ -0,0 +1,13 @@
+<html>
+<head><title>Download Test for &lt;a download&gt;</title></head>
+<body>
+<a id='red-dot' href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==" download='a_red_dot.png'>Download Red Dot!</a>
+<script>
+window.setTimeout(function() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEvent('click', true, true);
+ document.getElementById('red-dot').dispatchEvent(evt);
+}, 0);
+</script>
+</body>
+</html>
« no previous file with comments | « chrome/browser/download/download_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698