Chromium Code Reviews| Index: fuzzer/res/imp/fuzzer-summary-list-sk.html |
| diff --git a/fuzzer/res/imp/fuzzer-summary-list-sk.html b/fuzzer/res/imp/fuzzer-summary-list-sk.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..ef8f8d4078f532f429d16e7a3abd0b36ede851b5 |
| --- /dev/null |
| +++ b/fuzzer/res/imp/fuzzer-summary-list-sk.html |
| @@ -0,0 +1,56 @@ |
| +<!-- |
| + The common.js file must be included before this file. |
| + |
| + This in an HTML Import-able file that contains the definition |
| + of the following elements: |
| + |
| + <fuzzer-summary-list-sk> |
| + |
| + This element will poll /json/fuzz-list for the fuzz contents to display, which will be an array of FileDetails. |
|
jcgregorio
2015/11/06 19:15:02
It doesn't actually poll, instead is just does a s
|
| + See fuzzer-collapse-file-sk.html for more information. |
| + |
| + To use this file import it: |
| + |
| + <link href="/res/imp/fuzzer-summary-list-sk.html" rel="import" /> |
| + |
| + Usage: |
| + |
| + <fuzzer-summary-list-sk></fuzzer-summary-list-sk> |
| + |
| + Properties: |
| + None. |
| + |
| + Methods: |
| + None. |
| + |
| + Events: |
| + None. |
| +--> |
| +<dom-module id="fuzzer-summary-list-sk"> |
| + <template> |
| + <template is="dom-repeat" items="{{fileDetails}}" as="file"> |
| + <fuzzer-collapse-file-sk file="{{file}}"></fuzzer-collapse-file-sk> |
| + </template> |
| + </template> |
| + <script> |
| + Polymer({ |
| + is: 'fuzzer-summary-list-sk', |
| + |
| + properties: { |
| + fileDetails: { |
| + type: Array, |
| + value: function() { |
| + return []; |
| + }, |
| + readOnly: true, //generates _setFileDetails |
| + }, |
| + }, |
| + |
| + ready: function() { |
| + sk.get("/json/fuzz-list").then(JSON.parse).then(function(json) { |
|
jcgregorio
2015/11/06 19:15:02
sk.get("/json/fuzz-list").then(JSON.parse).then(th
|
| + this._setFileDetails(json); |
| + }.bind(this)); |
| + } |
| + }); |
| + </script> |
| +</dom-module> |