projects
/
gitlive
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
82202e7
)
tests/soup.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 24 May 2012 22:36:19 +0000
(06:36 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 24 May 2012 22:36:19 +0000
(06:36 +0800)
tests/soup.js
patch
|
blob
|
history
diff --git
a/tests/soup.js
b/tests/soup.js
index
80c76b0
..
1da9546
100644
(file)
--- a/
tests/soup.js
+++ b/
tests/soup.js
@@
-68,8
+68,10
@@
XObject.extend(XMLHttpRequest,{
LOADING : 3,
DONE : 4,
LOADING : 3,
DONE : 4,
+ // readonly..
readyState : 0,
readyState : 0,
-
+ upload: null,
+
// request
open : function ( method, url, async, user, password) {
async = async || false;
// request
open : function ( method, url, async, user, password) {
async = async || false;
@@
-77,25
+79,38
@@
XObject.extend(XMLHttpRequest,{
password = password || false;
},
password = password || false;
},
- setRequestHeader : function ( header, value)
;
+ setRequestHeader : function ( header, value)
{
- readonly attribute XMLHttpRequestUpload upload;
- void send(data);
- void send(ArrayBuffer data);
- void send(Blob data);
- void send(Document data);
- void send(DOMString? data);
- void send(FormData data);
- void abort();
+ },
+ overrideMimeType : function ( mime)
+ {
+
+ },
+ send : function(data)
+ {
+
+ },
+ abort : function()
+ {
+
+ },
+
+ // response (all readonly...)
+ status : false,
+ statusText : false,
+ //readonly attribute any response
+ responseText : false,
+ responseXML : false,
+ responseType : false,
+
+ // response - read
+ getResponseHeader : function( header) {
+
+ },
+ getAllResponseHeaders : function ()
+ {
+
+ }
+
- // response
- readonly attribute unsigned short status;
- readonly attribute DOMString statusText;
- DOMString getResponseHeader(DOMString header);
- DOMString getAllResponseHeaders();
- void overrideMimeType(DOMString mime);
- attribute XMLHttpRequestResponseType responseType;
- readonly attribute any response;
- readonly attribute DOMString responseText;
- readonly attribute Document responseXML;
};
};