CORS: basic.htm, WebKit+IE cannot reuse XHR object, must make new
authorOdin Hørthe Omdal <odinho@opera.com>
Wed, 21 Nov 2012 17:20:18 +0100
changeset 84 9471bbe93db1
parent 83 4ef672190e0a
child 85 1a7290f2e014
CORS: basic.htm, WebKit+IE cannot reuse XHR object, must make new
tests/cors/submitted/opera/staging/basic.htm
--- a/tests/cors/submitted/opera/staging/basic.htm	Wed Nov 21 17:14:07 2012 +0100
+++ b/tests/cors/submitted/opera/staging/basic.htm	Wed Nov 21 17:20:18 2012 +0100
@@ -27,13 +27,12 @@
                 assert_true(client.response.indexOf("hest_er_best") != -1, "Got response");
             else
                 assert_false(!!client.response, "Got CORS-disallowed response");
-            console.log("dis worked");
 
+            client = new XMLHttpRequest();
             client.open("GET", url + "resources/cors-makeheader.php?get_value=hest_er_best&" + this.count);
             client.onreadystatechange = this.step_func(function(e) {
                 // Second request, test that it passes with the allowed-origin
                 if (client.readyState < 4) return;
-                console.log(client.response);
                 assert_true(client.response.indexOf("hest_er_best") != -1, "Got CORS-allowed response");
                 this.done();
             });