envjs 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +113 -0
- data/bin/envjsrb +239 -0
- data/bin/jquery-1.2.6-test.js +33 -0
- data/bin/jquery-1.3.1-test.js +33 -0
- data/bin/jquery-1.3.2-test.js +106 -0
- data/bin/prototype-1.6.0.3-test.js +82 -0
- data/bin/prototype_1.6.0.3_tmpl.txt +27 -0
- data/bin/test-jquery.sh +58 -0
- data/bin/test-prototype.sh +54 -0
- data/bin/tidy +0 -0
- data/lib/envjs/env.js +21549 -0
- data/lib/envjs/net/cgi.rb +94 -0
- data/lib/envjs/net/file.rb +75 -0
- data/lib/envjs/net.rb +3 -0
- data/lib/envjs/options.rb +11 -0
- data/lib/envjs/runtime.rb +280 -0
- data/lib/envjs/tempfile.rb +24 -0
- data/lib/envjs.rb +23 -0
- data/test/call-load-test.js +15 -0
- data/test/debug.js +53 -0
- data/test/firebug/errorIcon.png +0 -0
- data/test/firebug/firebug.css +209 -0
- data/test/firebug/firebug.html +23 -0
- data/test/firebug/firebug.js +672 -0
- data/test/firebug/firebugx.js +10 -0
- data/test/firebug/infoIcon.png +0 -0
- data/test/firebug/warningIcon.png +0 -0
- data/test/fixtures/html/events.html +171 -0
- data/test/fixtures/html/iframe1.html +46 -0
- data/test/fixtures/html/iframe1a.html +46 -0
- data/test/fixtures/html/iframe2.html +45 -0
- data/test/fixtures/html/iframe3.html +28 -0
- data/test/fixtures/html/iframeN.html +57 -0
- data/test/fixtures/html/malformed.html +181 -0
- data/test/fixtures/html/scope.html +81 -0
- data/test/fixtures/html/trivial.html +19 -0
- data/test/fixtures/html/with_js.html +26 -0
- data/test/fixtures/images/icon-blue.png +0 -0
- data/test/fixtures/js/external_script.js +1 -0
- data/test/fixtures/js/script.js +1 -0
- data/test/fixtures/js/script_error.js +2 -0
- data/test/html/events.html +171 -0
- data/test/html/iframe1.html +46 -0
- data/test/html/iframe1a.html +46 -0
- data/test/html/iframe2.html +45 -0
- data/test/html/iframe3.html +30 -0
- data/test/html/iframeN.html +57 -0
- data/test/html/malformed.html +181 -0
- data/test/html/scope.html +87 -0
- data/test/html/script.js +1 -0
- data/test/html/trivial.html +19 -0
- data/test/html/with_js.html +26 -0
- data/test/index.html +328 -0
- data/test/java-prototype.js +9 -0
- data/test/primary-tests.js +24 -0
- data/test/prototype-test.js +13 -0
- data/test/qunit/qunit/qunit.css +17 -0
- data/test/qunit/qunit/qunit.js +997 -0
- data/test/qunit.js +61 -0
- data/test/specs/dist/env.spec.js +1534 -0
- data/test/specs/envjs.spec.css +46 -0
- data/test/specs/parser/html.js +31 -0
- data/test/specs/parser/spec.html +40 -0
- data/test/specs/parser/xml.js +31 -0
- data/test/specs/qunit.bdd.js +210 -0
- data/test/specs/qunit.css +17 -0
- data/test/specs/qunit.js +997 -0
- data/test/specs/template/spec-0.js +31 -0
- data/test/specs/template/spec-1.js +31 -0
- data/test/specs/template/spec.html +40 -0
- data/test/specs/window/css.js +23 -0
- data/test/specs/window/dialog.js +25 -0
- data/test/specs/window/document.js +23 -0
- data/test/specs/window/event.js +25 -0
- data/test/specs/window/history.js +34 -0
- data/test/specs/window/location.js +34 -0
- data/test/specs/window/navigator.js +71 -0
- data/test/specs/window/screen.js +42 -0
- data/test/specs/window/spec.html +48 -0
- data/test/specs/window/timer.js +26 -0
- data/test/specs/window/window.js +53 -0
- data/test/specs/xhr/spec.html +47 -0
- data/test/specs/xhr/xhr.js +31 -0
- data/test/test.js +10 -0
- data/test/unit/dom.js +44 -0
- data/test/unit/elementmembers.js +60 -0
- data/test/unit/events.js +195 -0
- data/test/unit/fixtures/external_script.js +1 -0
- data/test/unit/iframe.js +234 -0
- data/test/unit/multi-window.js +212 -0
- data/test/unit/nu.validator.js +34 -0
- data/test/unit/onload.js +90 -0
- data/test/unit/parser.js +121 -0
- data/test/unit/prototypecompat.js +22 -0
- data/test/unit/proxy.js +6 -0
- data/test/unit/scope.js +209 -0
- data/test/unit/timer.js +115 -0
- data/test/unit/window.js +41 -0
- data/test/vendor/jQuery/README +2 -0
- data/test/vendor/prototype-1.6.0.3.js +4320 -0
- metadata +164 -0
data/test/qunit.js
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
load("test/qunit/qunit/qunit.js");
|
2
|
+
|
3
|
+
(function(){
|
4
|
+
var assertion_index = 0;
|
5
|
+
|
6
|
+
var module_index = 0;
|
7
|
+
var module;
|
8
|
+
|
9
|
+
var test_index = 0;
|
10
|
+
var test;
|
11
|
+
|
12
|
+
QUnit.moduleStart = function(m,te) {
|
13
|
+
module = m;
|
14
|
+
module_index++;
|
15
|
+
};
|
16
|
+
|
17
|
+
QUnit.moduleDone = function(t,f,tx) {
|
18
|
+
var s = module_index + ". module "+t+": ";
|
19
|
+
if ( f ) {
|
20
|
+
s += f + " failure(s) in " + tx + " tests";
|
21
|
+
} else {
|
22
|
+
s += "all " + tx + " tests successful";
|
23
|
+
}
|
24
|
+
// print(s);
|
25
|
+
module = undefined;
|
26
|
+
};
|
27
|
+
|
28
|
+
QUnit.testStart = function(t) {
|
29
|
+
test = t;
|
30
|
+
test_index++;
|
31
|
+
};
|
32
|
+
|
33
|
+
QUnit.testDone = function(t) {
|
34
|
+
test = undefined;
|
35
|
+
}
|
36
|
+
|
37
|
+
QUnit.log = function(r,m) {
|
38
|
+
assertion_index++;
|
39
|
+
var test_string = "";
|
40
|
+
if ( module || test ) {
|
41
|
+
var test_string = "[";
|
42
|
+
if ( module ) {
|
43
|
+
test_string += module;
|
44
|
+
if ( test ) {
|
45
|
+
test_string += ": ";
|
46
|
+
}
|
47
|
+
}
|
48
|
+
if ( test ) {
|
49
|
+
test_string += test;
|
50
|
+
}
|
51
|
+
test_string += "] ";
|
52
|
+
}
|
53
|
+
var s = ( r ? "PASS (" : "FAIL (" ) + assertion_index + ") " + test_string + m;
|
54
|
+
print(s);
|
55
|
+
};
|
56
|
+
|
57
|
+
QUnit.done = function(f,t) {
|
58
|
+
print((t-f) + " Passed, " + f + " Failed, " + t + " Total Tests" );
|
59
|
+
};
|
60
|
+
|
61
|
+
})(QUnit);
|