1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/base/tests/test_bug548545.xhtml Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +<html xmlns="http://www.w3.org/1999/xhtml"> 1.5 +<!-- 1.6 +https://bugzilla.mozilla.org/show_bug.cgi?id=548545 1.7 +--> 1.8 +<head> 1.9 + <title>Test for Bug 548545</title> 1.10 + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> 1.11 + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 1.12 + <style type="text/css"> 1.13 + #content { margin: 1em; } 1.14 + </style> 1.15 +</head> 1.16 +<body> 1.17 +<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=548545">Mozilla Bug 548545</a> 1.18 +<div id="content"> 1.19 +</div> 1.20 +<pre id="test"> 1.21 +<script class="testbody" type="text/javascript"> 1.22 +<![CDATA[ 1.23 +/** Test for Bug 548545 **/ 1.24 + 1.25 +SimpleTest.waitForExplicitFinish(); 1.26 + 1.27 +var content = document.getElementById("content"); 1.28 + 1.29 +var CC = SpecialPowers.Cc; 1.30 +var CI = SpecialPowers.Ci; 1.31 + 1.32 +var fe = 1.33 + CC["@mozilla.org/gfx/fontenumerator;1"].createInstance(CI.nsIFontEnumerator); 1.34 +var allFonts = fe.EnumerateFonts(null, null, {}); 1.35 + 1.36 +var idx = 0; 1.37 +var list = ""; 1.38 +for (idx in allFonts) { 1.39 + list += allFonts[idx] + "<br/>"; 1.40 +} 1.41 +content.innerHTML = list; 1.42 + 1.43 +ok(true,"Loaded the font list"); 1.44 +SimpleTest.finish(); 1.45 + 1.46 +]]> 1.47 +</script> 1.48 +</pre> 1.49 +</body> 1.50 +</html>