| Index: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-fragment-navigation-samedoc.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
|
| similarity index 70%
|
| copy from third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-fragment-navigation-samedoc.html
|
| copy to third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
|
| index 01ce2136f299ba5ab88bcb5d3ac5b0af1787af08..83ebe3d3275706c0e17eaac86347ee3835dfec3b 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-fragment-navigation-samedoc.html
|
| +++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-fragment-scrolling-samedoc.html
|
| @@ -4,6 +4,7 @@
|
| height: 2000px;
|
| width: 2000px;
|
| }
|
| +
|
| #fragment {
|
| position: absolute;
|
| top: 800px;
|
| @@ -12,23 +13,14 @@
|
| height: 100px;
|
| width: 100px;
|
| }
|
| - #focus-target {
|
| - position: absolute;
|
| - top: 0;
|
| - display: block;
|
| - height: 10px;
|
| - width: 10px;
|
| - }
|
| </style>
|
|
|
| -<body tabindex=1>
|
| - <div id='log'></div>
|
| - <div id='focus-target' tabindex=1></div>
|
| - <a id='fragment' name='fragment' class='box' href='#'>Anchor</a>
|
| +<body>
|
| + <a id="fragment" name="fragment" class='box'></a>
|
| </body>
|
|
|
| -<script src="../../../resources/testharness.js"></script>
|
| -<script src="../../../resources/testharnessreport.js"></script>
|
| +<script src="../../../../../../../resources/testharness.js"></script>
|
| +<script src="../../../../../../../resources/testharnessreport.js"></script>
|
| <script type="text/javascript">
|
| 'use strict';
|
|
|
| @@ -42,7 +34,6 @@
|
| // create a new entry and reset the scroll before verification
|
| history.pushState(null, null, '#done');
|
| window.scrollTo(0, 0);
|
| - document.getElementById('focus-target').focus(); // switch the focused element
|
| assert_equals(window.scrollY, 0, 'should reset scroll before verification');
|
|
|
| setTimeout(function() {
|
| @@ -59,5 +50,5 @@
|
| window.history.back();
|
| }, 0);
|
|
|
| - }, 'scrollRestoration takes precedent over scrolling to fragment');
|
| + }, 'Manual scroll restoration should take precedent over scrolling to fragment in cross doc navigation');
|
| </script>
|
|
|