1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/test_bug93077-3.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<!-- 1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=93077 1.8 +--> 1.9 +<head> 1.10 + <title>Test for Bug 93077</title> 1.11 + <script type="application/javascript" src="/MochiKit/packed.js"></script> 1.12 + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.13 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 1.14 + <style> 1.15 + #filler { height: 200cm; background: papayawhip; } 1.16 + </style> 1.17 +</head> 1.18 +<body> 1.19 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=93077">Mozilla Bug 93077</a> 1.20 +<p id="display"></p> 1.21 +<div id=filler>...</div> 1.22 +<p id=below></p> 1.23 +<p id=top>Top</p> 1.24 +<pre id="test"> 1.25 +<script type="application/javascript"> 1.26 +/** Test for Bug 93077 **/ 1.27 +["#TOP", "#Top"].forEach(function(fragid) { 1.28 + document.getElementById("below").scrollIntoView() 1.29 + isnot(window.scrollY, 0) 1.30 + location.hash = fragid 1.31 + is(window.scrollY, 0) 1.32 +}) 1.33 +location.hash = "#top" 1.34 +isnot(window.scrollY, 0) 1.35 +</script> 1.36 +</pre> 1.37 +</body> 1.38 +</html>