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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/text-level-semantics/the-a-element/a-download-click.html

Issue 2697453005: Import wpt@758b3b4cfa805067f36121333ba031e583d3a62c (Closed)
Patch Set: Add -expected.txt files. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <meta charset="utf-8">
3 <title>Clicking on an &lt;a> element with a download attribute must not throw an exception</title>
4 <link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-a-element:act ivation-behaviour">
6 <link rel="help" href="https://github.com/whatwg/html/issues/2116">
7 <script src="/resources/testharness.js"></script>
8 <script src="/resources/testharnessreport.js"></script>
9
10 <a id="blob-url" download="foo.html">Click me</a>
11
12 <script>
13 "use strict";
14
15 const string = "test";
16 const blob = new Blob([string], { type: "text/html" });
17
18 const link = document.querySelector("#blob-url");
19 link.href = URL.createObjectURL(blob);
20
21 link.click();
22
23 done();
24 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698