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

Commit

Permalink
Fix XMLHttpRequest test case
Browse files Browse the repository at this point in the history
  • Loading branch information
wkh237 committed Aug 18, 2016
1 parent aacc8d3 commit 1ec094d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test-xmlhttp.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ describe('request headers records should be cleared by open()', (report, done) =
let xhr = new XMLHttpRequest()
xhr.open('GET', `${TEST_SERVER_URL}/xhr-header`)
xhr.setRequestHeader('value', '100')
xhr.setRequestHeader('cache-control', 'no-store')
xhr.open('GET', `${TEST_SERVER_URL}/xhr-header`)
xhr.setRequestHeader('value', '200')
xhr.send()
xhr.onreadystatechange = function() {
if(this.readyState == 4) {
report(<Assert key="headers should be cleared by open()"
expect={'200'}
expect={"200"}
actual={this.response.value}/>)
done()
}
Expand Down

0 comments on commit 1ec094d

Please sign in to comment.