layout/base/tests/test_bug93077-3.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=93077
     5 -->
     6 <head>
     7   <title>Test for Bug 93077</title>
     8   <script type="application/javascript" src="/MochiKit/packed.js"></script>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    11   <style>
    12     #filler { height: 200cm; background: papayawhip; }
    13   </style>
    14 </head>
    15 <body>
    16 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=93077">Mozilla Bug 93077</a>
    17 <p id="display"></p>
    18 <div id=filler>...</div>
    19 <p id=below></p>
    20 <p id=top>Top</p>
    21 <pre id="test">
    22 <script type="application/javascript">
    23 /** Test for Bug 93077 **/
    24 ["#TOP", "#Top"].forEach(function(fragid) {
    25   document.getElementById("below").scrollIntoView()
    26   isnot(window.scrollY, 0)
    27   location.hash = fragid
    28   is(window.scrollY, 0)
    29 })
    30 location.hash = "#top"
    31 isnot(window.scrollY, 0)
    32 </script>
    33 </pre>
    34 </body>
    35 </html>

mercurial