layout/base/tests/test_bug93077-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/test_bug93077-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,32 @@
     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 +<pre id="test">
    1.24 +<script type="application/javascript">
    1.25 +/** Test for Bug 93077 **/
    1.26 +["#top", "#TOP", "#Top"].forEach(function(fragid) {
    1.27 +  document.getElementById("below").scrollIntoView()
    1.28 +  isnot(window.scrollY, 0)
    1.29 +  location.hash = fragid
    1.30 +  is(window.scrollY, 0)
    1.31 +})
    1.32 +</script>
    1.33 +</pre>
    1.34 +</body>
    1.35 +</html>

mercurial