Added runtest ant task (doesn't display results yet);
added href-attribute to DOMElement, fixed XMLHttpRequest to actually allow sync requests, fixed new Thread(new Runnable({run...})) to use new Thread({run:...})
This commit is contained in:
parent
4577cd4b16
commit
eb5529eac0
|
@ -164,6 +164,14 @@
|
||||||
<echo message="Documentation built." />
|
<echo message="Documentation built." />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="runtest">
|
||||||
|
<echo message="Running Automated Test Suite" />
|
||||||
|
<java jar="${JAR}" fork="true">
|
||||||
|
<arg value="${BUILD_DIR}/runtest/test.js" />
|
||||||
|
</java>
|
||||||
|
<echo message="Test Suite Finished" />
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
<delete dir="${DOCS_DIR}" />
|
<delete dir="${DOCS_DIR}" />
|
||||||
<delete dir="${TEST_DIR}" />
|
<delete dir="${TEST_DIR}" />
|
||||||
|
|
|
@ -442,6 +442,9 @@ var window = this;
|
||||||
get src() { return this.getAttribute("src") || ""; },
|
get src() { return this.getAttribute("src") || ""; },
|
||||||
set src(val) { return this.setAttribute("src",val); },
|
set src(val) { return this.setAttribute("src",val); },
|
||||||
|
|
||||||
|
get href() { return this.getAttribute("href") || ""; },
|
||||||
|
set href(val) { return this.setAttribute("href", val); },
|
||||||
|
|
||||||
get id() { return this.getAttribute("id") || ""; },
|
get id() { return this.getAttribute("id") || ""; },
|
||||||
set id(val) { return this.setAttribute("id",val); },
|
set id(val) { return this.setAttribute("id",val); },
|
||||||
|
|
||||||
|
@ -568,8 +571,8 @@ var window = this;
|
||||||
XMLHttpRequest.prototype = {
|
XMLHttpRequest.prototype = {
|
||||||
open: function(method, url, async, user, password){
|
open: function(method, url, async, user, password){
|
||||||
this.readyState = 1;
|
this.readyState = 1;
|
||||||
if (async)
|
if (async != undefined)
|
||||||
this.async = true;
|
this.async = async;
|
||||||
this.method = method || "GET";
|
this.method = method || "GET";
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.onreadystatechange();
|
this.onreadystatechange();
|
||||||
|
@ -651,9 +654,9 @@ var window = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.async)
|
if (this.async)
|
||||||
(new java.lang.Thread(new java.lang.Runnable({
|
(new java.lang.Thread({
|
||||||
run: makeRequest
|
run: makeRequest
|
||||||
}))).start();
|
})).start();
|
||||||
else
|
else
|
||||||
makeRequest();
|
makeRequest();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue