From: qunfang.lin Date: Tue, 19 Jan 2021 02:55:04 +0000 (+0800) Subject: [common][cors][modify tests.xml&tests.full.xml to add tizeniot profile] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9daf932d3e99d5895e8cc95b2aaed45578ab6844;p=test%2Ftct%2Fweb%2Fapi.git [common][cors][modify tests.xml&tests.full.xml to add tizeniot profile] Change-Id: I50d055ece1c3a9ac9750b632d12042925c0a1f7f Signed-off-by: qunfang.lin --- diff --git a/common/tct-cors-w3c-tests/tests.full.xml b/common/tct-cors-w3c-tests/tests.full.xml index 9ca7a034b..a59cc3ea0 100755 --- a/common/tct-cors-w3c-tests/tests.full.xml +++ b/common/tct-cors-w3c-tests/tests.full.xml @@ -1,5 +1,5 @@ - + @@ -252,5 +252,130 @@ + + + COMMON + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_get.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_post.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_base.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + Using XMLHttpRequest a client-side Web application on http://hello-world.example can access this resource as follows + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_add_max_age.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + Optionally add a single Access-Control-Max-Age header with as value the amount of seconds the user agent is allowed to cache the result of the request + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_allow_credentials_true.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + If the resource supports credentials add a single Access-Control-Allow-Origin header, with the value of the Origin header as value, and add a single Access-Control-Allow-Credentials header with the literal string "true" as value + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_credentials_false_origin.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + Otherwise, add a single Access-Control-Allow-Origin header, with either the value of the Origin header or the literal string "*" as value + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_getResponseHeader_not_null.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + User agents must filter out all response headers other than those that are a simple response header or of which the field name is an ASCII case-insensitive match for one of the values of the Access-Control-Expose-Headers headers (if any), before exposing response headers to APIs defined in CORS API specifications + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_getResponseHeader_null.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + User agents must filter out all response headers other than those that are a simple response header or of which the field name is an ASCII case-insensitive match for one of the values of the Access-Control-Expose-Headers headers (if any), before exposing response headers to APIs defined in CORS API specifications + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_get_true.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + + + + + + + http://127.0.0.1:8080/opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_post_true.html + + + + + http://www.w3.org/TR/2012/WD-cors-20120403 + + + + + diff --git a/common/tct-cors-w3c-tests/tests.xml b/common/tct-cors-w3c-tests/tests.xml index 8ae0f1baa..e49c77632 100755 --- a/common/tct-cors-w3c-tests/tests.xml +++ b/common/tct-cors-w3c-tests/tests.xml @@ -1,5 +1,5 @@ - + @@ -112,5 +112,60 @@ + + + COMMON + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_get.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_post.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_base.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_add_max_age.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_allow_credentials_true.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_credentials_false_origin.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_getResponseHeader_not_null.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_getResponseHeader_null.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_get_true.html + + + + + /opt/tct-cors-w3c-tests/cors/cors_XMLHttpRequest_post_true.html + + + \ No newline at end of file