plupload
Version:
Plupload is a JavaScript API for dealing with file uploads it supports features like multiple file selection, file type filtering, request chunking, client side image scaling and it uses different runtimes to achieve this such as HTML 5, Silverlight and F
42 lines (31 loc) • 826 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>mOxie: Encode Utils</title>
<script src="../../loader.js"></script>
<script type="text/javascript">
QUnit.config.reorder = false;
module("Basic", {
setup: function() {
this.DOM = jQuery('#qunit-fixture');
},
teardown: function() {
}
});
// #111
test("unicode in btoa()", function(assert) {
assert.equal(o.btoa('你好,世界', true), "5L2g5aW977yM5LiW55WM",
"Multi-byte string properly encoded with second argument set to true.");
});
test("unicode in atob()", function(assert) {
assert.equal(o.atob('5L2g5aW977yM5LiW55WM', true), '你好,世界',
"Multi-byte string properly decoded, with second argument set to true.");
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>