| 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/sinon/pkg/sinon-1.17.2.js"></script> | 
| 15   <!-- Makes a var called data--> | 15   <!-- Makes a var called data--> | 
| 16   <script type="text/javascript" src="overview-demo.json"></script> | 16   <script type="text/javascript" src="overview-demo.json"></script> | 
| 17   <script type="text/javascript" charset="utf-8"> | 17   <script type="text/javascript" charset="utf-8"> | 
| 18     // sinon.format = function(object) {return JSON.stringify(object);} | 18     // sinon.format = function(object) {return JSON.stringify(object);} | 
| 19     // sinon.log = function(message) {console.log(message);}; | 19     // sinon.log = function(message) {console.log(message);}; | 
| 20     var server = sinon.fakeServer.create(); | 20     var server = sinon.fakeServer.create(); | 
| 21     server.autoRespond = true; | 21     server.autoRespond = true; | 
| 22     // Send the data, then slightly change the builds for the update. | 22     // 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)); | 23     server.respondWith("GET", "/swarming/api/v1/stats/summary/minutes?duration=2
    0",JSON.stringify(data)); | 
| 24     </script> | 24     </script> | 
| 25     <link rel="import" href="stats-overview.html"> | 25     <link rel="import" href="stats-overview.html"> | 
| 26 </head> | 26 </head> | 
| 27 <body> | 27 <body> | 
| 28   <div style="width: 1000px"> | 28   <div style="width: 1000px"> | 
| 29     <stats-overview ></stats-overview> | 29     <stats-overview ></stats-overview> | 
| 30   </div> | 30   </div> | 
| 31 </body> | 31 </body> | 
| 32 </html> | 32 </html> | 
| OLD | NEW | 
|---|