| <html> |
| <head> |
| <title>build-popup-sk demo</title> |
| <meta charset="utf-8"> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| <meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes"> |
| <script src="/res/common/js/common.js"></script> |
| <script src="/res/imp/bower_components/webcomponentsjs/webcomponents-lite.js"></script> |
| <script src="/res/imp/sinon-1.17.2.js"></script> |
| <script type="text/javascript"> |
| var server = sinon.fakeServer.create(); |
| sinon.format = function(object) {return JSON.stringify(object);} |
| sinon.log = function(message) {console.log(message);}; |
| server.autoRespond = true; |
| server.autoRespondAfter = 3000; |
| // Mock out login to fake that a user is logged in |
| sk.Login = { |
| then: function(f){ |
| f({ |
| "Email":"test@google.com", |
| }); |
| } |
| }; |
| |
| var response = {"Hello":"World"}; |
| server.respondWith("POST","/json/skia/builds/foobar/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared/2858/comments", JSON.stringify(response)); |
| |
| |
| </script> |
| <link rel=import href="build-popup-sk.html"> |
| </head> |
| <body> |
| <h1>build-popup-sk demo</h1> |
| <build-popup-sk |
| buildbot_url_prefix="https://uberchromegw.corp.google.com/i/client.skia/" |
| build='{"builder":"Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared","number":2858,"buildslave":"skiabot-linux-tester-001","commits":["33366974d43eae80e22284a2e445225c343859da"],"comments":[{"id":974079955,"user":"kjlubick@google.com","time":"2016-11-30T15:40:53.527245846Z","message":"This is a test comment. No actual llamas were harmed."}],"failedSteps":["dm"],"color":"red","id":1234,"finished":true,"results":2, "got_revision": "33366974d43eae80e22284a2e445225c343859da","master":"foobar"}' |
| commit_details='{"33366974d43eae80e22284a2e445225c343859da":{"shortHash":"3336697","shortAuthor":"reed@google.com","shortSubject":"<span style=\"background-color:orange;\">XSS test</span> remove internalDrawBitmap, as it is no longer shared with any other c..."}}' |
| repo="skia"> |
| </build-popup-sk> |
| </body> |
| </html> |