[Pkg-javascript-commits] [node-async] 61/480: load working copy of async module after nodeunit in 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 051e1b2608e129d661d4665671e28edf7c89285c
Author: Caolan McMahon <caolan at caolanmcmahon.com>
Date:   Wed Nov 24 19:44:21 2010 +0000

    load working copy of async module after nodeunit in browser tests
---
 test/test.html | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/test/test.html b/test/test.html
index 9108a2b..fb5399c 100644
--- a/test/test.html
+++ b/test/test.html
@@ -1,16 +1,12 @@
 <html>
   <head>
     <title>Async.js tests</title>
-    <!-- There are some awkward cross-dependencies here, nodeunit uses async
-         internally and the browser version of async will be added to the
-         global namespace. Because of this we only include nodeunit and it
-         runs tests against the async lib bundled with that. If you make
-         changes to async.js and want to test them you must also make a new
-         nodeunit build for now...
-
-         <script src="../lib/async.js"></script>
+    <!--
+      async must be included after nodeunit because nodeunit already uses
+      the async lib internally and will overwrite the version we want to test
     -->
     <script src="../deps/nodeunit.js"></script>
+    <script src="../lib/async.js"></script>
     <script>
       var _async = this.async;
       this.require = function () { return _async; };

-- 
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