Index: LayoutTests/fast/dom/document-softleak-mouse-navigation.html |
diff --git a/LayoutTests/fast/dom/document-softleak-mouse-navigation.html b/LayoutTests/fast/dom/document-softleak-mouse-navigation.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f339d2b5f3fd0722b8d8fd968e4b09559a56d970 |
--- /dev/null |
+++ b/LayoutTests/fast/dom/document-softleak-mouse-navigation.html |
@@ -0,0 +1,34 @@ |
+<!doctype html> |
+<html> |
+<body> |
+<iframe id="target"></iframe> |
+<script src="../../resources/js-test.js"></script> |
+<script src="../../resources/leak-check.js"></script> |
+<script> |
+jsTestIsAsync = true; |
+ |
+var countersBefore; |
+var iframe = document.getElementById("target"); |
+ |
+function onAboutBlankLoad() { |
+ setTimeout(function() { |
+ countersBefore = getCounterValues(); |
+ iframe.onload = null; |
+ iframe.src = "resources/link.html"; |
+ }, 0); |
+} |
+ |
+function onDone() { |
+ setTimeout(function() { |
+ var countersAfter = getCounterValues(); |
+ compareValues(countersBefore, countersAfter, {'numberOfLiveDocuments': 0}); |
+ finishJSTest(); |
+ }, 0); |
+} |
+ |
+iframe.onload = onAboutBlankLoad; |
+iframe.src = "about:blank"; |
+window.addEventListener("message", onDone, false); |
+</script> |
+</body> |
+</html> |