Chromium Code Reviews| Index: content/test/data/download/download-attribute.html |
| diff --git a/content/test/data/download/download-attribute.html b/content/test/data/download/download-attribute.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4fd070db96e3bf8942b6113de2229b9053f32077 |
| --- /dev/null |
| +++ b/content/test/data/download/download-attribute.html |
| @@ -0,0 +1,12 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +<a download="suggested-filename" href="">link</a> |
| +<script> |
| + var anchorElement = document.querySelector('a[download]'); |
| + url = window.location.href; |
| + anchorElement.href = url.substr(url.indexOf('=') + 1); |
| + anchorElement.click(); |
| +</script> |
| +</body> |
| +</html> |