Bug 1892041 - Part 1: Update test262 features. r=spidermonkey-reviewers,dminor
[gecko.git] / dom / base / test / test_bug1404385.html
blob828a44918fc8159680671192a080cfb723b9b14c
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">
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");
28 </script>
29 </pre>
30 </body>
31 </html>