layout/base/tests/test_bug687297.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=687297
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>Test for Bug 687297</title>
     9   <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <script type="application/javascript" src="/tests/SimpleTest/SpecialPowers.js"></script>
    11   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    12 </head>
    13 <body>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=687297">Mozilla Bug 687297</a>
    15 <p id="display"></p>
    16 <div id="content" style="display: none">
    18 </div>
    19 <pre id="test">
    20   <script class="testbody" type="text/javascript">
    21     /** Test for Bug 687297 **/
    23     SimpleTest.waitForExplicitFinish();
    25     var size_a=0, size_b=0, size_c=0;
    27     window.report_size_a = function(s) {
    28       size_a = s;
    29     };
    31     window.report_size_b = function(s) {
    32       size_b = s;
    33     };
    35     window.report_size_c = function(s) {
    36       size_c = s;
    38       isnot(size_a, size_b, "Font sizes are changing with global language-specific minimum font size");
    39       is(size_c, size_a, "Font sizes are equal, propagating only the presentation-level base minimum font size");
    41       SimpleTest.finish();
    42     };
    44     SpecialPowers.pushPrefEnv(
    45       {'set':[["font.minimum-size.ja", 120]]},
    46       function() {
    47         window.open("bug687297_a.html", '_blank');
    48       }
    49     );
    51   </script>
    52 </pre>
    53 </body>
    54 </html>

mercurial