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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/embedded-content/the-area-element/area-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;area> 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-area-element: activation-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 <img src="/images/threecolors.png" usemap="#x" id="img" width="300" height="300" >
11 <map name="x">
12 <area id="blob-url" download="foo.html" coords="0,0,300,300">
13 </map>
14
15 <script>
16 "use strict";
17
18 const string = "test";
19 const blob = new Blob([string], { type: "text/html" });
20
21 const link = document.querySelector("#blob-url");
22 link.href = URL.createObjectURL(blob);
23
24 link.click();
25
26 done();
27 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698