Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit bb126fd

Browse files
committed
Change XMLHttpRequest test cases
1 parent 7c2782a commit bb126fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test-xmlhttp.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ describe('request headers records should be cleared by open()', (report, done) =
156156
if(this.readyState == 4) {
157157
report(<Assert key="headers should be cleared by open()"
158158
expect={'200'}
159-
actual={this.response['value']}/>)
159+
actual={this.response.value}/>)
160160
done()
161161
}
162162
}
@@ -239,11 +239,10 @@ describe('upload progress event test', (report, done) => {
239239
}
240240
xhr.onreadystatechange = function() {
241241
if(this.readyState == XMLHttpRequest.DONE) {
242-
console.log(xhr)
243242
report(
244243
<Assert key="reponse should correct"
245244
expect={time}
246-
actual={parseInt(xhr.response.time)}/>,
245+
actual={Math.floor(xhr.response.time)}/>,
247246
<Assert key="responseType should correct"
248247
expect={'json'}
249248
actual={xhr.responseType}/>)

0 commit comments

Comments
 (0)