diff options
Diffstat (limited to 'webkit/data/layout_tests')
2 files changed, 38 insertions, 0 deletions
diff --git a/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt new file mode 100644 index 0000000..5e51726 --- /dev/null +++ b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2-expected.txt @@ -0,0 +1,3 @@ +This test verifies that style sheet do not outlive their elements. Since you can get back to the element with the ownerNode attribute, it's important to keep the element alive. + +Test passed. diff --git a/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html new file mode 100644 index 0000000..bf6d252 --- /dev/null +++ b/webkit/data/layout_tests/pending/fast/dom/StyleSheet/ownerNode-lifetime-expected-2.html @@ -0,0 +1,35 @@ +<html> +<link rel="stylesheet" type="text/css" src="theme.css"/> + +<script> +function runTest() { + if (window.layoutTestController) + layoutTestController.dumpAsText(); + + var linkElement = document.getElementsByTagName('link')[0]; + var styleSheet = linkElement.sheet; + + // delete link element + linkElement.parentNode.removeChild(linkElement); + linkElement = null; + + if (window.gc) { + window.gc(); + } else { + for (var i = 0; i < 5000; i++) + new Object(); + } + styleSheet.ownerNode.cloneNode(); + + document.getElementById("result").innerHTML = "Test passed."; +} +</script> +<body onload="runTest()"> +<p> +This test verifies that style sheet do not outlive their elements. +Since you can get back to the element with the ownerNode attribute, +it's important to keep the element alive. +</p> +<p id="result">TEST HAS NOT RUN YET.</p> +</body> +</html> |