layout/base/tests/test_bug687297.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/base/tests/test_bug687297.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,54 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html>
     1.6 +<!--
     1.7 +https://bugzilla.mozilla.org/show_bug.cgi?id=687297
     1.8 +-->
     1.9 +<head>
    1.10 +  <meta charset="utf-8">
    1.11 +  <title>Test for Bug 687297</title>
    1.12 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    1.13 +  <script type="application/javascript" src="/tests/SimpleTest/SpecialPowers.js"></script>
    1.14 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.15 +</head>
    1.16 +<body>
    1.17 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=687297">Mozilla Bug 687297</a>
    1.18 +<p id="display"></p>
    1.19 +<div id="content" style="display: none">
    1.20 +
    1.21 +</div>
    1.22 +<pre id="test">
    1.23 +  <script class="testbody" type="text/javascript">
    1.24 +    /** Test for Bug 687297 **/
    1.25 +    
    1.26 +    SimpleTest.waitForExplicitFinish();
    1.27 +  
    1.28 +    var size_a=0, size_b=0, size_c=0;
    1.29 +    
    1.30 +    window.report_size_a = function(s) {
    1.31 +      size_a = s;
    1.32 +    };
    1.33 +  
    1.34 +    window.report_size_b = function(s) {
    1.35 +      size_b = s;
    1.36 +    };
    1.37 +  
    1.38 +    window.report_size_c = function(s) {
    1.39 +      size_c = s;
    1.40 +      
    1.41 +      isnot(size_a, size_b, "Font sizes are changing with global language-specific minimum font size");
    1.42 +      is(size_c, size_a, "Font sizes are equal, propagating only the presentation-level base minimum font size");
    1.43 +
    1.44 +      SimpleTest.finish();
    1.45 +    };
    1.46 +  
    1.47 +    SpecialPowers.pushPrefEnv(
    1.48 +      {'set':[["font.minimum-size.ja", 120]]},
    1.49 +      function() {
    1.50 +        window.open("bug687297_a.html", '_blank');
    1.51 +      }
    1.52 +    );
    1.53 +  
    1.54 +  </script>
    1.55 +</pre>
    1.56 +</body>
    1.57 +</html>

mercurial