CORS: Added two new tests for allow-origin
authorOdin Hørthe Omdal <odinho@opera.com>
Fri, 08 Jun 2012 09:28:29 +0200
changeset 67 4dbb372543f8
parent 66 1d5c6bca565a
child 68 82bd29f4aafe
CORS: Added two new tests for allow-origin

They should be tested from a subdomain. So kinda wonky, need to make a better one later.
tests/cors/submitted/opera/staging/origin.htm
--- a/tests/cors/submitted/opera/staging/origin.htm	Fri Jun 01 18:36:45 2012 +0200
+++ b/tests/cors/submitted/opera/staging/origin.htm	Fri Jun 08 09:28:29 2012 +0200
@@ -85,5 +85,7 @@
 shouldFail(location.href)
 shouldFail(dirname(location.href))
 shouldFail(CROSSDOMAIN)
+shouldFail(location.host.replace(/^[^\.]+\./, ""))
+shouldFail("." + location.host.replace(/^[^\.]+\./, ""))
 
 </script>