[Pkg-javascript-commits] [node-async] 58/480: added browser tests
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:12 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository node-async.
commit 2d75d5af06c6aca07e7865e0d06bbabd169b4975
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date: Sun Nov 21 19:39:17 2010 +0000
added browser tests
---
deps/nodeunit.min.js | 11 +++++++++++
test/test.html | 18 ++++++++++++++++++
2 files changed, 29 insertions(+)
diff --git a/deps/nodeunit.min.js b/deps/nodeunit.min.js
new file mode 100644
index 0000000..e40aa0e
--- /dev/null
+++ b/deps/nodeunit.min.js
@@ -0,0 +1,11 @@
+/*!
+ * Nodeunit
+ * https://github.com/caolan/nodeunit
+ * Copyright (c) 2010 Caolan McMahon
+ * MIT Licensed
+ *
+ * json2.js
+ * http://www.JSON.org/json2.js
+ * Public Domain.
+ * NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
+ */nodeunit=function(){this.JSON||(this.JSON={}),function(){"use strict";function f(a){return a<10?"0"+a:a}typeof Date.prototype.toJSON!=="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()}) [...]
\ No newline at end of file
diff --git a/test/test.html b/test/test.html
new file mode 100644
index 0000000..2d17e27
--- /dev/null
+++ b/test/test.html
@@ -0,0 +1,18 @@
+<html>
+ <head>
+ <title>Async.js tests</title>
+ <script src="../lib/async.js"></script>
+ <script src="../deps/nodeunit.min.js"></script>
+ <script>
+ this.require = function () { return async; }
+ this.exports = {};
+ </script>
+ <script src="test-async.js"></script>
+ </head>
+ <body>
+ <script>
+ console.log(exports);
+ nodeunit.run({'test-async': exports});
+ </script>
+ </body>
+</html>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git
More information about the Pkg-javascript-commits
mailing list