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="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <script> | 7 <script> |
8 shouldBeEqualToString('window.atob("YQ==")', 'a'); | 8 shouldBeEqualToString('window.atob("YQ==")', 'a'); |
9 shouldBeEqualToString('window.atob("YWI=")', 'ab'); | 9 shouldBeEqualToString('window.atob("YWI=")', 'ab'); |
10 shouldBeEqualToString('window.atob("YWJj")', 'abc'); | 10 shouldBeEqualToString('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("z")'); | 57 shouldThrow('window.atob("z")'); |
58 shouldBeEqualToString('window.atob("zz")', 'Ï'); | 58 shouldBeEqualToString('window.atob("zz")', 'Ï'); |
59 shouldBeEqualToString('window.atob("zzz")', 'Ï\u003C'); | 59 shouldBeEqualToString('window.atob("zzz")', 'Ï\u003C'); |
60 shouldBeEqualToString('window.atob("zzz=")', 'Ï\u003C'); | 60 shouldBeEqualToString('window.atob("zzz=")', 'Ï\u003C'); |
61 shouldThrow('window.atob("zzz==")'); // excess pad characters. | 61 shouldThrow('window.atob("zzz==")'); // excess pad characters. |
62 shouldThrow('window.atob("zzz===")'); // excess pad characters. | 62 shouldThrow('window.atob("zzz===")'); // excess pad characters. |
63 shouldThrow('window.atob("zzz====")'); // excess pad characters. | 63 shouldThrow('window.atob("zzz====")'); // excess pad characters. |
64 shouldThrow('window.atob("zzz=====")'); // excess pad characters. | 64 shouldThrow('window.atob("zzz=====")'); // excess pad characters. |
65 shouldBeEqualToString('window.atob("zzzz")', 'Ï\u003Có'); | 65 shouldBeEqualToString('window.atob("zzzz")', 'Ï\u003Có'); |
| 66 shouldBeEqualToString('atob(" ")', ''); // whitespace only. |
66 shouldThrow('window.atob("zzzzz")'); | 67 shouldThrow('window.atob("zzzzz")'); |
67 shouldThrow('window.atob("z=zz")'); | 68 shouldThrow('window.atob("z=zz")'); |
68 shouldThrow('window.atob("=")'); | 69 shouldThrow('window.atob("=")'); |
69 shouldThrow('window.atob("==")'); | 70 shouldThrow('window.atob("==")'); |
70 shouldThrow('window.atob("===")'); | 71 shouldThrow('window.atob("===")'); |
71 shouldThrow('window.atob("====")'); | 72 shouldThrow('window.atob("====")'); |
72 shouldThrow('window.atob("=====")'); | 73 shouldThrow('window.atob("=====")'); |
73 window.atob = 0; | 74 window.atob = 0; |
74 shouldBe('window.atob', '0'); | 75 shouldBe('window.atob', '0'); |
75 shouldBeEqualToString('typeof window.atob', 'number'); | 76 shouldBeEqualToString('typeof window.atob', 'number'); |
76 | 77 |
77 </script> | 78 </script> |
78 </body> | 79 </body> |
79 </html> | 80 </html> |
OLD | NEW |