tor-browser

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

test_bug343870.xhtml (1088B)


      1 <html xmlns="http://www.w3.org/1999/xhtml">
      2 <!--
      3 https://bugzilla.mozilla.org/show_bug.cgi?id=343870
      4 -->
      5 <head>
      6  <title>Test for Bug 343870</title>
      7  <script src="/tests/SimpleTest/SimpleTest.js"></script>        
      8  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
      9 </head>
     10 <body>
     11 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=343870">Mozilla Bug 343870</a>
     12 <p id="display"></p>
     13 <div id="content" style="display: none">
     14 
     15 </div>
     16 <pre id="test">
     17 <script class="testbody" type="text/javascript">
     18 <![CDATA[
     19 
     20 /** Test for Bug 343870 */
     21 function doTest() {
     22  var dataDoc = document.getElementById("d").contentDocument;
     23  is(dataDoc.getElementById("lf").firstChild.data, "\n");
     24  is(dataDoc.getElementById("cr").firstChild.data, "\n");
     25  is(dataDoc.getElementById("crlf").firstChild.data, "\n");
     26  is(dataDoc.getElementById("escapedcr").firstChild.data, "\r");
     27 }
     28 
     29 SimpleTest.waitForExplicitFinish();
     30 addLoadEvent(doTest);
     31 addLoadEvent(SimpleTest.finish);
     32 
     33 ]]>
     34 </script>
     35 </pre>
     36 <iframe id="d" src="file_bug343870.xml"></iframe>
     37 </body>
     38 </html>