tor-browser

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

test_bug1404385.html (918B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1404385
      5 -->
      6 <head>
      7  <title>Test for Bug 1404385</title>
      8  <script src="/tests/SimpleTest/SimpleTest.js"></script>
      9  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
     10 </head>
     11 <body>
     12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1404385">Mozilla Bug 1404385</a>
     13 <p id="display"></p>
     14 <div id="content" style="display: none">
     15 </div>
     16 <pre id="test">
     17 <script class="testbody" type="text/javascript">
     18 
     19 /** Test for Bug 1404385 */
     20 is(atob("T0s="), "OK", "atob");
     21 is(atob(" T0s="), "OK", "atob initial space removal");
     22 is(atob("T0s= "), "OK", "atob final space removal");
     23 is(atob("T 0s="), "OK", "atob middle space removal");
     24 is(atob("dGV zdA=="), "test", "atob middle space removal 2");
     25 is(atob(""), "", "atob empty string");
     26 is(atob(" "), "", "atob all whitespace");
     27 
     28 </script>
     29 </pre>
     30 </body>
     31 </html>