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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-basic.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-basic.html
diff --git a/third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-basic.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-basic.html
similarity index 70%
copy from third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-basic.html
copy to third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-basic.html
index 31cd93ab400926ea3147bb36a3934df3fa8e6885..4a5ea9251fa378fd2dbba1e776c191b665f87003 100644
--- a/third_party/WebKit/LayoutTests/fast/history/scroll-restoration/scroll-restoration-basic.html
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/history-traversal/persisted-user-state-restoration/scroll-restoration-basic.html
@@ -1,4 +1,6 @@
-<!DOCTYPE html>
+<!doctype html>
+<title>Verify existence and basic read/write function of history.scrollRestoration</title>
+
<style>
body {
height: 2000px;
@@ -6,16 +8,12 @@
}
</style>
-<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';
test(function() {
- assert_true(history.scrollRestoration !== undefined, 'history.scrollRestoration exists');
- }, 'Basic existence');
-
- test(function() {
assert_equals(history.scrollRestoration, 'auto');
}, 'Default value is "auto"');
@@ -28,7 +26,7 @@
test(function() {
history.scrollRestoration = 'auto';
- for (var v of[3.1415, {}, 'bogus']) {
+ for (var v of [3.1415, {}, 'bogus']) {
history.scrollRestoration = v;
assert_equals(history.scrollRestoration, 'auto', `setting to invalid value (${v}) should be ignored`);
}

Powered by Google App Engine
This is Rietveld 408576698