forked from jeresig/env-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New unit testing scripts and much more from Larry Lawjoskar http://gi…
…thub.com/Lawjoskar. Thanks Larry
- Loading branch information
Showing
24 changed files
with
4,468 additions
and
8,013 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
|
||
ENV = dist/env.rhino.js | ||
TEST = test/test.js | ||
|
||
JAR = java -jar rhino/js.jar | ||
|
||
test-rhino: | ||
@@${JAR} ${TEST} | ||
ant -emacs test | ||
|
||
run-rhino: | ||
echo "load('dist/env.rhino.js');window.location='test/index.html';" | ${JAR} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Init | ||
load("build/runtest/env.js"); | ||
|
||
window.onload = function(){ | ||
// Load the test runner | ||
load("dist/jquery.js","build/runtest/testrunner.js"); | ||
|
||
// Load the tests | ||
load( | ||
"test/unit/core.js", | ||
"test/unit/selector.js", | ||
"test/unit/event.js", | ||
"test/unit/fx.js", | ||
"test/unit/dimensions.js" | ||
|
||
// offset relies on window.open, which is currently unimplemented in env.js | ||
//"test/unit/offset.js", | ||
|
||
// these tests require hitting a server, so we will need some clever env.js | ||
// way of testing them | ||
//"test/unit/ajax.js" | ||
); | ||
|
||
// Display the results | ||
results(); | ||
}; | ||
|
||
window.location = "test/index.html"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Init | ||
load("build/runtest/env.js"); | ||
|
||
window.onload = function(){ | ||
// Load the test runner | ||
load("dist/jquery.js","build/runtest/testrunner.js"); | ||
|
||
// Load the tests | ||
load( | ||
"test/unit/core.js", | ||
"test/unit/selector.js", | ||
"test/unit/event.js", | ||
"test/unit/fx.js", | ||
"test/unit/dimensions.js", | ||
"test/unit/data.js" | ||
|
||
// offset relies on window.open, which is currently unimplemented in env.js | ||
//"test/unit/offset.js", | ||
|
||
// these tests require hitting a server, so we will need some clever env.js | ||
// way of testing them | ||
//"test/unit/ajax.js" | ||
); | ||
|
||
// Display the results | ||
results(); | ||
}; | ||
|
||
window.location = "test/index.html"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
# Usage: test-jquery.sh [version] | ||
# Currently supported versions: 1.2.6 & 1.3.1 | ||
# | ||
# This script will check out the jQuery development tree from Subversion if necessary, | ||
# massage the testing scripts as necessary, copy our latest version of env.js into place, | ||
# and then run the test scripts. | ||
|
||
if [ -n "$1" ]; then VERSION="$1"; else VERSION="1.2.6"; fi | ||
JQUERY_DIR="test/vendor/jQuery/$VERSION" | ||
|
||
if [ ! -d "$JQUERY_DIR" ]; then | ||
svn export http://jqueryjs.googlecode.com/svn/tags/$VERSION/ $JQUERY_DIR | ||
fi | ||
|
||
cp dist/env.rhino.js $JQUERY_DIR/build/runtest/env.js | ||
cp rhino/js.jar $JQUERY_DIR/build/js.jar | ||
cp bin/jquery-$VERSION-test.js $JQUERY_DIR/build/runtest/test.js | ||
|
||
cd $JQUERY_DIR | ||
make runtest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.