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

Side by Side Diff: fuzzer/res/imp/fuzzer-filter-sk.html

Issue 1662373002: Add UI to filter fuzzes based on tags. (Closed) Base URL: https://skia.googlesource.com/buildbot@add-asan
Patch Set: remove conflicting status-sk elements Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2
3 This in an HTML Import-able file that contains the definition
4 of the following elements:
5
6 <fuzzer-filter-sk>
7
8 This element encapsulates the filtering mechanism for the fuzzer ui.
9
10 To use this file import it:
11
12 <link href="/res/imp/fuzzer-filter-sk.html" rel="import" />
13
14 Usage:
15
16 <fuzzer-filter-sk></fuzzer-filter-sk>
17
18 Properties:
19 include - An Array of strings that should be a part of the "include" filter.
20 This is sorted via sk.sortStrings.
21 exclude - An Array of strings that should be a part of the "exclude" filter.
22 This is sorted via sk.sortStrings.
23
24 Methods:
25 None.
26
27 Events:
28 None.
29 -->
30
31 <link rel="import" href="/res/imp/bower_components/paper-input/paper-input.html" >
32 <link rel="import" href="/res/common/imp/9/url-params-sk.html">
33 <link rel="import" href="/res/common/imp/9/select-status-sk.html">
34
35 <dom-module id="fuzzer-filter-sk">
36 <template>
37 <style>
38 .selector {
39 max-width:240px;
40 display:inline-block;
41 }
42
43 </style>
44
45 <url-param-sk name="include" value="{{_include}}" multi></url-param-sk>
46 <url-param-sk name="exclude" value="{{_exclude}}" multi></url-param-sk>
47
48 <div class='.selector'>
49 <div>Include</div>
50 <select id="include" size="9" multiple>
51 <!-- These are from result.go, arranged in order by estimated usefullness. -->
52 <option value="ASAN_global-buffer-overflow">ASAN_global-buffer-overflow< /option>
53 <option value="ASAN_heap-buffer-overflow">ASAN_heap-buffer-overflow</opt ion>
54 <option value="ASAN_stack-buffer-overflow">ASAN_stack-buffer-overflow</o ption>
55 <option value="ASAN_heap-use-after-free">ASAN_heap-use-after-free</optio n>
56
57 <option value="SKPICTURE_DuringRendering">SKPICTURE_DuringRendering</opt ion>
58
59 <option value="Other">Other</option>
60 <option value="AssertionViolated">AssertionViolated</option>
61 <option value="BadAlloc">BadAlloc</option>
62 <option value="FailedGracefully">FailedGracefully</option>
63 <option value="ClangCrashed">ClangCrashed</option>
64 <option value="ASANCrashed">ASANCrashed</option>
65 <option value="NoStackTrace">NoStackTrace</option>
66 <option value="TimedOut">TimedOut</option>
67 </select>
68 <select-status-sk target="include" values="{{_include}}" clear></select-st atus-sk>
69 </div>
70
71
72 <div class='.selector'>
73 <div>Exclude</div>
74 <select id="exclude" size="9" multiple>
75 <!-- These are from result.go, arranged in order by estimated usefullness. -->
76 <option value="ASAN_global-buffer-overflow">ASAN_global-buffer-overflow< /option>
77 <option value="ASAN_heap-buffer-overflow">ASAN_heap-buffer-overflow</opt ion>
78 <option value="ASAN_stack-buffer-overflow">ASAN_stack-buffer-overflow</o ption>
79 <option value="ASAN_heap-use-after-free">ASAN_heap-use-after-free</optio n>
80
81 <option value="SKPICTURE_DuringRendering">SKPICTURE_DuringRendering</opt ion>
82
83 <option value="Other">Other</option>
84 <option value="AssertionViolated">AssertionViolated</option>
85 <option value="BadAlloc">BadAlloc</option>
86 <option value="FailedGracefully">FailedGracefully</option>
87 <option value="ClangCrashed">ClangCrashed</option>
88 <option value="ASANCrashed">ASANCrashed</option>
89 <option value="NoStackTrace">NoStackTrace</option>
90 <option value="TimedOut">TimedOut</option>
91 </select>
92 <select-status-sk target="exclude" values="{{_exclude}}" clear></select-st atus-sk>
93 </div>
94
95 </template>
96
97 <script>
98 Polymer({
99 is: 'fuzzer-filter-sk',
100
101 properties: {
102 // We want the child elements (url-param and multi-select) to be able to be bound together.
103 // However, we don't want anything the parent element does to mess up th e filters.
104 // Using the standard "readOnly":true allows the latter, but doesn't all ow the child
105 // elements to bind, so we add in this computed element which returns th e
106 // (sorted) elements.
107 exclude: {
108 type: Array,
109 computed: '_sort(_exclude)',
110 notify: true,
111 },
112 include: {
113 type: Array,
114 computed: '_sort(_include)',
115 notify: true,
116 },
117 _exclude: {
118 type: Array,
119 // no default value to avoid clobbering default value in the url param eters
120 },
121 _include: {
122 type: Array,
123 // no default value to avoid clobbering default value in the url param eters
124 },
125 },
126
127 _sort: function(val) {
128 if (!val) {
129 return [];
130 }
131 return val.sort();
132 },
133
134 });
135 </script>
136 </dom-module>
OLDNEW
« no previous file with comments | « fuzzer/res/imp/fuzzer-collapse-function-sk-demo.html ('k') | fuzzer/res/imp/fuzzer-filter-sk-demo.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698