layout/base/tests/test_bug548545.xhtml

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 <html xmlns="http://www.w3.org/1999/xhtml">
     2 <!--
     3 https://bugzilla.mozilla.org/show_bug.cgi?id=548545
     4 -->
     5 <head>
     6   <title>Test for Bug 548545</title>
     7   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     8   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     9   <style type="text/css">
    10   #content { margin: 1em; }
    11   </style>
    12 </head>
    13 <body>
    14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=548545">Mozilla Bug 548545</a>
    15 <div id="content">
    16 </div>
    17 <pre id="test">
    18 <script class="testbody" type="text/javascript">
    19 <![CDATA[
    20 /** Test for Bug 548545 **/
    22 SimpleTest.waitForExplicitFinish();
    24 var content = document.getElementById("content");
    26 var CC = SpecialPowers.Cc;
    27 var CI = SpecialPowers.Ci;
    29 var fe =
    30   CC["@mozilla.org/gfx/fontenumerator;1"].createInstance(CI.nsIFontEnumerator);
    31 var allFonts = fe.EnumerateFonts(null, null, {});
    33 var idx = 0;
    34 var list = "";
    35 for (idx in allFonts) {
    36   list += allFonts[idx] + "<br/>";
    37 }
    38 content.innerHTML = list;
    40 ok(true,"Loaded the font list");
    41 SimpleTest.finish();
    43 ]]>
    44 </script>
    45 </pre>
    46 </body>
    47 </html>

mercurial