blob: 97e27a696a1cbfb884d01bb5cd9f1672894dc75e [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
</script>
<script type="text/javascript">
var xmlNode = null;
loadData();
setTimeout("testData()", 0);
function testData() {
var i = 0;
var s;
while (i < 5000) {
i = i+1.11;
s = s + " ";
}
document.write(xmlNode.ownerDocument.data ? "<p>SUCCESS</p>" : "<p>FAILURE</p>");
if (window.layoutTestController)
layoutTestController.notifyDone();
}
function loadData() {
var xmlDoc = document.implementation.createDocument("", "doc", null);
if (!xmlDoc.documentElement)
xmlDoc.appendChild(document.createElement("doc"));
xmlNode = xmlDoc.documentElement;
xmlNode.ownerDocument.data = 1;
}
</script>
</head>
<body>
This test checks that custom data on reachable DOM nodes is not lost during GC. If it passes, it should say SUCCESS below.
</body>
</html>