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

Unified Diff: LayoutTests/fast/dom/DOMParser-marquee-crash.html

Issue 919473004: Make DOMParser create documents with a context document set (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added test Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMParser-marquee-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/DOMParser-marquee-crash.html
diff --git a/LayoutTests/fast/dom/DOMParser-assign-variable.html b/LayoutTests/fast/dom/DOMParser-marquee-crash.html
similarity index 54%
copy from LayoutTests/fast/dom/DOMParser-assign-variable.html
copy to LayoutTests/fast/dom/DOMParser-marquee-crash.html
index 3054bc7289135fd2dd999d553832330e46aa2ab3..992515d482cd933dfffbe6d5b2ba89529c071ce2 100644
--- a/LayoutTests/fast/dom/DOMParser-assign-variable.html
+++ b/LayoutTests/fast/dom/DOMParser-marquee-crash.html
@@ -3,22 +3,17 @@
<html>
<head>
<script>
-function debug(str) {
- var c = document.getElementById('console')
- c.appendChild(document.createTextNode(str + '\n'));
-}
-
function runTests() {
if (window.testRunner) testRunner.dumpAsText();
-
+
var parser = new DOMParser();
- parser.test = "test"
+ parser.parseFromString("<marquee></marquee>", "text/html");
}
-
</script>
</head>
<body onload="runTests();">
-This creates a DOMParser object and tries to assign it to a variable. If the test is successful, it should not crash.
+This creates a DOMParser object and tries to parse a document containing a marquee element (implemented in Private JS).
+If the test is successful, it should not crash.
<pre id="console">
</pre>
</body>
« no previous file with comments | « no previous file | LayoutTests/fast/dom/DOMParser-marquee-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698