Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(643)

Unified Diff: fuzzer/templates/index.html

Issue 1144163010: Getting started on the fuzzer web front end. (Closed) Base URL: https://skia.googlesource.com/buildbot@master
Patch Set: Update startsWith polyfill Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fuzzer/templates/header.html ('k') | fuzzer/templates/titlebar.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fuzzer/templates/index.html
diff --git a/fuzzer/templates/index.html b/fuzzer/templates/index.html
index 6571e9fc03a093a11525305fc92f539fb1a13eb9..19a81071fb3ee359cf0caa5bdded68eba93e93d9 100644
--- a/fuzzer/templates/index.html
+++ b/fuzzer/templates/index.html
@@ -5,6 +5,52 @@
{{template "header.html" .}}
</head>
<body>
+ <scaffold-sk responsiveWidth="700px">
+ {{template "titlebar.html" .}}
+ <div id="fuzzes"></div>
+ </scaffold-sk>
+
+<script type="text/javascript" charset="utf-8">
+(function() {
+ sk.WebComponentsReady.then(function() {
+ var page = {};
+ var fuzzes = [];
+
+ page.state = {
+ failed: true,
+ passed: false
+ };
+
+ function displayFuzzes() {
+ var container = $$$("#fuzzes");
+ sk.clearChildren(container);
+
+ fuzzes.forEach(function(c, i) {
+ var s = document.createElement('fuzz-summary-sk');
+ s.hash = c;
+
+ container.appendChild(s);
+ })
+ }
+
+ function loadFuzzes() {
+ sk.get("{{.LoadFuzzListURL}}?"+sk.query.fromObject(page.state)).then(JSON.parse).then(function(data) {
+ fuzzes = data;
+ displayFuzzes();
+ });
+ }
+
+ path = document.location.pathname;
+ if (path.startsWith("/passed")) {
+ page.state.failed = false;
+ page.state.passed = true;
+ }
+
+ sk.stateReflector(page, loadFuzzes);
+ });
+})();
+</script>
+
{{template "footer.html" .}}
</body>
</html>
« no previous file with comments | « fuzzer/templates/header.html ('k') | fuzzer/templates/titlebar.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698