-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[appmanifest] Test
orientation
member (#24378)
* [appmanifest] Add orientation member test * [appmanifest] add portrait orientation test
- Loading branch information
1 parent
93caf8c
commit 1cb9dae
Showing
6 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
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
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
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
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
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
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 |