summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html')
-rw-r--r--Tools/TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html b/Tools/TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html
new file mode 100644
index 000000000..c05594518
--- /dev/null
+++ b/Tools/TestWebKitAPI/Tests/WebKit2/link-with-download-attribute.html
@@ -0,0 +1,10 @@
+<html>
+ <body>
+ <a id="testAnchor" style="display: block; height: 100%; width: 100%" download="downloadAttributeValue.txt"></a>
+ <script>
+ var blob = new Blob(["Hello world!"], {type: "application/octet-stream"});
+ var link = document.getElementById("testAnchor");
+ link.href = window.URL.createObjectURL(blob);
+ </script>
+ </body>
+</html>