3 <title>Test the Manifest media query
"display-mode" features.
</title>
4 <style type=
"text/css">
7 <script type=
"text/javascript" charset=
"utf-8">
9 testRunner.dumpAsText();
12 document.getElementById('results').innerHTML += m + '
<br>';
15 function testQueries()
19 "(display-mode: browser)",
20 "(display-mode: minimal-ui)",
21 "(display-mode: standalone)",
22 "(display-mode: fullscreen)",
24 for (var index=
0; index < queries.length; index++) {
25 log(
"Query "" + queries[index] +
"": " +
26 window.matchMedia(queries[index]).matches);
32 if (!window.internals)
35 log(
"------------- with 'browser' display mode -------------");
36 internals.settings.setDisplayModeOverride('browser');
39 log(
"------------- with 'minimal-ui' display mode -------------");
40 internals.settings.setDisplayModeOverride('minimal-ui');
43 log(
"------------- with 'standalone' display mode -------------");
44 internals.settings.setDisplayModeOverride('standalone');
47 log(
"------------- with 'fullscreen' display mode -------------");
48 internals.settings.setDisplayModeOverride('fullscreen');
54 <body onload=
"runTests()">
55 <p>Test the
<a href=
"http://w3c.github.io/manifest/#the-display-mode-media-feature">(display-mode: ...)
</a> media features.