tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_bug548545.xhtml (1082B)


      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 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 */
     21 
     22 SimpleTest.waitForExplicitFinish();
     23 
     24 var content = document.getElementById("content");
     25 
     26 var CC = SpecialPowers.Cc;
     27 var CI = SpecialPowers.Ci;
     28 
     29 var fe =
     30  CC["@mozilla.org/gfx/fontenumerator;1"].createInstance(CI.nsIFontEnumerator);
     31 var allFonts = fe.EnumerateFonts(null, null);
     32 
     33 var idx = 0;
     34 var list = "";
     35 for (idx in allFonts) {
     36  list += allFonts[idx] + "<br/>";
     37 }
     38 content.innerHTML = list;
     39 
     40 ok(true,"Loaded the font list");
     41 SimpleTest.finish();
     42 
     43 ]]>
     44 </script>
     45 </pre>
     46 </body>
     47 </html>