| OLD | NEW | 
|   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> | 
| OLD | NEW |