forked from electron/fiddle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion-select-spec.tsx.snap
More file actions
171 lines (167 loc) · 3.5 KB
/
version-select-spec.tsx.snap
File metadata and controls
171 lines (167 loc) · 3.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`VersionSelect component disableDownload disables download buttons when return value is true 1`] = `
<Blueprint3.Popover
autoFocus={false}
boundary="scrollParent"
canEscapeKeyClose={false}
captureDismiss={false}
className="disabled-menu-tooltip"
content="Version is not available on current OS"
defaultIsOpen={false}
disabled={false}
enforceFocus={false}
fill={false}
hasBackdrop={false}
hoverCloseDelay={0}
hoverOpenDelay={100}
inheritDarkTheme={true}
interactionKind="hover-target"
lazy={true}
minimal={false}
modifiers={
Object {
"flip": Object {
"enabled": false,
},
"hide": Object {
"enabled": false,
},
"preventOverflow": Object {
"enabled": false,
},
}
}
openOnTargetFocus={true}
popoverClassName="bp3-tooltip bp3-intent-primary"
targetTagName="span"
transitionDuration={100}
usePortal={true}
wrapperTagName="span"
>
<Blueprint3.MenuItem
active={true}
disabled={true}
icon="cloud"
key="1.0.0"
label="Not downloaded"
multiline={false}
popoverProps={Object {}}
shouldDismissPopover={true}
text={
Array [
"1.0.0",
]
}
/>
</Blueprint3.Popover>
`;
exports[`VersionSelect component disableDownload does not disable enabled download buttons when return value is false 1`] = `
<li
className=""
>
<a
className="bp3-menu-item bp3-active bp3-intent-primary bp3-popover-dismiss"
label="Not downloaded"
onClick={[Function]}
>
<Blueprint3.Icon
icon="cloud"
/>
<Blueprint3.Text
className="bp3-fill"
ellipsize={true}
tagName="div"
>
1.0.0
</Blueprint3.Text>
<span
className="bp3-menu-item-label"
>
Not downloaded
</span>
</a>
</li>
`;
exports[`VersionSelect component renderItem() renders an item 1`] = `
<Blueprint3.MenuItem
active={true}
disabled={false}
icon="cloud"
label="Not downloaded"
multiline={false}
onClick={[Function]}
popoverProps={Object {}}
shouldDismissPopover={true}
text={
Array [
"1.0.0",
]
}
/>
`;
exports[`VersionSelect component renders 1`] = `
<Blueprint3.Select
disabled={false}
filterable={true}
itemListPredicate={[Function]}
itemListRenderer={[Function]}
itemRenderer={[Function]}
items={
Array [
Object {
"source": "remote",
"state": "installed",
"version": "2.0.3",
},
Object {
"source": "remote",
"state": "installed",
"version": "2.0.2",
},
Object {
"source": "remote",
"state": "installed",
"version": "2.0.1",
},
Object {
"source": "remote",
"state": "installed",
"version": "2.0.0",
},
Object {
"source": "remote",
"state": "installed",
"version": "1.8.7",
},
Object {
"source": "remote",
"state": "missing",
"version": "1.0.0",
},
Object {
"source": "remote",
"state": "missing",
"version": "3.0.0-unsupported",
},
]
}
noResults={
<Blueprint3.MenuItem
disabled={true}
multiline={false}
popoverProps={Object {}}
shouldDismissPopover={true}
text="No results."
/>
}
onItemSelect={[Function]}
>
<Blueprint3.Button
className="version-chooser"
disabled={false}
icon="cloud"
onContextMenu={[Function]}
text="Electron v1.0.0"
/>
</Blueprint3.Select>
`;