| 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 under the Apache License, Version 2.0 | 3 Use of this source code is governed under the Apache License, Version 2.0 |
| 4 that can be found in the LICENSE file. | 4 that can be found in the LICENSE file. |
| 5 | 5 |
| 6 --> | 6 --> |
| 7 <!DOCTYPE html> | 7 <!DOCTYPE html> |
| 8 <html> | 8 <html> |
| 9 <head> | 9 <head> |
| 10 <title>task-list Demo</title> | 10 <title>task-list Demo</title> |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 server.respondWith("POST", /^\/api\/swarming\/v1\/task\/.+\/cancel/, cancel)
; | 64 server.respondWith("POST", /^\/api\/swarming\/v1\/task\/.+\/cancel/, cancel)
; |
| 65 | 65 |
| 66 var permissions = { | 66 var permissions = { |
| 67 cancel_task: true | 67 cancel_task: true |
| 68 }; | 68 }; |
| 69 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/,
JSON.stringify(permissions)); | 69 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/permissions/,
JSON.stringify(permissions)); |
| 70 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.
stringify(permissions)); | 70 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/permissions/, JSON.
stringify(permissions)); |
| 71 | 71 |
| 72 var details = { | 72 var details = { |
| 73 server_version: "1234-deadbeef", | 73 server_version: "1234-deadbeef", |
| 74 sk_revision_prefix: "https://skia.googlesource.com/skia/+/", |
| 74 }; | 75 }; |
| 75 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON
.stringify(details)); | 76 server.respondWith("GET", /^\/_ah\/api\/swarming\/v1\/server\/details/, JSON
.stringify(details)); |
| 76 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri
ngify(details)); | 77 server.respondWith("GET", /^\/api\/swarming\/v1\/server\/details/, JSON.stri
ngify(details)); |
| 77 </script> | 78 </script> |
| 78 | 79 |
| 79 <link rel="import" href="task-list.html"> | 80 <link rel="import" href="task-list.html"> |
| 80 </head> | 81 </head> |
| 81 <body> | 82 <body> |
| 82 | 83 |
| 83 <task-list | 84 <task-list |
| 84 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent
.com"> | 85 client_id="20770472288-t5smpbpjptka4nd888fv0ctd23ftba2o.apps.googleusercontent
.com"> |
| 85 </task-list> | 86 </task-list> |
| 86 | 87 |
| 87 </body> | 88 </body> |
| 88 </html> | 89 </html> |
| OLD | NEW |