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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/DOMParser-detached-no-crash.html

Issue 2667303004: Move tests for DOMParser and XMLSerializer to dom/domparsing/. (Closed)
Patch Set: 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>Document-detached use of DOMParser</title>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 <body>
6 <script>
7 test(() => {
8 var iframe = document.createElement("iframe");
9 iframe.src = "data:text/html,<b>";
10 document.body.appendChild(iframe);
11 var Parser = iframe.contentWindow.DOMParser;
12 iframe.remove();
13 var d = new Parser();
14 assert_true(d != null);
15 var detached = d.parseFromString("no crash", "text/html");
16 assert_equals(detached.origin, "null");
17 });
18 </script>
19 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698