tor-browser

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

test_richtext.html (1425B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 BrowserScope richtext category tests
      5 -->
      6 <head>
      7  <title>BrowserScope Richtext Tests</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
     10  <script src="/tests/SimpleTest/EventUtils.js"></script>
     11  <script type="text/javascript" src="lib/richtext/currentStatus.js"></script>
     12 </head>
     13 <body>
     14 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=550569">Mozilla Bug 550569</a>
     15 <p id="display"></p>
     16 <div id="content">
     17  <iframe src="lib/richtext/richtext/richtext.html"></iframe>
     18 </div>
     19 <pre id="test">
     20 <script type="application/javascript">
     21 
     22 SimpleTest.waitForExplicitFinish();
     23 // Running all of the tests can take a long time, try to account for it
     24 SimpleTest.requestLongerTimeout(5);
     25 
     26 function sendScore(results) {
     27  ok(results.length > 1, "At least one test should have been run");
     28  for (var i = 1; i < results.length; ++i) {
     29    var result = results[i];
     30    let [type, command, param, success] = result.split(/[\-=]/);
     31    var comp = is;
     32    if (isKnownFailure(type, command, param)) {
     33      comp = todo_is;
     34    }
     35    comp(success, "1", "Browserscope richtext category=" + type +
     36         " test=" + command +
     37         " param=" + param);
     38  }
     39 }
     40 
     41 document.getElementsByTagName("iframe")[0].addEventListener("load", function() {
     42  SimpleTest.finish();
     43 });
     44 
     45 </script>
     46 </pre>
     47 </body>
     48 </html>