tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

002.html (771B)


      1 <!doctype html>
      2 <!-- this tests the spec as it hopefully will be once bug https://www.w3.org/Bugs/Public/show_bug.cgi?id=17155 is fixed -->
      3 <title>Fragment Navigation: Updating document address twice</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="log"></div>
      7 <script>
      8 test(function() {
      9  assert_equals(location.hash, "", "Page must be loaded with no hash")
     10  var original_location = location.href;
     11  location.hash = "test";
     12  assert_equals(location.hash, "#test");
     13  assert_equals(location.href, original_location + "#test");
     14 
     15  location.hash = "test1";
     16  assert_equals(location.hash, "#test1");
     17  assert_equals(location.href, original_location + "#test1");
     18 
     19  location.hash = "";
     20 });
     21 </script>