| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Skia Fuzzer</title> | 4 <title>Skia Fuzzer</title> |
| 5 {{template "header.html" .}} | 5 {{template "header.html" .}} |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body class="fullbleed vertical layout unresolved"> |
| 8 » <scaffold-sk responsiveWidth="700px"> | 8 <style is="custom-style"> |
| 9 {{template "titlebar.html" .}} | 9 app-sk { |
| 10 <div id="fuzzes"></div> | 10 --app-sk-main: { |
| 11 » </scaffold-sk> | 11 background-color: #FFFFFF; |
| 12 font-family: sans-serif; |
| 13 }; |
| 14 --app-sk-toolbar: { |
| 15 background-color: #8be1b8; |
| 16 }; |
| 17 login-sk{ |
| 18 » --login-sk-color: white; |
| 19 }; |
| 20 } |
| 21 </style> |
| 22 » <app-sk class="fit" flex> |
| 23 » » <img header id="logo" src="/res/img/skia_fuzz.png"> |
| 24 » » <fuzzer-status-sk rtoolbar></fuzzer-status-sk> |
| 25 » » <fuzzer-menu-sk navigation></fuzzer-menu-sk> |
| 12 | 26 |
| 13 <script type="text/javascript" charset="utf-8"> | 27 » » <h2>Failing Fuzzes</h2> |
| 14 (function() { | |
| 15 » sk.WebComponentsReady.then(function() { | |
| 16 » » var page = {}; | |
| 17 » » var fuzzes = []; | |
| 18 | 28 |
| 19 » » page.state = { | 29 » » <fuzzer-summary-list-sk></fuzzer-summary-list-sk> |
| 20 » » » failed: true, | 30 » </app-sk> |
| 21 » » » passed: false | |
| 22 » » }; | |
| 23 | 31 |
| 24 function displayFuzzes() { | |
| 25 var container = $$$("#fuzzes"); | |
| 26 sk.clearChildren(container); | |
| 27 | |
| 28 fuzzes.forEach(function(c, i) { | |
| 29 var s = document.createElement('fuzz-summary-sk'
); | |
| 30 s.hash = c; | |
| 31 | |
| 32 container.appendChild(s); | |
| 33 }) | |
| 34 } | |
| 35 | |
| 36 function loadFuzzes() { | |
| 37 sk.get("{{.LoadFuzzListURL}}?"+sk.query.fromObject(page.
state)).then(JSON.parse).then(function(data) { | |
| 38 fuzzes = data; | |
| 39 displayFuzzes(); | |
| 40 }); | |
| 41 } | |
| 42 | |
| 43 path = document.location.pathname; | |
| 44 if (path.startsWith("/passed")) { | |
| 45 page.state.failed = false; | |
| 46 page.state.passed = true; | |
| 47 } | |
| 48 | |
| 49 sk.stateReflector(page, loadFuzzes); | |
| 50 }); | |
| 51 })(); | |
| 52 </script> | |
| 53 | |
| 54 {{template "footer.html" .}} | |
| 55 </body> | 32 </body> |
| 56 </html> | 33 </html> |
| OLD | NEW |