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
72 lines (52 loc) • 1.27 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Dropbox: FileInput</title>
<script src="../../../loader.js"></script>
<script type="text/javascript">
QUnit.config.reorder = false;
QUnit.config.testTimeout = 10000;
module("Dropbox: FileInput", {
setup: function() {
},
teardown: function() {
}
});
test("Test initialization", function(assert)
{
$('#qunit-fixture').append([
'<div id="container">',
'<a id="browse_button" href="javascript:;">Browse...</a>',
'</div>'
].join(''));
var fi = new o.FileInput({
runtime_order: 'dropbox',
browse_button: 'browse_button',
dropbox: {
appKey: "87n7zjc7lfszevg"
}
});
fi.onready = function() {
start();
assert.ok(true, "Ready event has fired.");
assert.ok(Dropbox && Dropbox.choose, "Dropbox Chooser API available.");
};
fi.bind("Error RuntimeError", function() {
assert.ok(true, "Runtime not supported.");
start();
});
stop();
fi.init();
});
</script>
</head>
<body>
<h1 id="qunit-header">mOxie Test Suite</h1>
<h2 id="qunit-banner"></h2>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests">
</ol>
<div id="qunit-fixture" style="position: relative; top: 0 !important; left: 0 !important; width: 100%; height: 9px;"></div>
</body>
</html>