layout/base/tests/test_bug93077-2.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 <!-- Testing quirks mode. -->
     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 <pre id="test">
    21 <script type="application/javascript">
    22 /** Test for Bug 93077 **/
    23 ["#top", "#TOP", "#Top"].forEach(function(fragid) {
    24   document.getElementById("below").scrollIntoView()
    25   isnot(window.scrollY, 0)
    26   location.hash = fragid
    27   is(window.scrollY, 0)
    28 })
    29 </script>
    30 </pre>
    31 </body>
    32 </html>

mercurial