layout/style/test/test_bug389464.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     5 -->
     6 <head>
     7   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
     8   <!-- above is to force x-western language group -->
     9   <title>Test for preference not to use document colors</title>
    10   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    12   <style type="text/css">
    15   </style>
    16 </head>
    17 <body>
    18 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=58048">Mozilla Bug 58048</a>
    19 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=255411">Mozilla Bug 255411</a>
    20 <div id="display">
    22 <pre><font id="one" size="-1">text</font></pre>
    23 <p><font id="two" size="-1">text</font></p>
    25 </div>
    26 <pre id="test">
    27 <script class="testbody" type="text/javascript">
    29 SimpleTest.waitForExplicitFinish();
    31 var cs1 = getComputedStyle(document.getElementById("one"), "");
    32 var cs2 = getComputedStyle(document.getElementById("two"), "");
    34 SpecialPowers.pushPrefEnv({'set': [['variable.x-western', 25], ['fixed.x-western', 20]]}, part1);
    36 function part1()
    37 {
    38     var fs1 = cs1.fontSize.match(/(.*)px/)[1];
    39     var fs2 = cs2.fontSize.match(/(.*)px/)[1];
    40     ok(fs1 < fs2, "<font size=-1> shrinks relative to font-family: -moz-fixed");
    42     SimpleTest.finish();
    43 }
    45 </script>
    46 </pre>
    47 </body>
    48 </html>

mercurial