| Index: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/garbage-collection-and-browsing-contexts/discard_iframe_history_1-1.html
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/garbage-collection-and-browsing-contexts/discard_iframe_history_1-1.html b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/garbage-collection-and-browsing-contexts/discard_iframe_history_1-1.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..217608e46ef78a915c4d6192505187067199273c
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/garbage-collection-and-browsing-contexts/discard_iframe_history_1-1.html
|
| @@ -0,0 +1,20 @@
|
| +<!doctype html>
|
| +<iframe></iframe>
|
| +<script>
|
| +var t = opener.t;
|
| +
|
| +onload = t.step_func(function() {
|
| + setTimeout(t.step_func(function() {
|
| + var history_length = history.length;
|
| + var iframe = document.getElementsByTagName("iframe")[0];
|
| + iframe.onload = t.step_func(function() {
|
| + opener.assert_equals(history.length, history_length + 1);
|
| + iframe.parentNode.removeChild(iframe);
|
| + opener.assert_equals(history.length, history_length);
|
| + t.done();
|
| + window.close();
|
| + });
|
| + iframe.src = "discard_iframe_history_1-2.html;";
|
| + }), 100);
|
| +});
|
| +</script>
|
|
|