From 5a69a61fb8a92628205def03abe4233ba6aa49b3 Mon Sep 17 00:00:00 2001 From: Mike Jackson Date: Thu, 16 Sep 2021 17:17:04 -0700 Subject: [PATCH] dwpas: Add tentative WPT tests for protocol_handler Adding manual WPT tests for new protocol_handler field. https://github.com/w3c/manifest/issues/846 Bug: 1019239 Change-Id: I49bbcae9ff1925fb2799d1462fca936147f2e118 --- ...ocol_handlers-member-manual.tentative.html | 27 +++++++++++++++++++ ...p-for-empty-protocol-manual.tentative.html | 27 +++++++++++++++++++ ...member-skip-for-empty-protocol.webmanifest | 14 ++++++++++ ...kip-for-empty-protocol.webmanifest.headers | 1 + ...r-skip-for-empty-url-manual.tentative.html | 27 +++++++++++++++++++ ...lers-member-skip-for-empty-url.webmanifest | 14 ++++++++++ ...ber-skip-for-empty-url.webmanifest.headers | 1 + ...skip-for-invalid-url-manual.tentative.html | 27 +++++++++++++++++++ ...rs-member-skip-for-invalid-url.webmanifest | 14 ++++++++++ ...r-skip-for-invalid-url.webmanifest.headers | 1 + ...for-out-of-scope-url-manual.tentative.html | 27 +++++++++++++++++++ ...mber-skip-for-out-of-scope-url.webmanifest | 14 ++++++++++ ...p-for-out-of-scope-url.webmanifest.headers | 1 + .../protocol_handlers-member.webmanifest | 9 +++++++ ...otocol_handlers-member.webmanifest.headers | 1 + 15 files changed, 205 insertions(+) create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-manual.tentative.html create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol-manual.tentative.html create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest.headers create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url-manual.tentative.html create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest.headers create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url-manual.tentative.html create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest.headers create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url-manual.tentative.html create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest.headers create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest create mode 100644 appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest.headers diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-manual.tentative.html b/appmanifest/protocol_handlers-member/protocol_handlers-member-manual.tentative.html new file mode 100644 index 00000000000000..c5e6a8ed79460d --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-manual.tentative.html @@ -0,0 +1,27 @@ + +Test that protocol_handlers member is supported + +

Testing support for protocol_handlers member

+ + +

+ To pass, when launching the application via web+testing://test-url/, + the background color must be green. +

diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol-manual.tentative.html b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol-manual.tentative.html new file mode 100644 index 00000000000000..9f0c874fba5321 --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol-manual.tentative.html @@ -0,0 +1,27 @@ + +Test that protocol_handlers items with empty protocol are skipped + +

Test that protocol_handlers items with empty protocol are skipped

+ + +

+ To pass, when launching the application via web+testing://test-url/, + the background color must be green. +

diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest new file mode 100644 index 00000000000000..6cd35336d3da97 --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "Protocol_handlers Empty Protocol Test", + "scope": "/", + "protocol_handlers": [ + { + "protocol": "web+testing", + "url": "protocol_handlers-member-skip-for-empty-protocol-manual.tentative.html?value=%s" + }, + { + "protocol": "", + "url": "protocol_handlers-member-skip-for-empty-protocol-manual.tentative.html?value=%s" + } + ] +} diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest.headers b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest.headers new file mode 100644 index 00000000000000..2bab061d43ab9e --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-protocol.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url-manual.tentative.html b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url-manual.tentative.html new file mode 100644 index 00000000000000..0ccaff6e43eeff --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url-manual.tentative.html @@ -0,0 +1,27 @@ + +Test that protocol_handlers items with empty url are skipped + +

Test that protocol_handlers items with empty url are skipped

+ + +

+ To pass, when launching the application via web+testing://test-url/, + the background color must be green. +

diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest new file mode 100644 index 00000000000000..e8509bc3cbbc73 --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "Protocol_handlers Empty URL Test", + "scope": "/", + "protocol_handlers": [ + { + "protocol": "web+testing", + "url": "protocol_handlers-member-skip-for-empty-url-manual.tentative.html?value=%s" + }, + { + "protocol": "web+empty", + "url": "" + } + ] +} diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest.headers b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest.headers new file mode 100644 index 00000000000000..2bab061d43ab9e --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-empty-url.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url-manual.tentative.html b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url-manual.tentative.html new file mode 100644 index 00000000000000..783a90bf7a5604 --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url-manual.tentative.html @@ -0,0 +1,27 @@ + +Test that protocol_handlers items with invalid url are skipped + +

Test that protocol_handlers items with invalid url are skipped

+ + +

+ To pass, when launching the application via web+testing://test-url/, + the background color must be green. +

diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest new file mode 100644 index 00000000000000..b7d431a05b01fd --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "Protocol_handlers Invalid URL Test", + "scope": "/", + "protocol_handlers": [ + { + "protocol": "web+testing", + "url": "protocol_handlers-member-skip-for-invalid-url-manual.tentative.html?value=%s" + }, + { + "protocol": "web+invalid", + "url": "http://foo:660000/?%s" + } + ] +} diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest.headers b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest.headers new file mode 100644 index 00000000000000..2bab061d43ab9e --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-invalid-url.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url-manual.tentative.html b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url-manual.tentative.html new file mode 100644 index 00000000000000..aa23744f86e9f5 --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url-manual.tentative.html @@ -0,0 +1,27 @@ + +Test that protocol_handlers items with out of scope url are skipped + +

Test that protocol_handlers items with out of scope url are skipped

+ + +

+ To pass, when launching the application via web+testing://test-url/, + the background color must be green. +

diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest new file mode 100644 index 00000000000000..70e2ff9df52b2d --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest @@ -0,0 +1,14 @@ +{ + "name": "Protocol_handlers Out of Scope URL Test", + "scope": "/", + "protocol_handlers": [ + { + "protocol": "web+testing", + "url": "protocol_handlers-member-skip-for-out-of-scope-url-manual.tentative.html?value=%s" + }, + { + "protocol": "web+outofscope", + "url": "https://foo.com/q=%s" + } + ] +} diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest.headers b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest.headers new file mode 100644 index 00000000000000..2bab061d43ab9e --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member-skip-for-out-of-scope-url.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest b/appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest new file mode 100644 index 00000000000000..993e7c2e06e851 --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest @@ -0,0 +1,9 @@ +{ + "name": "Protocol_handlers test", + "scope": "/", + "protocol_handlers": [ + { + "protocol": "web+testing", + "url": "protocol_handlers-member-manual.html?value=%s" + }] +} diff --git a/appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest.headers b/appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest.headers new file mode 100644 index 00000000000000..2bab061d43ab9e --- /dev/null +++ b/appmanifest/protocol_handlers-member/protocol_handlers-member.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8