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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/browsing-the-web/scroll-to-fragid/006.html

Issue 2020943002: update-w3c-deps: Do not modify testharness tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <!-- this tests the spec as it hopefully will be once bug https://www.w3.org/Bu gs/Public/show_bug.cgi?id=17155 is fixed --> 2 <!-- this tests the spec as it hopefully will be once bug https://www.w3.org/Bug s/Public/show_bug.cgi?id=17155 is fixed -->
3 <title>Fragment Navigation: hashchange event multiple changes old/newURL</title> 3 <title>Fragment Navigation: hashchange event multiple changes old/newURL</title>
4 <script src="/resources/testharness.js"></script> 4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script> 5 <script src="/resources/testharnessreport.js"></script>
6 <body> 6 <body>
7 <div id="log"></div> 7 <div id="log"></div>
8 <script> 8 <script>
9 var t = async_test(); 9 var t = async_test();
10 t.step(function() { 10 t.step(function() {
11 var original_url = location.href; 11 var original_url = location.href;
12 assert_equals(location.hash, "", "Page must be loaded with no hash"); 12 assert_equals(location.hash, "", "Page must be loaded with no hash");
(...skipping 12 matching lines...) Expand all
25 assert_equals(e.oldURL, mid_url, "oldURL property second update"); 25 assert_equals(e.oldURL, mid_url, "oldURL property second update");
26 assert_equals(e.newURL, location.href, "newURL property s econd update"); 26 assert_equals(e.newURL, location.href, "newURL property s econd update");
27 location.hash = ""; 27 location.hash = "";
28 t.done(); 28 t.done();
29 } 29 }
30 }), true); 30 }), true);
31 31
32 location.hash = "test1"; 32 location.hash = "test1";
33 }); 33 });
34 </script> 34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698