Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: 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

Issue 1666363003: Import web-platform-tests@27e3d93f88a71a249d1df872a5d613b3243b9588 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Missed win failiure in TestExpectations Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698