| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 # Copyright 2016 The LUCI Authors. All rights reserved. | 2 # Copyright 2016 The LUCI Authors. All rights reserved. |
| 3 # Use of this source code is governed by the Apache v2.0 license that can be | 3 # Use of this source code is governed by the Apache v2.0 license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 <!DOCTYPE html> | 6 <!DOCTYPE html> |
| 7 <html> | 7 <html> |
| 8 <head> | 8 <head> |
| 9 <title>Stats Overview Demo</title> | 9 <title>Stats Overview Demo</title> |
| 10 <meta charset="utf-8"> | 10 <meta charset="utf-8"> |
| 11 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | 11 <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| 12 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> | 12 <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-
scale=1, user-scalable=yes"> |
| 13 <script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></scri
pt> | 13 <script src="../bower_components/webcomponentsjs/webcomponents-lite.js"></scri
pt> |
| 14 <script src="../../node_modules/sinon/pkg/sinon-1.17.2.js"></script> | 14 <script src="../../../node_modules/skia-common-js/common.js"></script> |
| 15 <script src="/res/js/common.js"></script> |
| 16 <script src="/res/js/alias.js"></script> |
| 17 <script src="../../../node_modules/sinon/pkg/sinon-1.17.5.js"></script> |
| 15 <!-- Makes a var called data--> | 18 <!-- Makes a var called data--> |
| 16 <script type="text/javascript" src="overview-demo.json"></script> | 19 <script type="text/javascript" src="overview-demo.json"></script> |
| 17 <script type="text/javascript" charset="utf-8"> | 20 <script type="text/javascript" charset="utf-8"> |
| 18 // sinon.format = function(object) {return JSON.stringify(object);} | 21 // sinon.format = function(object) {return JSON.stringify(object);} |
| 19 // sinon.log = function(message) {console.log(message);}; | 22 // sinon.log = function(message) {console.log(message);}; |
| 20 var server = sinon.fakeServer.create(); | 23 var server = sinon.fakeServer.create(); |
| 21 server.autoRespond = true; | 24 server.autoRespond = true; |
| 22 // Send the data, then slightly change the builds for the update. | 25 // Send the data, then slightly change the builds for the update. |
| 23 server.respondWith("GET", "/swarming/api/v1/stats/summary/minutes?duration=2
0",JSON.stringify(data)); | 26 server.respondWith("GET", "/swarming/api/v1/stats/summary/minutes?duration=2
0",JSON.stringify(data)); |
| 24 </script> | 27 </script> |
| 25 <link rel="import" href="stats-overview.html"> | 28 <link rel="import" href="stats-overview.html"> |
| 26 </head> | 29 </head> |
| 27 <body> | 30 <body> |
| 28 <div style="width: 1000px"> | 31 <div style="width: 1000px"> |
| 29 <stats-overview ></stats-overview> | 32 <stats-overview></stats-overview> |
| 30 </div> | 33 </div> |
| 31 </body> | 34 </body> |
| 32 </html> | 35 </html> |
| OLD | NEW |