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

Unified Diff: LayoutTests/fast/events/touch/touch-event-target-crash.html

Issue 1158433004: Remove Attr child nodes (making Attr a Node, not a ContainerNode) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address feedback Created 5 years, 7 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
Index: LayoutTests/fast/events/touch/touch-event-target-crash.html
diff --git a/LayoutTests/fast/events/touch/touch-event-target-crash.html b/LayoutTests/fast/events/touch/touch-event-target-crash.html
index 7100e1626095ac977f28c77dddd80f5ec92eaf76..f404b9af1bcff1c0df4ccb547f36936da2037ae6 100644
--- a/LayoutTests/fast/events/touch/touch-event-target-crash.html
+++ b/LayoutTests/fast/events/touch/touch-event-target-crash.html
@@ -7,26 +7,22 @@ if (window.testRunner)
var docElement = document.documentElement;
function crash() {
svgAnimAttributeElement1 = document.createElementNS("http://www.w3.org/2000/svg", "animattributeattrs");
- mathElement1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "math");
- mathElement1.setAttribute("class", "c0");
svgAnimateElement1 = document.createElementNS("http://www.w3.org/2000/svg", "animate");
svgTestcaseElement1 = document.createElementNS("http://www.w3.org/2000/svg", "svgtestcase");
svgEllipseElement1 = document.createElementNS("http://www.w3.org/2000/svg", "ellipse");
- mathElement2 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "math");
- docElement.appendChild(mathElement2);
+ mathElement1 = document.createElementNS("http://www.w3.org/1998/Math/MathML", "math");
+ docElement.appendChild(mathElement1);
svgLineElement1 = document.createElementNS("http://www.w3.org/2000/svg", "line");
textNode1 = document.createTextNode("mNfma;B N`p0ag ");
svgEllipseElement1.addEventListener("touchcancel", function () {}, false);
document1 = document.implementation.createDocument("", null);
svgAnimateElement1.appendChild(svgEllipseElement1);
- mathElement1.attributes[0].appendChild(textNode1);
- mathElement2.appendChild(svgAnimateElement1);
+ mathElement1.appendChild(svgAnimateElement1);
document1.appendChild(svgLineElement1);
svgLineElement1.appendChild(svgTestcaseElement1);
- mathElement1.attributes[0].addEventListener("DOMSubtreeModified", function () { document.open(); }, false);
svgTestcaseElement1.appendChild(svgAnimAttributeElement1);
document2 = document.implementation.createDocument("http://www.w3.org/1999/xhtml", "html"); document2.adoptNode(textNode1);
- svgAnimAttributeElement1.appendChild(mathElement2);
+ svgAnimAttributeElement1.appendChild(mathElement1);
svgEllipseElement1.parentNode.removeChild(svgEllipseElement1);
delete svgEllipseElement1;
gc();
@@ -36,4 +32,4 @@ function crash() {
}
document.addEventListener("DOMContentLoaded", crash, false);
</script>
-</html>
+</html>

Powered by Google App Engine
This is Rietveld 408576698