Browse Source

Fix XMLHttpRequest test case

Ben Hsieh 7 years ago
parent
commit
1ec094d45d
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      test/test-xmlhttp.js

+ 2
- 1
test/test-xmlhttp.js View File

@@ -149,13 +149,14 @@ describe('request headers records should be cleared by open()', (report, done) =
149 149
   let xhr = new XMLHttpRequest()
150 150
   xhr.open('GET', `${TEST_SERVER_URL}/xhr-header`)
151 151
   xhr.setRequestHeader('value', '100')
152
+  xhr.setRequestHeader('cache-control', 'no-store')
152 153
   xhr.open('GET', `${TEST_SERVER_URL}/xhr-header`)
153 154
   xhr.setRequestHeader('value', '200')
154 155
   xhr.send()
155 156
   xhr.onreadystatechange = function() {
156 157
     if(this.readyState == 4) {
157 158
       report(<Assert key="headers should be cleared by open()"
158
-        expect={'200'}
159
+        expect={"200"}
159 160
         actual={this.response.value}/>)
160 161
       done()
161 162
     }