Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add the base64 tests to the browser suite.

  • Loading branch information...
commit 36ec305861e9267f614ed7ab506d75a616d8c3ec 1 parent 999f6db
@pwnall pwnall authored
Showing with 3 additions and 2 deletions.
  1. +2 −2 src/base64.coffee
  2. +1 −0  test/html/browser_test.html
View
4 src/base64.coffee
@@ -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 =
View
1  test/html/browser_test.html
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.