~chromium-team/chromium-browser/artful-beta

« back to all changes in this revision

Viewing changes to debian/tests/data/HTML5test/backend/templates/saved.html

  • Committer: Olivier Tilloy
  • Date: 2017-05-23 04:54:32 UTC
  • Revision ID: olivier.tilloy@canonical.com-20170523045432-iwy8f0mwora5q8bw
Remove stale autopkgtests and add a couple of new ones based on chromium's new headless mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE html>
 
2
<html>
 
3
        <head>
 
4
                <title>HTML5test - How well does your browser support HTML5?</title>
 
5
 
 
6
                <meta charset="UTF-8">
 
7
                <meta name="apple-mobile-web-app-capable" content="yes">
 
8
                <meta name="apple-mobile-web-app-status-bar-style" content="black">
 
9
                <meta name="viewport" content="width=device-width, initial-scale=1.0">
 
10
 
 
11
                <link rel="stylesheet" href="/css/main.css" type="text/css">
 
12
 
 
13
                <script src='/scripts/base.js' type='text/javascript'></script>
 
14
                <script src='/scripts/<?php echo $release; ?>/data.js' type='text/javascript'></script>
 
15
                <script src='/scripts/<?php echo $release; ?>/engine.js' type='text/javascript'></script>
 
16
                <script src='/scripts/reporting.js' type='text/javascript'></script>
 
17
 
 
18
                <meta name="application-name" content="HTML5test"/>
 
19
 
 
20
                <link rel="apple-touch-icon" sizes="57x57" href="/images/icons/apple-touch-icon-57x57.png" />
 
21
                <link rel="apple-touch-icon" sizes="114x114" href="/images/icons/apple-touch-icon-114x114.png" />
 
22
                <link rel="apple-touch-icon" sizes="72x72" href="/images/icons/apple-touch-icon-72x72.png" />
 
23
                <link rel="apple-touch-icon" sizes="144x144" href="/images/icons/apple-touch-icon-144x144.png" />
 
24
                <link rel="apple-touch-icon" sizes="60x60" href="/images/icons/apple-touch-icon-60x60.png" />
 
25
                <link rel="apple-touch-icon" sizes="120x120" href="/images/icons/apple-touch-icon-120x120.png" />
 
26
                <link rel="apple-touch-icon" sizes="76x76" href="/images/icons/apple-touch-icon-76x76.png" />
 
27
                <link rel="apple-touch-icon" sizes="152x152" href="/images/icons/apple-touch-icon-152x152.png" />
 
28
                <link rel="icon" type="image/png" href="/images/icons/favicon-16x16.png" sizes="16x16" />
 
29
                <link rel="icon" type="image/png" href="/images/icons/favicon-32x32.png" sizes="32x32" />
 
30
                <link rel="icon" type="image/png" href="/images/icons/favicon-96x96.png" sizes="96x96" />
 
31
                <link rel="icon" type="image/png" href="/images/icons/favicon-160x160.png" sizes="160x160" />
 
32
                <link rel="icon" type="image/png" href="/images/icons/favicon-196x196.png" sizes="196x196" />
 
33
                <meta name="msapplication-TileColor" content="#0092bf" />
 
34
                <meta name="msapplication-TileImage" content="/images/icons/mstile-144x144.png" />
 
35
        </head>
 
36
 
 
37
        <body>
 
38
                <div class='header'>
 
39
                        <h1><span>HTML<strong>5</strong>test</span> <em>how well does your browser support HTML5?</em></h1>
 
40
                        <div class='navigation'>
 
41
                                <ul class='left'>
 
42
                                        <li><a href='/index.html'>Your browser</a></li>
 
43
                                        <li class='selected'><a href='/results/desktop.html'>Other browsers</a></li>
 
44
                                        <li><a href='/compare/browser/index.html'>Compare</a></li>
 
45
                                </ul>
 
46
                                <ul class='right'>
 
47
                                        <li><a href='http://blog.html5test.com/'>News</a></li>
 
48
                                        <li><a href='/devicelab'>Device Lab</a></li>
 
49
                                        <li><a href='/about.html'>About the test</a></li>
 
50
                                </ul>
 
51
                        </div>
 
52
                </div>
 
53
 
 
54
                <?php if (isset($legacy) && $legacy): ?>
 
55
                <div class='page'>
 
56
                        <div class='message'>
 
57
                                The following results were created in an older version of the test suite. If you test the same browser
 
58
                                on the current site, it may get a different score and different results.
 
59
                        </div>
 
60
                </div>
 
61
                <?php endif; ?>
 
62
 
 
63
 
 
64
                <div class='page saved'>
 
65
                        <div id='contents' class='column'>
 
66
                                <div id='score'></div>
 
67
                                <div id='results'></div>
 
68
 
 
69
                                <div class='footer'>
 
70
                                        <div>
 
71
                                                <div class='copyright'>
 
72
                                                        <p>
 
73
                                                                Created by Niels Leenheer.<br>
 
74
                                                                Please note that the HTML5 test is not affiliated with the W3C or the HTML5 working group.<br>
 
75
                                                                HTML5 Logo by <a href="http://www.w3.org/"><abbr title="World Wide Web Consortium">W3C</abbr></a>.
 
76
                                                                Browser detection by <a href='http://whichbrowser.net'>WhichBrowser</a>.
 
77
                                                        </p>
 
78
 
 
79
                                                        <div id='cloudvps'>
 
80
                                                                <a href="http://www.cloudvps.nl" target="_blank" ><b>CloudVPS</b><br> High Availability<br> Cloud Servers</a>
 
81
                                                        </div>
 
82
                                                </div>
 
83
                                        </div>
 
84
                                </div>
 
85
                        </div>
 
86
                </div>
 
87
 
 
88
 
 
89
                <script>
 
90
                <!--
 
91
 
 
92
                        <?php if (isset($one) && $one != ''): ?>
 
93
                                var r = <?php echo $one; ?>;
 
94
                                var m = new Metadata(tests);
 
95
 
 
96
                                var c = {};
 
97
 
 
98
                                if (<?php echo $release; ?> < 8) {
 
99
                                        c.score = r.score;
 
100
                                        c.maximum = r.maximum;
 
101
                                } else {
 
102
                                        c  = new Calculate(r, m.data);
 
103
                                }
 
104
 
 
105
                                var container = document.getElementById('score');
 
106
                                container.innerHTML =
 
107
                                        "<div class='pointsPanel'>" +
 
108
                                        "<h2><span>This browser scored</span> <strong>" + c.score + "</strong> <span>out of " + c.maximum + " points</span></h2>" +
 
109
                                        "</div>";
 
110
 
 
111
                                var useragent = document.createElement('div');
 
112
                                useragent.className = 'useragent';
 
113
                                container.appendChild(useragent);
 
114
 
 
115
                                useragent.innerHTML =
 
116
                                        "<p>This score was recorded using " + r.humanReadable + "</p>" +
 
117
                                        "<div class='expandWidget'>▼</div>" +
 
118
                                        "<div class='expandedPanel'>" +
 
119
                                        "<table><tbody>" +
 
120
                                        "<tr><th>Useragent:</th><td>" + r.useragent + "</td></tr>" +
 
121
                                        (r.deviceHeight > 0 && r.deviceWidth > 0 ? "<tr><th>Screen size:</th><td>" + r.deviceWidth + " x " + r.deviceHeight + " px</td></tr>" : "") +
 
122
                                        "</tbody></table>" +
 
123
                                        "</div>";
 
124
 
 
125
                                useragent.addEventListener('click', function() {
 
126
                                        if (useragent.className.indexOf(' expanded') == -1)
 
127
                                                useragent.className += ' expanded';
 
128
                                        else
 
129
                                                useragent.className = useragent.className.replace(' expanded', '');
 
130
                                }, true);
 
131
 
 
132
 
 
133
                                var wrapper = document.createElement('div');
 
134
                                wrapper.className = 'wrapper';
 
135
                                container.appendChild(wrapper);
 
136
 
 
137
                                var buttons = document.createElement('div');
 
138
                                buttons.className = 'buttons';
 
139
                                wrapper.appendChild(buttons);
 
140
 
 
141
                                var button = document.createElement('a');
 
142
                                button.className = 'button latest';
 
143
                                button.href = '/results/related/' + r.fingerprint + '.html';
 
144
                                button.innerHTML = '<span>Related results...</span>';
 
145
                                buttons.appendChild(button);
 
146
 
 
147
                                var button = document.createElement('a');
 
148
                                button.className = 'button compare';
 
149
                                button.href = '/compare/browser/' + r.id + '.html';
 
150
                                button.innerHTML = '<span>Compare to...</span>';
 
151
                                buttons.appendChild(button);
 
152
 
 
153
                                var button = document.createElement('span');
 
154
                                button.className = 'button share';
 
155
                                button.innerHTML = '<span>Share</span>';
 
156
                                buttons.appendChild(button);
 
157
 
 
158
                                new Share(button, {
 
159
                                        score:          c.score,
 
160
                                        browser:        r.humanReadable
 
161
                                });
 
162
 
 
163
                                var button = document.createElement('a');
 
164
                                button.className = 'button donate';
 
165
                                button.href = 'https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9DNBJPQFEHYSC';
 
166
                                button.innerHTML = '<span>Donate</span>';
 
167
                                buttons.appendChild(button);
 
168
 
 
169
 
 
170
                                var container = document.getElementById('results');
 
171
                                var div = document.createElement('div');
 
172
                                div.className = 'resultsTable detailsTable';
 
173
                                container.appendChild(div);
 
174
 
 
175
                                var table = new ResultsTable({
 
176
                                        parent:                 div,
 
177
                                        tests:                  m.data,
 
178
                                        header:                 false,
 
179
                                        links:                  true,
 
180
                                        explainations:  true,
 
181
                                        grading:                true,
 
182
                                        bonus:                  true,
 
183
                                        distribute:             true,
 
184
                                        columns:                1
 
185
                                });
 
186
 
 
187
                                table.updateColumn(0, r);
 
188
                        <?php endif; ?>
 
189
 
 
190
 
 
191
                                var _gaq = _gaq || [];
 
192
                                _gaq.push(['_setAccount', 'UA-68192-4']);
 
193
                                _gaq.push(['_trackPageview']);
 
194
 
 
195
                                (function() {
 
196
                                        var ga = document.createElement('script');
 
197
                                        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 
198
                                        ga.setAttribute('async', 'true');
 
199
                                        document.documentElement.firstChild.appendChild(ga);
 
200
                                })();
 
201
 
 
202
                //-->
 
203
                </script>
 
204
        </body>
 
205
</html>