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

Unified Diff: LayoutTests/css3/clippath/script-tests/clippath-reference-delete-crash.js

Issue 423823004: Add support for SVG Clip paths in HTML (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed LayoutTests and Aligned with review comments Created 6 years, 4 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/css3/clippath/script-tests/clippath-reference-delete-crash.js
diff --git a/LayoutTests/css3/clippath/script-tests/clippath-reference-delete-crash.js b/LayoutTests/css3/clippath/script-tests/clippath-reference-delete-crash.js
new file mode 100644
index 0000000000000000000000000000000000000000..5757c45084f6ae84b072871af1b61617a8e28b4b
--- /dev/null
+++ b/LayoutTests/css3/clippath/script-tests/clippath-reference-delete-crash.js
@@ -0,0 +1,11 @@
+description("Test that no crash occurs when a SVG clippath is deleted that was referenced by a deleted HTML element.");
esprehn 2014/08/06 17:25:09 Was this a bug before? I thought this patch was ad
+
+setTimeout(function () {
+ html = document.getElementById('html');
+ html.parentNode.removeChild(html);
+ svg = document.getElementById('svg');
+ svg.parentNode.removeChild(svg);
+
+ successfullyParsed = true;
+}, 0);
+

Powered by Google App Engine
This is Rietveld 408576698