-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
03085c1
commit c99aa02
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...eb-platform/tests/appmanifest/orientation-member/orientation-member-landscape-manual.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<title>Test that orientation member with landscape value is supported</title> | ||
<link rel="help" href="https://w3c.github.io/manifest#orientation-member" /> | ||
<link rel="manifest" href="orientation-member-landscape.webmanifest" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<h1>Testing support for orientation member with "landscape" value</h1> | ||
<style> | ||
@media all and (orientation: landscape) { | ||
body { | ||
background-color: green; | ||
} | ||
} | ||
@media all and (orientation: portrait) { | ||
body { | ||
background-color: red; | ||
} | ||
} | ||
</style> | ||
<p> | ||
Please set the phone orientation to portrait. | ||
</p> | ||
<p> | ||
To pass, after installing the display orientation must be landscape and the background must be green. | ||
</p> |
4 changes: 4 additions & 0 deletions
4
...eb-platform/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"display": "standalone", | ||
"orientation": "landscape" | ||
} |
1 change: 1 addition & 0 deletions
1
...orm/tests/appmanifest/orientation-member/orientation-member-landscape.webmanifest.headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Content-Type: application/manifest+json; charset=utf-8 |
24 changes: 24 additions & 0 deletions
24
...web-platform/tests/appmanifest/orientation-member/orientation-member-portrait-manual.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<title>Test that orientation member with portrait value is supported</title> | ||
<link rel="help" href="https://w3c.github.io/manifest#orientation-member" /> | ||
<link rel="manifest" href="orientation-member-portrait.webmanifest" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<h1>Testing support for orientation member with "portrait" value</h1> | ||
<style> | ||
@media all and (orientation: portrait) { | ||
body { | ||
background-color: green; | ||
} | ||
} | ||
@media all and (orientation: landscape) { | ||
body { | ||
background-color: red; | ||
} | ||
} | ||
</style> | ||
<p> | ||
Please set the phone orientation to landscape. | ||
</p> | ||
<p> | ||
To pass, after installing the display orientation must be portrait and the background must be green. | ||
</p> |
4 changes: 4 additions & 0 deletions
4
...web-platform/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"display": "standalone", | ||
"orientation": "portrait" | ||
} |
1 change: 1 addition & 0 deletions
1
...form/tests/appmanifest/orientation-member/orientation-member-portrait.webmanifest.headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Content-Type: application/manifest+json; charset=utf-8 |