Skip to content

Commit

Permalink
Merge branch 'master' of github.com:thatcher/env-js
Browse files Browse the repository at this point in the history
  • Loading branch information
client9 committed Apr 14, 2010
2 parents 9194bfa + 1774c8a commit 451b60b
Show file tree
Hide file tree
Showing 119 changed files with 116 additions and 141 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
dist/env.*.*.*.js
dist/env.rhino.*.*.*.js
dist/env-js.*.jar
dist/*
*~
rhino/build
jshost
Expand Down
6 changes: 3 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ Getting the code:

== contributing tests with patches ==

Each module has a spec in env-js/test/spec. Most tests will run whether you
Each module has a spec in env-js/specs. Most tests will run whether you
load them in the file:, http:, or https:, though once you get to xhr.js
the tests will fail for the 'file:' protocol in firefox because of
permissions. To run xhr.js and window.js specs, copy settings.js to
local_settings.js and run a local server to satisfy those urls included in
the spec.js;
local_settings.js, update it, and run a local server to satisfy
those urls included in the spec.js;


== platforms ==
Expand Down
24 changes: 13 additions & 11 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
location="${PREFIX}/docs"
description="Folder for docs target" />
<property name="TEST_DIR"
location="${PREFIX}/test"
location="${basedir}/specs"
description="Folder for test target" />
<property name="DIST_DIR"
location="${PREFIX}/"
Expand Down Expand Up @@ -174,7 +174,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/platform/rhino.js"/>
<arg value="${TEST_DIR}/platform/rhino.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -211,7 +211,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/console/boot.js"/>
<arg value="${TEST_DIR}/console/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -274,7 +274,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/dom/boot.js"/>
<arg value="${TEST_DIR}/dom/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -321,7 +321,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/event/boot.js"/>
<arg value="${TEST_DIR}/event/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -358,7 +358,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/timer/boot.js"/>
<arg value="${TEST_DIR}/timer/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand All @@ -382,6 +382,7 @@
<fileset dir="${SRC_DIR}" includes="common/__trim__.js" />
<fileset dir="${SRC_DIR}" includes="common/__extend__.js" />
<fileset dir="${SRC_DIR}" includes="common/__setArray__.js" />
<fileset dir="${SRC_DIR}" includes="html/cookie.js" />
<fileset dir="${SRC_DIR}" includes="html/document.js" />
<fileset dir="${SRC_DIR}" includes="html/htmlevents.js" />
<fileset dir="${SRC_DIR}" includes="html/keyboardevents.js" />
Expand Down Expand Up @@ -429,6 +430,7 @@
<fileset dir="${SRC_DIR}" includes="html/param.js" />
<fileset dir="${SRC_DIR}" includes="html/script.js" />
<fileset dir="${SRC_DIR}" includes="html/select.js" />
<fileset dir="${SRC_DIR}" includes="html/span.js" />
<fileset dir="${SRC_DIR}" includes="html/style.js" />
<fileset dir="${SRC_DIR}" includes="html/table.js" />
<fileset dir="${SRC_DIR}" includes="html/tbody-thead-tfoot.js" />
Expand All @@ -453,7 +455,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/html/boot.js"/>
<arg value="${TEST_DIR}/html/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -499,7 +501,7 @@
failonerror="true">
<arg value="-opt"/>
<arg value="-1"/>
<arg value="test/specs/parser/boot.js"/>
<arg value="${TEST_DIR}/parser/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -543,7 +545,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/xhr/boot.js"/>
<arg value="${TEST_DIR}/xhr/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -586,7 +588,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/css/boot.js"/>
<arg value="${TEST_DIR}/css/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down Expand Up @@ -632,7 +634,7 @@
<java fork="true"
jar="${RHINO_JAR}"
failonerror="true">
<arg value="test/specs/window/boot.js"/>
<arg value="${TEST_DIR}/window/boot.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
<jvmarg value="-Xmx256m"/>
</java>
Expand Down
3 changes: 2 additions & 1 deletion settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@

var SETTINGS = {
BASE_URI : 'file:///mnt/repos/thatcher/env-js/',
AJAX_BASE: 'http://github.com/thatcher/env-js/raw/master/'
AJAX_BASE: 'http://github.com/thatcher/env-js/raw/master/',
LOCAL_PORT: '8080'
};
6 changes: 3 additions & 3 deletions test/specs/console/boot.js → specs/console/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
load('dist/platform/core.js');
load('dist/platform/rhino.js');
load('dist/console.js');
load('test/specs/console/spec.js');
load('specs/console/spec.js');
start();

2 changes: 1 addition & 1 deletion test/specs/console/index.html → specs/console/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs Console Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/css/boot.js → specs/css/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
Expand All @@ -14,6 +14,6 @@ load('dist/dom.js');
load('dist/event.js');
load('dist/html.js');
load('dist/css.js');
load('test/specs/css/spec.js');
load('specs/css/spec.js');
start();

2 changes: 1 addition & 1 deletion test/specs/css/index.html → specs/css/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs CSS Spec</span>
</h1>
<h2 id="qunit-banner"></h2>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/dom/boot.js → specs/dom/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
load('dist/platform/rhino.js');
load('dist/console.js');
load('dist/dom.js');
load('test/specs/dom/spec.js');
load('specs/dom/spec.js');
start();

2 changes: 1 addition & 1 deletion test/specs/dom/index.html → specs/dom/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs DOM Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/event/boot.js → specs/event/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
load('dist/platform/rhino.js');
load('dist/console.js');
load('dist/dom.js');
load('dist/event.js');
load('test/specs/event/spec.js');
load('specs/event/spec.js');
start();

2 changes: 1 addition & 1 deletion test/specs/event/index.html → specs/event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs Event Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion test/specs/frame/proxy.html → specs/frame/proxy.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs Proxy Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/html/boot.js → specs/html/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
Expand All @@ -13,6 +13,6 @@ load('dist/console.js');
load('dist/dom.js');
load('dist/event.js');
load('dist/html.js');
load('test/specs/html/spec.js');
load('specs/html/spec.js');
start();

2 changes: 1 addition & 1 deletion test/specs/html/index.html → specs/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs HTML Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
3 changes: 2 additions & 1 deletion test/specs/html/spec.js → specs/html/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ QUnit.module('html');

test('HTML Interfaces Available', function(){

expect(52);
expect(53);
ok(HTMLDocument, 'HTMLDocument defined');
ok(HTMLElement, 'HTMLElement defined');
ok(HTMLCollection, 'HTMLCollection defined');
Expand Down Expand Up @@ -42,6 +42,7 @@ test('HTML Interfaces Available', function(){
ok(HTMLParamElement, 'HTMLParamElement defined');
ok(HTMLScriptElement, 'HTMLScriptElement defined');
ok(HTMLSelectElement, 'HTMLSelectElement defined');
ok(HTMLSpanElement, 'HTMLSpanElement defined');
ok(HTMLStyleElement, 'HTMLStyleElement defined');
ok(HTMLTableElement, 'HTMLTableElement defined');
ok(HTMLTableSectionElement, 'HTMLTableSectionElement defined');
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/parser/boot.js → specs/parser/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
Expand All @@ -15,6 +15,6 @@ load('dist/event.js');
load('dist/html.js');
load('dist/timer.js');
load('dist/parser.js');
load('test/specs/parser/spec.js');
load('specs/parser/spec.js');
start();
Envjs.wait();
2 changes: 1 addition & 1 deletion test/specs/parser/index.html → specs/parser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs Parser Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions test/specs/platform/rhino.js → specs/platform/rhino.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions test/specs/timer/boot.js → specs/timer/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
* @author thatcher
*/

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');
QUnit.init();

load('dist/platform/core.js');
load('dist/platform/rhino.js');
load('dist/console.js');
load('dist/timer.js');
load('test/specs/timer/spec.js');
load('specs/timer/spec.js');

start();
Envjs.wait();
2 changes: 1 addition & 1 deletion test/specs/timer/index.html → specs/timer/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</head>
<body id="body">
<h1 id="qunit-header">
<img src="../../fixtures/images/icon-green.png"/>
<img src="../fixtures/images/icon-green.png"/>
<span>Envjs Timer Spec</span>
</h1>
<h2 id="qunit-userAgent"></h2>
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions test/specs/window/boot.js → specs/window/boot.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ load('dist/parser.js');
load('dist/xhr.js');
load('dist/window.js');

load('test/specs/qunit.js');
load('test/specs/env.qunit.js');
load('specs/qunit.js');
load('specs/env.qunit.js');

load('local_settings.js');
load('test/specs/window/spec.js');
load('specs/window/spec.js');


location = 'test/specs/window/index.html';
location = 'specs/window/index.html';
Envjs.wait();
Loading

0 comments on commit 451b60b

Please sign in to comment.