fix ports, 8081 and 8443 are not available on w3c test env http://www.w3.org/wiki/Testing/Requirements#The_Web_test_server_must_be_available_through_different_ports
--- a/tests/cors/submitted/opera/js/https.htm Sun Sep 23 19:03:06 2012 -0700
+++ b/tests/cors/submitted/opera/js/https.htm Mon Sep 24 13:54:43 2012 -0700
@@ -13,7 +13,7 @@
var crossdomain = "crosssite." + location.hostname
var url = "https://" + crossdomain + dirname(location.pathname)
- var ports = "8443"
+ var ports = PORTS
/*
* HTTPS
@@ -53,12 +53,12 @@
testit(url + 'resources/cors-headers.php',
'https crossdomain basic usage')
- testit('http://' + location.hostname + ":8081" + dirname(location.pathname) + 'resources/cors-headers.php',
+ testit('http://' + location.hostname + ":" + PORT + dirname(location.pathname) + 'resources/cors-headers.php',
'http same domain different port')
testit('https://' + location.hostname + ":" + ports + dirname(location.pathname) + 'resources/cors-headers.php',
'https same domain different port')
- testit('http://' + crossdomain + ":8081" + dirname(location.pathname) + 'resources/cors-headers.php',
+ testit('http://' + crossdomain + ":" + PORT + dirname(location.pathname) + 'resources/cors-headers.php',
'http crossdomain different port')
testit('https://' + crossdomain + ":" + ports + dirname(location.pathname) + 'resources/cors-headers.php',
'https crossdomain different port')
--- a/tests/cors/submitted/opera/js/support.js Sun Sep 23 19:03:06 2012 -0700
+++ b/tests/cors/submitted/opera/js/support.js Mon Sep 24 13:54:43 2012 -0700
@@ -18,8 +18,10 @@
/* This subdomain should point to this same location */
var SUBDOMAIN = 'www1'
var SUBDOMAIN2 = 'www2'
-var PORT = "8081"
-var PORTS = "8443"
+//var PORT = "8081"
+//var PORTS = "8443"
+var PORT = "81"
+var PORTS = "83"
/* Changes http://example.com/abc/def/cool.htm to http://www1.example.com/abc/def/ */
var CROSSDOMAIN = dirname(location.href)