From c99aa02beb58d0071262c7d2660d2e20c43f9e05 Mon Sep 17 00:00:00 2001 From: Christian Liebel Date: Thu, 2 Jul 2020 19:21:07 +0000 Subject: [PATCH] Bug 1649081 [wpt PR 24378] - Test `orientation` member, a=testonly Automatic update from web-platform-tests [appmanifest] Test `orientation` member (#24378) * [appmanifest] Add orientation member test * [appmanifest] add portrait orientation test -- wpt-commits: 1cb9daef513ee0c7e82a6689a6248946d0c580c0 wpt-pr: 24378 --- .../orientation-member-landscape-manual.html | 24 +++++++++++++++++++ .../orientation-member-landscape.webmanifest | 4 ++++ ...ation-member-landscape.webmanifest.headers | 1 + .../orientation-member-portrait-manual.html | 24 +++++++++++++++++++ .../orientation-member-portrait.webmanifest | 4 ++++ ...tation-member-portrait.webmanifest.headers | 1 + 6 files changed, 58 insertions(+) create mode 100644 testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape-manual.html create mode 100644 testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest create mode 100644 testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest.headers create mode 100644 testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait-manual.html create mode 100644 testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest create mode 100644 testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest.headers diff --git a/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape-manual.html b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape-manual.html new file mode 100644 index 0000000000000..acd22c00cd2f1 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape-manual.html @@ -0,0 +1,24 @@ + +Test that orientation member with landscape value is supported + + + +

Testing support for orientation member with "landscape" value

+ +

+ Please set the phone orientation to portrait. +

+

+ To pass, after installing the display orientation must be landscape and the background must be green. +

diff --git a/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest new file mode 100644 index 0000000000000..911b02a2f09a8 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest @@ -0,0 +1,4 @@ +{ + "display": "standalone", + "orientation": "landscape" +} diff --git a/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest.headers b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest.headers new file mode 100644 index 0000000000000..2bab061d43ab9 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8 diff --git a/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait-manual.html b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait-manual.html new file mode 100644 index 0000000000000..2c7c996e2a0b4 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait-manual.html @@ -0,0 +1,24 @@ + +Test that orientation member with portrait value is supported + + + +

Testing support for orientation member with "portrait" value

+ +

+ Please set the phone orientation to landscape. +

+

+ To pass, after installing the display orientation must be portrait and the background must be green. +

diff --git a/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest new file mode 100644 index 0000000000000..352489eff76ed --- /dev/null +++ b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest @@ -0,0 +1,4 @@ +{ + "display": "standalone", + "orientation": "portrait" +} diff --git a/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest.headers b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest.headers new file mode 100644 index 0000000000000..2bab061d43ab9 --- /dev/null +++ b/testing/web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest.headers @@ -0,0 +1 @@ +Content-Type: application/manifest+json; charset=utf-8