OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 shouldBe('window.atob("YQ==")', '"a"'); | 8 shouldBe('window.atob("YQ==")', '"a"'); |
9 shouldBe('window.atob("YWI=")', '"ab"'); | 9 shouldBe('window.atob("YWI=")', '"ab"'); |
10 shouldBe('window.atob("YWJj")', '"abc"'); | 10 shouldBe('window.atob("YWJj")', '"abc"'); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 shouldThrow('window.atob("=")'); | 56 shouldThrow('window.atob("=")'); |
57 shouldThrow('window.atob("==")'); | 57 shouldThrow('window.atob("==")'); |
58 shouldThrow('window.atob("===")'); | 58 shouldThrow('window.atob("===")'); |
59 shouldThrow('window.atob("====")'); | 59 shouldThrow('window.atob("====")'); |
60 shouldThrow('window.atob("=====")'); | 60 shouldThrow('window.atob("=====")'); |
61 window.atob = 0; | 61 window.atob = 0; |
62 shouldBe('window.atob', '0'); | 62 shouldBe('window.atob', '0'); |
63 shouldBe('typeof window.atob', '"number"'); | 63 shouldBe('typeof window.atob', '"number"'); |
64 | 64 |
65 </script> | 65 </script> |
66 <script src="../../js/resources/js-test-post.js"></script> | |
67 </body> | 66 </body> |
68 </html> | 67 </html> |
OLD | NEW |