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

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/FileAPI/support/incumbent.sub.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 <title>Incumbent page used as a test helper</title>
3
4 <iframe src="//{{domains[www1]}}:{{location[port]}}/FileAPI/support/document-dom ain-setter.sub.html" id="c"></iframe>
5 <iframe src="//{{domains[www2]}}:{{location[port]}}/FileAPI/support/document-dom ain-setter.sub.html" id="r"></iframe>
6 <iframe src="//{{domains[élève]}}:{{location[port]}}/FileAPI/support/document-do main-setter.sub.html" id="bs"></iframe>
7
8 <script>
9 "use strict";
10 document.domain = "{{host}}";
11
12 window.createBlobURL = () => {
13 const current = document.querySelector("#c").contentWindow;
14 const relevant = document.querySelector("#r").contentWindow;
15 const blobSource = document.querySelector("#bs").contentWindow;
16
17 const blob = new blobSource.Blob(["Test Blob"]);
18
19 return current.URL.createObjectURL.call(relevant, blob);
20 };
21
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698