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
37 lines (31 loc) • 745 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>mOxie: Env</title>
<script src="../../loader.js"></script>
<script type="text/javascript">
module("Env");
test("verComp", function() {
ok(o.Env.verComp(10.1, 10, '>'), "10.1 > 10: compare float and integer");
ok(o.Env.verComp("10.1.1", 11.1, '<'), "10.1.1 < 11.1: compare string and float");
ok(o.Env.verComp("10.1.1b", "10.1.1", '<'), "10.1.1b > 10.1.1: compare two strings");
deepEqual([
o.Env.verComp("28", "27.1", '>='),
o.Env.verComp("28", "28", '>='),
o.Env.verComp("26", "28", '>=')
], [
true,
true,
false
],
"operator >="
);
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>