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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/dom/SVGStaticListTearOff-contextElement-crash.html

Issue 2522443002: Remove SVGCursorElement (Closed)
Patch Set: Rebase Created 4 years 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
1 <html> 1 <html>
2 <body> 2 <body>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script> 4 <script>
5 if (window.testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 var cursor = document.createElementNS("http://www.w3.org/2000/svg", "cursor"); 8 var mask = document.createElementNS("http://www.w3.org/2000/svg", "mask");
9 var cursorObservation = internals.observeGC(cursor); 9 var maskObservation = internals.observeGC(mask);
10 var staticList = cursor.requiredExtensions; 10 var staticList = mask.requiredExtensions;
11 cursor = null; 11 mask = null;
12 gc(); 12 gc();
13 13
14 staticList.clear(); // This should not cause crash in ASAN. 14 staticList.clear(); // This should not cause crash in ASAN.
15 15
16 // cursor should be kept alive from "staticList" 16 // mask should be kept alive from "staticList"
17 shouldBeFalse('cursorObservation.wasCollected'); 17 shouldBeFalse('maskObservation.wasCollected');
18 </script> 18 </script>
19 This test passes if it doesn't crash in ASAN. 19 This test passes if it doesn't crash in ASAN.
20 </body> 20 </body>
21 </html> 21 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698