1 <svg xmlns=
"http://www.w3.org/2000/svg" onload=
"load()">
2 This test passes if it doesn't crash when run under gmalloc.
3 <rect x=
"10" y=
"10" width=
"100" height=
"100" fill=
"green"/>
4 <text x=
"50" y=
"50" id=
"log"/>
7 function log(message) {
8 var logDiv = document.getElementById('log');
9 logDiv.appendChild(document.createTextNode(message));
13 if (window.testRunner && window.GCController && window.internals)
14 testRunner.dumpAsText();
16 log(
"This test only works when run with the testRunner, GCController, and internals available.");
20 var rect = document.getElementsByTagName(
"rect")[
0];
21 var baseValReference = rect.x.baseVal;
23 rect.parentNode.removeChild(rect);
26 GCController.collect();
28 // This line will crash with gmalloc if this test has regressed.
29 log(
"PASS x = " + baseValReference.value);