Switch TestFrameNavigationObserver to DidCommitProvisionalLoadForFrame.
[chromium-blink-merge.git] / chrome / test / data / third_party / spaceport / index.html
blob142b2bd61afd6d7a32f487e7cca499140417f63b
1 <!DOCTYPE html>
2 <meta charset="utf8">
3 <title>HTML5 Game Benchmarks</title>
4 <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=yes">
5 <style>
6 .test .results {
7 display: none;
10 .test.pass .results, .test.fail .results {
11 display: block;
14 .test.pass .name {
15 font-weight: bold;
16 color: #008800;
19 .test.fail .name {
20 font-weight: bold;
21 color: #CC0000;
24 .test .error-message {
25 display: none;
28 .test.error {
29 font-weight: bold;
30 color: #FFFFFF;
31 background-color: #880000;
34 .test.error .error-message {
35 display: block;
38 table thead th, table tfoot th {
39 text-align: center;
40 font-weight: bold;
43 table tbody th {
44 text-align: left;
45 font-weight: bold;
48 table {
49 border-collapse: collapse;
52 table th, table td {
53 border: 2px solid #CCCCCC;
54 padding: 0.25em 0.5em;
57 #all-test-results {
58 width: 40em;
59 height: 20em;
61 </style>
63 <h1>PerfMarks</h1>
64 <p>Basic benchmarks to measure HTML5 performance and support for game related features.<p>
66 <h2>Performance Tests</h2>
67 <p style="display: none;"><button disabled id="start-performance-tests">Run Tests</button></p>
69 <p><label>Browser
70 <select id="ua-browser">
71 <option value="">Other...</option>
73 <optgroup label="Desktop">
74 <option>Firefox 3.6</option>
75 <option>Firefox 4-8</option>
76 <option>Firefox 9</option>
77 <option>Firefox 10</option>
78 <option>Google Chrome</option>
79 <option>IE7</option>
80 <option>IE8</option>
81 <option>IE9</option>
82 <option>IE10</option>
83 <option>Opera 11.x</option>
84 <option>Safari 5.1.5</option>
85 </optgroup>
87 <optgroup label="Mobile">
88 <option>Android Browser</option>
89 <option>Blackberry Webkit</option>
90 <option>Google Chrome</option>
91 <option>Mobile Firefox 10</option>
92 <option>Mobile Google Chrome</option>
93 <option>Mobile IE8</option>
94 <option>Mobile IE9</option>
95 <option>Mobile Safari</option>
96 <option>Opera Mobile</option>
97 </optgroup>
98 </select>
99 </label>
100 <input type="text" id="ua-browser-custom">
101 </p>
103 <p><label>Device name
104 <select id="ua-device-name">
105 <option value="">Other...</option>
107 <optgroup label="Laptop Computers">
108 <option>Macbook Pro 2.8 Ghz Intel Core 2 Duo 8 GB 1067 MHz DDR3</option>
109 </optgroup>
111 <optgroup label="Android">
112 <option>Amazon Kindle Fire</option>
113 <option>Asus Eee Pad Transformer TF101</option>
114 <option>Asus Transformer Prime TF201</option>
115 <option>HTC EVO 4G</option>
116 <option>HTC EVO 3D</option>
117 <option>LG Optimus V</option>
118 <option>Motorola Droid 2</option>
119 <option>Motorola Droid</option>
120 <option>Motorola Droid RAZR XT910</option>
121 <option>Motorola Droid X / Shadow</option>
122 <option>Motorola XOOM</option>
123 <option>Samsung Droid Charge</option>
124 <option>Samsung Galaxy Fit</option>
125 <option>Samsung Galaxy Nexus</option>
126 <option>Samsung Galaxy S II (GT-I9100)</option>
127 <option>Samsung Galaxy Tab</option>
128 <option>Sony Ericsson Xperia PLAY</option>
129 <option>T-Mobile G2X</option>
130 <option>T-Mobile myTouch 4G Slide</option>
131 </optgroup>
133 <optgroup label="iOS">
134 <option>iPhone 3GS</option>
135 <option>iPhone 4</option>
136 <option>iPhone 4S</option>
137 <option>iPad</option>
138 <option>iPad 2</option>
139 <option>iPod Touch 4G</option>
140 </optgroup>
142 <optgroup label="Etc.">
143 <option>Blackberry Torch</option>
144 <option>Blackberry Playbook</option>
145 <option>HTC HD7S Windows Phone</option>
146 </optgroup>
147 </select>
148 </label>
149 <input type="text" id="ua-device-name-custom">
150 </p>
152 <p><label>OS
153 <select id="ua-os">
154 <option value="">Other...</option>
156 <optgroup label="Desktop">
157 <option>Mac OS X 10.6.8</option>
158 <option>Mac OS X 10.7.3</option>
159 <option>Windows 7</option>
160 </optgroup>
162 <optgroup label="Android">
163 <option>Android 2.2.2</option>
164 <option>Android 2.2.3</option>
165 <option>Android 2.3.3</option>
166 <option>Android 2.3.4</option>
167 <option>Android 2.3.5</option>
168 <option>Android 2.3.6</option>
169 <option>Android 3.2</option>
170 <option>Android 3.2.1</option>
171 <option>Android 3.2.4</option>
172 <option>Android 3.2.6</option>
173 <option>Android 4.0.2</option>
174 <option>Android 4.0.3</option>
175 <option>Android 4.0.4</option>
176 </optgroup>
178 <optgroup label="iOS">
179 <option>iOS 4.2</option>
180 <option>iOS 4.3.2</option>
181 <option>iOS 4.3.3</option>
182 <option>iOS 4.3.5</option>
183 <option>iOS 5.0.1</option>
184 <option>iOS 5.1</option>
185 <option>iOS 5.1.1</option>
186 </optgroup>
188 <optgroup label="Other Mobile">
189 <option>Windows Phone 7.5</option>
190 <option>Blackberry Playbook 1.0.8.6067</option>
191 <option>Blackberry 7.0.0.261</option>
192 </optgroup>
193 </select>
194 </label>
195 <input type="text" id="ua-os-custom">
196 </p>
198 <p><label>Device type
199 <select id="ua-type">
200 <option>Laptop</option>
201 <option>Phone</option>
202 <option>Tablet</option>
203 <option>Desktop</option>
204 </select>
205 </p>
207 <p><label>Other data <input type="text" id="ua-misc"></label></p>
209 <p><button disabled id="upload-performance-tests">Run Tests and Upload Results</button></p>
211 <p>This will upload test results to your <em>local web server</em>. See <code>README.md</code> in the PerfMarks repository for details.</p>
213 <ul>
214 <li id="performance-sprites"><span class="name">Sprites</span>
215 <div id="performance-sprites-placeholder"></div>
216 <li id="performance-audioLatency" class="test"><span class="name">Audio latency</span>
217 <ul class="results">
218 <li>Cold play latency: <span data-property="coldLatency"></span>ms
219 <li>Warm play latency: <span data-property="warmLatency"></span>ms
220 </ul>
221 <li id="performance-text"><span class="name">Canvas text</span>
222 <div id="performance-text-placeholder"></div>
223 </ul>
225 <h2>Test Result Data</h2>
226 <textarea id="all-test-results"></textarea>
228 <script>
229 Object.keys = function keys(object) {
230 // Quick shim; doesn't handle IE bugs
231 var keys = [ ];
232 var key;
233 for (key in object) {
234 if (Object.prototype.hasOwnProperty.call(object, key)) {
235 keys.push(key);
238 return keys;
241 (function () {
242 var onLoadFunctions = [ ];
243 var loaded = false;
245 function registerOnLoad(fn) {
246 if (loaded) {
247 setTimeout(fn, 0);
248 } else {
249 onLoadFunctions.push(fn);
253 window.addEventListener('load', function () {
254 loaded = true;
255 while (onLoadFunctions.length) {
256 var fn = onLoadFunctions.shift();
257 setTimeout(fn, 0);
259 }, false);
261 window.registerOnLoad = registerOnLoad;
262 }());
263 </script>
265 <script src="js/curl.js"></script>
266 <script>curl({ baseUrl: 'js' }, [ 'index' ]);</script>