Permalink
Browse files

Add the base64 tests to the browser suite.

  • Loading branch information...
1 parent 999f6db commit 36ec305861e9267f614ed7ab506d75a616d8c3ec @pwnall pwnall committed Oct 11, 2012
Showing with 3 additions and 2 deletions.
  1. +2 −2 src/base64.coffee
  2. +1 −0 test/html/browser_test.html
View
@@ -2,8 +2,8 @@
if window?
if window.atob and window.btoa
- atob = window.atob
- btoa = window.btoa
+ atob = (string) -> window.atob string
+ btoa = (base64) -> window.btoa base64
else
# IE < 10 doesn't implement the standard atob / btoa functions.
base64Digits =
@@ -20,6 +20,7 @@
<script src="/test/vendor/favicon.js"></script>
<script src="/test/js/helper.js"></script>
+ <script src="/test/js/browser_test.js"></script>
<script src="/test/js/client_test.js"></script>
<script src="/test/js/drivers_test.js"></script>
<script src="/test/js/hmac_test.js"></script>

0 comments on commit 36ec305

Please sign in to comment.