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.)

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

mercurial