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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/scroll-to-fragid/scroll-frag-percent-encoded.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/scroll-to-fragid/scroll-frag-percent-encoded.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/scroll-to-fragid/scroll-frag-percent-encoded.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/scroll-to-fragid/scroll-frag-percent-encoded.html
deleted file mode 100644
index c4c60ac86b324d4580757867ba9aca21fb1acb81..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/browsers/browsing-the-web/scroll-to-fragid/scroll-frag-percent-encoded.html
+++ /dev/null
@@ -1,59 +0,0 @@
-<!doctype html>
-<title>Fragment Navigation: fragment id should be percent-decoded</title>
-<meta name=timeout content=long>
-<script src="../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../resources/testharnessreport.js"></script>
-<body>
-<div></div>
-<div id="has two spaces" style="position:absolute; top:200px;"></div>
-<div id="escape%20collision" style="position:absolute; top:300px;"></div>
-<div id="escape collision" style="position:absolute; top:400px;"></div>
-<div id="do%20not%20go%20here" style="position:absolute; top:400px;"></div>
-<div style="height:200em;"></div>
-<script>
-var steps = [{
- fragid:'has%20two%20spaces',
- handler: function(){
- assert_equals( scrollPosition(), 200 );
- }
- },{
- fragid:'escape%20collision',
- handler: function(){
- assert_equals( scrollPosition(), 400 );
- }
- },{
- fragid:'do%20not%20go%20here',
- handler: function(){
- // don't move
- assert_equals( scrollPosition(), 400 );
- }
- }];
-
-function scrollPosition(){
- return document.documentElement.scrollTop || document.body.scrollTop;
-}
-
-function runNextStep(){
- if( steps.length > 0 ) {
- var step = steps.shift();
- var listener = t.step_func( function(){
- step.handler();
- runNextStep();
- });
- scrollToFragmentThenDo( step.fragid, listener );
- } else {
- t.done();
- }
-}
-
-function scrollToFragmentThenDo( fragid, then ){
- location.hash = fragid;
- setTimeout( then, 1 );
-}
-
-var t = async_test();
-t.step( function(){
- assert_equals(location.hash, "", "Page must be loaded with no hash");
- runNextStep();
-})
-</script>

Powered by Google App Engine
This is Rietveld 408576698