--- a/tests/cors/submitted/cors1.0/access-control-basic-allow-access-control-origin-header.html Mon Oct 15 15:34:03 2012 +0200
+++ b/tests/cors/submitted/cors1.0/access-control-basic-allow-access-control-origin-header.html Thu Nov 01 05:41:29 2012 -0400
@@ -2,6 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
+ <script src="support.js"></script>
<pre id='console'></pre>
<div id=log></div>
@@ -18,10 +19,9 @@
var accessControlBasicAllowAccessControlOriginHeader = function() {
var xhr = new XMLHttpRequest;
- var path = "/webappsec/tests/cors/submitted/cors1.0";
try {
- xhr.open("GET", "http://www1.w3c-test.org" + path + "/resources/access-control-basic-allow-access-control-origin-header.php", false);
+ xhr.open("GET", CROSSDOMAIN + "/resources/access-control-basic-allow-access-control-origin-header.php", false);
} catch(e) {
log("FAIL: Exception thrown. Cross-domain access is not allowed in 'open'. [" + e.message + "].");
assert_true(false);
--- a/tests/cors/submitted/cors1.0/access-control-basic-allow-star.html Mon Oct 15 15:34:03 2012 +0200
+++ b/tests/cors/submitted/cors1.0/access-control-basic-allow-star.html Thu Nov 01 05:41:29 2012 -0400
@@ -2,6 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
+ <script src="support.js"></script>
<pre id='console'></pre>
<div id=log></div>
@@ -19,10 +20,9 @@
var accessControlBasicAllowStar = function() {
var xhr = new XMLHttpRequest;
- var path = "/webappsec/tests/cors/submitted/cors1.0";
try {
- xhr.open("GET", "http://www1.w3c-test.org" + path + "/resources/access-control-basic-allow-star.php", false);
+ xhr.open("GET", CROSSDOMAIN + "/resources/access-control-basic-allow-star.php", false);
} catch(e) {
log("FAIL: Exception thrown. Cross-domain access is not allowed in 'open'. [" + e.message + "].");
--- a/tests/cors/submitted/cors1.0/access-control-basic-allow.html Mon Oct 15 15:34:03 2012 +0200
+++ b/tests/cors/submitted/cors1.0/access-control-basic-allow.html Thu Nov 01 05:41:29 2012 -0400
@@ -2,7 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
-
+ <script src="support.js"></script>
<pre id='console'></pre>
<div id=log></div>
@@ -17,10 +17,9 @@
var accessControlBasicAllow = function() {
var xhr = new XMLHttpRequest;
- var path = "/webappsec/tests/cors/submitted/cors1.0";
try {
- xhr.open("GET", "http://www1.w3c-test.org" + path + "/resources/access-control-basic-allow.php", false);
+ xhr.open("GET", CROSSDOMAIN + "/resources/access-control-basic-allow.php", false);
} catch(e) {
log("FAIL: Exception thrown. Cross-domain access is not allowed in 'open'. [" + e.message + "].");
--- a/tests/cors/submitted/cors1.0/access-control-basic-denied.html Mon Oct 15 15:34:03 2012 +0200
+++ b/tests/cors/submitted/cors1.0/access-control-basic-denied.html Thu Nov 01 05:41:29 2012 -0400
@@ -2,6 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
+ <script src="support.js"></script>
<pre id='console'></pre>
<div id=log></div>
@@ -19,10 +20,9 @@
var accessControlBasicDenied = function() {
var xhr = new XMLHttpRequest;
- var path = "/webappsec/tests/cors/submitted/cors1.0";
try {
- xhr.open("GET", "http://www1.w3c-test.org" + path + "/resources/access-control-basic-denied.php", false);
+ xhr.open("GET", CROSSDOMAIN + "/resources/access-control-basic-denied.php", false);
} catch(e) {
log("FAIL: Exception thrown. Cross-domain access is not allowed in 'open'. [" + e.message + "].");
assert_true(false);
--- a/tests/cors/submitted/cors1.0/access-control-basic-non-simple-allow.html Mon Oct 15 15:34:03 2012 +0200
+++ b/tests/cors/submitted/cors1.0/access-control-basic-non-simple-allow.html Thu Nov 01 05:41:29 2012 -0400
@@ -2,6 +2,7 @@
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
+ <script src="support.js"></script>
<pre id='console'></pre>
<div id=log></div>
@@ -16,10 +17,9 @@
var accessControlBasicNonSimpleAllow = function() {
var xhr = new XMLHttpRequest;
- var path = "/webappsec/tests/cors/submitted/cors1.0";
try {
- xhr.open("PUT", "http://www1.w3c-test.org" + path + "/resources/access-control-basic-non-get-allow.php", false);
+ xhr.open("PUT", CROSSDOMAIN + "/resources/access-control-basic-non-get-allow.php", false);
} catch(e) {
log("FAIL: Exception thrown. Cross-domain access is not allowed in 'open'. [" + e.message + "].");
return;