| Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/text-level-semantics/the-a-element/a-download-click.html
|
| diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/text-level-semantics/the-a-element/a-download-click.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/text-level-semantics/the-a-element/a-download-click.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ad6a3df001e529726e429b1bf0349892e79056fb
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/text-level-semantics/the-a-element/a-download-click.html
|
| @@ -0,0 +1,24 @@
|
| +<!DOCTYPE html>
|
| +<meta charset="utf-8">
|
| +<title>Clicking on an <a> element with a download attribute must not throw an exception</title>
|
| +<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
|
| +<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-a-element:activation-behaviour">
|
| +<link rel="help" href="https://github.com/whatwg/html/issues/2116">
|
| +<script src="/resources/testharness.js"></script>
|
| +<script src="/resources/testharnessreport.js"></script>
|
| +
|
| +<a id="blob-url" download="foo.html">Click me</a>
|
| +
|
| +<script>
|
| +"use strict";
|
| +
|
| +const string = "test";
|
| +const blob = new Blob([string], { type: "text/html" });
|
| +
|
| +const link = document.querySelector("#blob-url");
|
| +link.href = URL.createObjectURL(blob);
|
| +
|
| +link.click();
|
| +
|
| +done();
|
| +</script>
|
|
|