@scalable.software/pin 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +144 -0
- package/README.md +367 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/pin.d.ts +193 -0
- package/dist/pin.js +267 -0
- package/dist/pin.meta.d.ts +99 -0
- package/dist/pin.meta.js +67 -0
- package/dist/pin.style.css +133 -0
- package/dist/pin.template.html +26 -0
- package/dist/pin.validation.d.ts +15 -0
- package/dist/pin.validation.js +27 -0
- package/package.json +54 -0
- package/report/component.report.json +1305 -0
- package/src/index.ts +16 -0
- package/src/pin.meta.ts +108 -0
- package/src/pin.style.css +133 -0
- package/src/pin.template.html +26 -0
- package/src/pin.ts +322 -0
- package/src/pin.validation.ts +29 -0
|
@@ -0,0 +1,1305 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "Operation",
|
|
4
|
+
"spec": "unpin",
|
|
5
|
+
"definition": [
|
|
6
|
+
"Operation.unpin test",
|
|
7
|
+
"and Pin is defined in custom element registry",
|
|
8
|
+
"and HTML Template is added to DOM",
|
|
9
|
+
"and a new pin is added to DOM",
|
|
10
|
+
"then pin.unpin() method is defined"
|
|
11
|
+
],
|
|
12
|
+
"status": "pass"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"type": "Operation",
|
|
16
|
+
"spec": "unpin",
|
|
17
|
+
"definition": [
|
|
18
|
+
"Operation.unpin test",
|
|
19
|
+
"and Pin is defined in custom element registry",
|
|
20
|
+
"and HTML Template is added to DOM",
|
|
21
|
+
"and a new pin is added to DOM",
|
|
22
|
+
"and pin.status is set to Status.PINNED",
|
|
23
|
+
"when pin.unpin() is called",
|
|
24
|
+
"then pin.status is Status.UNPINNED"
|
|
25
|
+
],
|
|
26
|
+
"status": "pass"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "Operation",
|
|
30
|
+
"spec": "unpin",
|
|
31
|
+
"definition": [
|
|
32
|
+
"Operation.unpin test",
|
|
33
|
+
"and Pin is defined in custom element registry",
|
|
34
|
+
"and HTML Template is added to DOM",
|
|
35
|
+
"and a new pin is added to DOM",
|
|
36
|
+
"and pin.status is set to Status.PINNED",
|
|
37
|
+
"then pin.status is Status.PINNED"
|
|
38
|
+
],
|
|
39
|
+
"status": "pass"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"type": "Metadata",
|
|
43
|
+
"spec": "tag",
|
|
44
|
+
"definition": [
|
|
45
|
+
"Metadata.tag test",
|
|
46
|
+
"and Tag imported",
|
|
47
|
+
"then Tag is defined"
|
|
48
|
+
],
|
|
49
|
+
"status": "pass"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"type": "Operation",
|
|
53
|
+
"spec": "pin",
|
|
54
|
+
"definition": [
|
|
55
|
+
"Operation.pin test",
|
|
56
|
+
"and Pin is defined in custom element registry",
|
|
57
|
+
"and HTML Template is added to DOM",
|
|
58
|
+
"and a new pin is added to DOM",
|
|
59
|
+
"and pin.pin() method is defined",
|
|
60
|
+
"when pin.pin() is called",
|
|
61
|
+
"then pin.status is Status.PINNED"
|
|
62
|
+
],
|
|
63
|
+
"status": "pass"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "Operation",
|
|
67
|
+
"spec": "pin",
|
|
68
|
+
"definition": [
|
|
69
|
+
"Operation.pin test",
|
|
70
|
+
"and Pin is defined in custom element registry",
|
|
71
|
+
"and HTML Template is added to DOM",
|
|
72
|
+
"and a new pin is added to DOM",
|
|
73
|
+
"then pin.pin() method is defined"
|
|
74
|
+
],
|
|
75
|
+
"status": "pass"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "State",
|
|
79
|
+
"spec": "visible",
|
|
80
|
+
"definition": [
|
|
81
|
+
"State.visible test",
|
|
82
|
+
"Given Pin is defined in custom element registry",
|
|
83
|
+
"and a HTML Template is added to DOM",
|
|
84
|
+
"and a new pin is added to DOM",
|
|
85
|
+
"when visible attribute is set to Visible.NO",
|
|
86
|
+
"then pin.visible is Visible.NO"
|
|
87
|
+
],
|
|
88
|
+
"status": "pass"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "State",
|
|
92
|
+
"spec": "visible",
|
|
93
|
+
"definition": [
|
|
94
|
+
"State.visible test",
|
|
95
|
+
"Given Pin is defined in custom element registry",
|
|
96
|
+
"and a HTML Template is added to DOM",
|
|
97
|
+
"and a new pin is added to DOM",
|
|
98
|
+
"and pin.visible getter is defined",
|
|
99
|
+
"then pin.visible is Visible.YES"
|
|
100
|
+
],
|
|
101
|
+
"status": "pass"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "State",
|
|
105
|
+
"spec": "visible",
|
|
106
|
+
"definition": [
|
|
107
|
+
"State.visible test",
|
|
108
|
+
"Given Pin is defined in custom element registry",
|
|
109
|
+
"and a HTML Template is added to DOM",
|
|
110
|
+
"and a new pin is added to DOM",
|
|
111
|
+
"when pin.visible is set to invalid value",
|
|
112
|
+
"and pin.visible setter throws",
|
|
113
|
+
"then error message contains 'Invalid visible value'"
|
|
114
|
+
],
|
|
115
|
+
"status": "pass"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"type": "State",
|
|
119
|
+
"spec": "visible",
|
|
120
|
+
"definition": [
|
|
121
|
+
"State.visible test",
|
|
122
|
+
"Given Pin is defined in custom element registry",
|
|
123
|
+
"and a HTML Template is added to DOM",
|
|
124
|
+
"and a new pin is added to DOM",
|
|
125
|
+
"when pin.visible is set to invalid value",
|
|
126
|
+
"then pin.visible setter throws"
|
|
127
|
+
],
|
|
128
|
+
"status": "pass"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"type": "State",
|
|
132
|
+
"spec": "visible",
|
|
133
|
+
"definition": [
|
|
134
|
+
"State.visible test",
|
|
135
|
+
"Given Pin is defined in custom element registry",
|
|
136
|
+
"and a HTML Template is added to DOM",
|
|
137
|
+
"and a new pin is added to DOM",
|
|
138
|
+
"when pin.visible is set to Visible.NO",
|
|
139
|
+
"then pin.visible is Visible.NO"
|
|
140
|
+
],
|
|
141
|
+
"status": "pass"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "State",
|
|
145
|
+
"spec": "visible",
|
|
146
|
+
"definition": [
|
|
147
|
+
"State.visible test",
|
|
148
|
+
"Given Pin is defined in custom element registry",
|
|
149
|
+
"and a HTML Template is added to DOM",
|
|
150
|
+
"and a new pin is added to DOM",
|
|
151
|
+
"when pin.visible is set to Visible.NO",
|
|
152
|
+
"then visible attribute is set to Visible.NO"
|
|
153
|
+
],
|
|
154
|
+
"status": "pass"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "State",
|
|
158
|
+
"spec": "visible",
|
|
159
|
+
"definition": [
|
|
160
|
+
"State.visible test",
|
|
161
|
+
"Given Pin is defined in custom element registry",
|
|
162
|
+
"and a HTML Template is added to DOM",
|
|
163
|
+
"and a new pin is added to DOM",
|
|
164
|
+
"then pin.visible getter is defined"
|
|
165
|
+
],
|
|
166
|
+
"status": "pass"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "State",
|
|
170
|
+
"spec": "visible",
|
|
171
|
+
"definition": [
|
|
172
|
+
"State.visible test",
|
|
173
|
+
"Given Pin is defined in custom element registry",
|
|
174
|
+
"and a HTML Template is added to DOM",
|
|
175
|
+
"and a new pin is added to DOM",
|
|
176
|
+
"then visible attribute is null"
|
|
177
|
+
],
|
|
178
|
+
"status": "pass"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"type": "Validation",
|
|
182
|
+
"spec": "visible",
|
|
183
|
+
"definition": [
|
|
184
|
+
"Validation.visible test",
|
|
185
|
+
"Given Validate imported",
|
|
186
|
+
"and value is an invalid visible state",
|
|
187
|
+
"when Validate.visible(value) is called",
|
|
188
|
+
"then Validate.visible(value) throws"
|
|
189
|
+
],
|
|
190
|
+
"status": "pass"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"type": "Validation",
|
|
194
|
+
"spec": "visible",
|
|
195
|
+
"definition": [
|
|
196
|
+
"Validation.visible test",
|
|
197
|
+
"Given Validate imported",
|
|
198
|
+
"and value is an invalid visible state",
|
|
199
|
+
"when Validate.visible(value) is called",
|
|
200
|
+
"and error message contains 'Invalid visible value'",
|
|
201
|
+
"then error message contains 'Invalid visible value'"
|
|
202
|
+
],
|
|
203
|
+
"status": "pass"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"type": "Validation",
|
|
207
|
+
"spec": "visible",
|
|
208
|
+
"definition": [
|
|
209
|
+
"Validation.visible test",
|
|
210
|
+
"Given Validate imported",
|
|
211
|
+
"and value is a valid visible state",
|
|
212
|
+
"when Validate.visible(value) is called",
|
|
213
|
+
"then does not throw an error"
|
|
214
|
+
],
|
|
215
|
+
"status": "pass"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"type": "Metadata",
|
|
219
|
+
"spec": "attribute",
|
|
220
|
+
"definition": [
|
|
221
|
+
"Metadata.attribute test",
|
|
222
|
+
"and Attribute imported",
|
|
223
|
+
"and Attributes is an object",
|
|
224
|
+
"then Attributes has STATUS"
|
|
225
|
+
],
|
|
226
|
+
"status": "pass"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"type": "Metadata",
|
|
230
|
+
"spec": "attribute",
|
|
231
|
+
"definition": [
|
|
232
|
+
"Metadata.attribute test",
|
|
233
|
+
"and Attribute imported",
|
|
234
|
+
"and Attributes is an object",
|
|
235
|
+
"then Attributes has VISIBLE"
|
|
236
|
+
],
|
|
237
|
+
"status": "pass"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "Metadata",
|
|
241
|
+
"spec": "attribute",
|
|
242
|
+
"definition": [
|
|
243
|
+
"Metadata.attribute test",
|
|
244
|
+
"and Attribute imported",
|
|
245
|
+
"then Attributes is defined"
|
|
246
|
+
],
|
|
247
|
+
"status": "pass"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"type": "Metadata",
|
|
251
|
+
"spec": "attribute",
|
|
252
|
+
"definition": [
|
|
253
|
+
"Metadata.attribute test",
|
|
254
|
+
"and Attribute imported",
|
|
255
|
+
"and Attributes is defined",
|
|
256
|
+
"then Attributes is an object"
|
|
257
|
+
],
|
|
258
|
+
"status": "pass"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"type": "Event",
|
|
262
|
+
"spec": "onpin",
|
|
263
|
+
"definition": [
|
|
264
|
+
"Event.onpin test",
|
|
265
|
+
"and Pin is defined in custom element registry",
|
|
266
|
+
"and HTML Template is added to DOM",
|
|
267
|
+
"and a new pin is added to DOM",
|
|
268
|
+
"then pin.onpin setter is defined"
|
|
269
|
+
],
|
|
270
|
+
"status": "pass"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"type": "Event",
|
|
274
|
+
"spec": "onpin",
|
|
275
|
+
"definition": [
|
|
276
|
+
"Event.onpin test",
|
|
277
|
+
"and Pin is defined in custom element registry",
|
|
278
|
+
"and HTML Template is added to DOM",
|
|
279
|
+
"and a new pin is added to DOM",
|
|
280
|
+
"and pin.onpin setter is defined",
|
|
281
|
+
"and pin.onpin is set to new listener ",
|
|
282
|
+
"when pin.status set to Status.PINNED",
|
|
283
|
+
"then onpin is not called"
|
|
284
|
+
],
|
|
285
|
+
"status": "pass"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"type": "Event",
|
|
289
|
+
"spec": "onpin",
|
|
290
|
+
"definition": [
|
|
291
|
+
"Event.onpin test",
|
|
292
|
+
"and Pin is defined in custom element registry",
|
|
293
|
+
"and HTML Template is added to DOM",
|
|
294
|
+
"and a new pin is added to DOM",
|
|
295
|
+
"and pin.onpin setter is defined",
|
|
296
|
+
"and pin.onpin is set to new listener ",
|
|
297
|
+
"when pin.status set to Status.PINNED",
|
|
298
|
+
"then onpin2 is called"
|
|
299
|
+
],
|
|
300
|
+
"status": "pass"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"type": "Event",
|
|
304
|
+
"spec": "onpin",
|
|
305
|
+
"definition": [
|
|
306
|
+
"Event.onpin test",
|
|
307
|
+
"and Pin is defined in custom element registry",
|
|
308
|
+
"and HTML Template is added to DOM",
|
|
309
|
+
"and a new pin is added to DOM",
|
|
310
|
+
"and pin.onpin setter is defined",
|
|
311
|
+
"when pin.status set to Status.PINNED",
|
|
312
|
+
"then onpin is called with `status: Status.PINNED`"
|
|
313
|
+
],
|
|
314
|
+
"status": "pass"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"type": "Operation",
|
|
318
|
+
"spec": "hide",
|
|
319
|
+
"definition": [
|
|
320
|
+
"Operation.hide test",
|
|
321
|
+
"and Pin is defined in custom element registry",
|
|
322
|
+
"and HTML Template is added to DOM",
|
|
323
|
+
"and a new pin is added to DOM",
|
|
324
|
+
"then pin.hide() method is defined"
|
|
325
|
+
],
|
|
326
|
+
"status": "pass"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"type": "Operation",
|
|
330
|
+
"spec": "hide",
|
|
331
|
+
"definition": [
|
|
332
|
+
"Operation.hide test",
|
|
333
|
+
"and Pin is defined in custom element registry",
|
|
334
|
+
"and HTML Template is added to DOM",
|
|
335
|
+
"and a new pin is added to DOM",
|
|
336
|
+
"and pin.hide() method is defined",
|
|
337
|
+
"when pin.hide() is called",
|
|
338
|
+
"then pin.visible is Visible.NO"
|
|
339
|
+
],
|
|
340
|
+
"status": "pass"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"type": "Metadata",
|
|
344
|
+
"spec": "operation",
|
|
345
|
+
"definition": [
|
|
346
|
+
"Metadata.operation test",
|
|
347
|
+
"and Operation imported",
|
|
348
|
+
"then Operation is defined"
|
|
349
|
+
],
|
|
350
|
+
"status": "pass"
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
"type": "Metadata",
|
|
354
|
+
"spec": "operation",
|
|
355
|
+
"definition": [
|
|
356
|
+
"Metadata.operation test",
|
|
357
|
+
"and Operation imported",
|
|
358
|
+
"and Operation is defined",
|
|
359
|
+
"then Operation is an object"
|
|
360
|
+
],
|
|
361
|
+
"status": "pass"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
"type": "Metadata",
|
|
365
|
+
"spec": "operation",
|
|
366
|
+
"definition": [
|
|
367
|
+
"Metadata.operation test",
|
|
368
|
+
"and Operation imported",
|
|
369
|
+
"and Operation is defined",
|
|
370
|
+
"and Operation is an object",
|
|
371
|
+
"then Operation.TOGGLE is defined"
|
|
372
|
+
],
|
|
373
|
+
"status": "pass"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
"type": "Metadata",
|
|
377
|
+
"spec": "operation",
|
|
378
|
+
"definition": [
|
|
379
|
+
"Metadata.operation test",
|
|
380
|
+
"and Operation imported",
|
|
381
|
+
"and Operation is defined",
|
|
382
|
+
"and Operation is an object",
|
|
383
|
+
"then Operation.SHOW is defined"
|
|
384
|
+
],
|
|
385
|
+
"status": "pass"
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"type": "Metadata",
|
|
389
|
+
"spec": "operation",
|
|
390
|
+
"definition": [
|
|
391
|
+
"Metadata.operation test",
|
|
392
|
+
"and Operation imported",
|
|
393
|
+
"and Operation is defined",
|
|
394
|
+
"and Operation is an object",
|
|
395
|
+
"then Operation.UNPIN is defined"
|
|
396
|
+
],
|
|
397
|
+
"status": "pass"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"type": "Metadata",
|
|
401
|
+
"spec": "operation",
|
|
402
|
+
"definition": [
|
|
403
|
+
"Metadata.operation test",
|
|
404
|
+
"and Operation imported",
|
|
405
|
+
"and Operation is defined",
|
|
406
|
+
"and Operation is an object",
|
|
407
|
+
"then Operation.PIN is defined"
|
|
408
|
+
],
|
|
409
|
+
"status": "pass"
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
"type": "Metadata",
|
|
413
|
+
"spec": "operation",
|
|
414
|
+
"definition": [
|
|
415
|
+
"Metadata.operation test",
|
|
416
|
+
"and Operation imported",
|
|
417
|
+
"and Operation is defined",
|
|
418
|
+
"and Operation is an object",
|
|
419
|
+
"then Operation.HIDE is defined"
|
|
420
|
+
],
|
|
421
|
+
"status": "pass"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"type": "Event",
|
|
425
|
+
"spec": "onhide",
|
|
426
|
+
"definition": [
|
|
427
|
+
"Event.onhide test",
|
|
428
|
+
"and Pin is defined in custom element registry",
|
|
429
|
+
"and HTML Template is added to DOM",
|
|
430
|
+
"and a new pin is added to DOM",
|
|
431
|
+
"then pin.onhide setter is defined"
|
|
432
|
+
],
|
|
433
|
+
"status": "pass"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"type": "Event",
|
|
437
|
+
"spec": "onhide",
|
|
438
|
+
"definition": [
|
|
439
|
+
"Event.onhide test",
|
|
440
|
+
"and Pin is defined in custom element registry",
|
|
441
|
+
"and HTML Template is added to DOM",
|
|
442
|
+
"and a new pin is added to DOM",
|
|
443
|
+
"and pin.onhide setter is defined",
|
|
444
|
+
"and pin.onhide is set to new listener ",
|
|
445
|
+
"when pin.visible set to Visible.NO",
|
|
446
|
+
"then onhide2 is called"
|
|
447
|
+
],
|
|
448
|
+
"status": "pass"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"type": "Event",
|
|
452
|
+
"spec": "onhide",
|
|
453
|
+
"definition": [
|
|
454
|
+
"Event.onhide test",
|
|
455
|
+
"and Pin is defined in custom element registry",
|
|
456
|
+
"and HTML Template is added to DOM",
|
|
457
|
+
"and a new pin is added to DOM",
|
|
458
|
+
"and pin.onhide setter is defined",
|
|
459
|
+
"and pin.onhide is set to new listener ",
|
|
460
|
+
"when pin.visible set to Visible.NO",
|
|
461
|
+
"then onhide is not called"
|
|
462
|
+
],
|
|
463
|
+
"status": "pass"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"type": "utility",
|
|
467
|
+
"spec": "template",
|
|
468
|
+
"definition": [
|
|
469
|
+
"Utility.template test",
|
|
470
|
+
"and Pin.Template static property is defined",
|
|
471
|
+
"then Pin.Template is a Template"
|
|
472
|
+
],
|
|
473
|
+
"status": "pass"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"type": "utility",
|
|
477
|
+
"spec": "template",
|
|
478
|
+
"definition": [
|
|
479
|
+
"Utility.template test",
|
|
480
|
+
"then Pin.Template static property is defined"
|
|
481
|
+
],
|
|
482
|
+
"status": "pass"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"type": "composition",
|
|
486
|
+
"spec": "CSS",
|
|
487
|
+
"definition": [
|
|
488
|
+
"Composition.CSS test",
|
|
489
|
+
"Given Pin is defined in custom element registry",
|
|
490
|
+
"and HTML Template is added to DOM",
|
|
491
|
+
"and a new component is added to DOM",
|
|
492
|
+
"then component.root contents contains a link to stylesheet"
|
|
493
|
+
],
|
|
494
|
+
"status": "pass"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"type": "Operation",
|
|
498
|
+
"spec": "show",
|
|
499
|
+
"definition": [
|
|
500
|
+
"Operation.show test",
|
|
501
|
+
"and Pin is defined in custom element registry",
|
|
502
|
+
"and HTML Template is added to DOM",
|
|
503
|
+
"and a new pin is added to DOM",
|
|
504
|
+
"and pin.visible is set to Visible.NO",
|
|
505
|
+
"when pin.show() is called",
|
|
506
|
+
"then pin.visible is Visible.YES"
|
|
507
|
+
],
|
|
508
|
+
"status": "pass"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"type": "Operation",
|
|
512
|
+
"spec": "show",
|
|
513
|
+
"definition": [
|
|
514
|
+
"Operation.show test",
|
|
515
|
+
"and Pin is defined in custom element registry",
|
|
516
|
+
"and HTML Template is added to DOM",
|
|
517
|
+
"and a new pin is added to DOM",
|
|
518
|
+
"and pin.visible is set to Visible.NO",
|
|
519
|
+
"then pin.visible is Visible.NO"
|
|
520
|
+
],
|
|
521
|
+
"status": "pass"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
"type": "Operation",
|
|
525
|
+
"spec": "show",
|
|
526
|
+
"definition": [
|
|
527
|
+
"Operation.show test",
|
|
528
|
+
"and Pin is defined in custom element registry",
|
|
529
|
+
"and HTML Template is added to DOM",
|
|
530
|
+
"and a new pin is added to DOM",
|
|
531
|
+
"then pin.show() method is defined"
|
|
532
|
+
],
|
|
533
|
+
"status": "pass"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"type": "configuration",
|
|
537
|
+
"spec": "Tag",
|
|
538
|
+
"definition": [
|
|
539
|
+
"Configuration.Tag test",
|
|
540
|
+
"and Pin imported",
|
|
541
|
+
"then Pin is defined"
|
|
542
|
+
],
|
|
543
|
+
"status": "pass"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"type": "configuration",
|
|
547
|
+
"spec": "Tag",
|
|
548
|
+
"definition": [
|
|
549
|
+
"Configuration.Tag test",
|
|
550
|
+
"and Pin imported",
|
|
551
|
+
"and Pin is defined",
|
|
552
|
+
"then Pin.Tag static getter is defined"
|
|
553
|
+
],
|
|
554
|
+
"status": "pass"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"type": "configuration",
|
|
558
|
+
"spec": "Tag",
|
|
559
|
+
"definition": [
|
|
560
|
+
"Configuration.Tag test",
|
|
561
|
+
"and Pin imported",
|
|
562
|
+
"and Pin is defined",
|
|
563
|
+
"and Pin.Tag static getter is defined",
|
|
564
|
+
"then Pin.Tag is Tag"
|
|
565
|
+
],
|
|
566
|
+
"status": "pass"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
"type": "composition",
|
|
570
|
+
"spec": "Template",
|
|
571
|
+
"definition": [
|
|
572
|
+
"Composition.Template test",
|
|
573
|
+
"Given Pin is defined in custom element registry",
|
|
574
|
+
"and HTML Template is added to DOM",
|
|
575
|
+
"then template is defined"
|
|
576
|
+
],
|
|
577
|
+
"status": "pass"
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
"type": "composition",
|
|
581
|
+
"spec": "Template",
|
|
582
|
+
"definition": [
|
|
583
|
+
"Composition.Template test",
|
|
584
|
+
"Given Pin is defined in custom element registry",
|
|
585
|
+
"and HTML Template is added to DOM",
|
|
586
|
+
"and template contains a div with class icon",
|
|
587
|
+
"then div with class icon contains an svg with class pinned"
|
|
588
|
+
],
|
|
589
|
+
"status": "pass"
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"type": "composition",
|
|
593
|
+
"spec": "Template",
|
|
594
|
+
"definition": [
|
|
595
|
+
"Composition.Template test",
|
|
596
|
+
"Given Pin is defined in custom element registry",
|
|
597
|
+
"and HTML Template is added to DOM",
|
|
598
|
+
"and template contains a div with class icon",
|
|
599
|
+
"then div with class icon contains an svg with class pinned"
|
|
600
|
+
],
|
|
601
|
+
"status": "pass"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"type": "composition",
|
|
605
|
+
"spec": "Template",
|
|
606
|
+
"definition": [
|
|
607
|
+
"Composition.Template test",
|
|
608
|
+
"Given Pin is defined in custom element registry",
|
|
609
|
+
"and HTML Template is added to DOM",
|
|
610
|
+
"and a new component is added to DOM",
|
|
611
|
+
"then component.root contents contains template contents"
|
|
612
|
+
],
|
|
613
|
+
"status": "pass"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"type": "composition",
|
|
617
|
+
"spec": "Template",
|
|
618
|
+
"definition": [
|
|
619
|
+
"Composition.Template test",
|
|
620
|
+
"Given Pin is defined in custom element registry",
|
|
621
|
+
"and HTML Template is added to DOM",
|
|
622
|
+
"and template is defined",
|
|
623
|
+
"then template contains a div with class icon"
|
|
624
|
+
],
|
|
625
|
+
"status": "pass"
|
|
626
|
+
},
|
|
627
|
+
{
|
|
628
|
+
"type": "Metadata",
|
|
629
|
+
"spec": "gesture",
|
|
630
|
+
"definition": [
|
|
631
|
+
"Metadata.gesture test",
|
|
632
|
+
"and Gesture imported",
|
|
633
|
+
"and Gesture is defined",
|
|
634
|
+
"and Gesture is an object",
|
|
635
|
+
"then Gesture.CLICK is defined"
|
|
636
|
+
],
|
|
637
|
+
"status": "pass"
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
"type": "Metadata",
|
|
641
|
+
"spec": "gesture",
|
|
642
|
+
"definition": [
|
|
643
|
+
"Metadata.gesture test",
|
|
644
|
+
"and Gesture imported",
|
|
645
|
+
"and Gesture is defined",
|
|
646
|
+
"then Gesture is an object"
|
|
647
|
+
],
|
|
648
|
+
"status": "pass"
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"type": "Metadata",
|
|
652
|
+
"spec": "gesture",
|
|
653
|
+
"definition": [
|
|
654
|
+
"Metadata.gesture test",
|
|
655
|
+
"and Gesture imported",
|
|
656
|
+
"then Gesture is defined"
|
|
657
|
+
],
|
|
658
|
+
"status": "pass"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
"type": "State",
|
|
662
|
+
"spec": "status",
|
|
663
|
+
"definition": [
|
|
664
|
+
"State.status test",
|
|
665
|
+
"Given Pin is defined in custom element registry",
|
|
666
|
+
"and a HTML Template is added to DOM",
|
|
667
|
+
"and a new pin is added to DOM",
|
|
668
|
+
"when pin.status is set to invalid value",
|
|
669
|
+
"and pin.status setter throws",
|
|
670
|
+
"then error message contains 'Invalid status value'"
|
|
671
|
+
],
|
|
672
|
+
"status": "pass"
|
|
673
|
+
},
|
|
674
|
+
{
|
|
675
|
+
"type": "State",
|
|
676
|
+
"spec": "status",
|
|
677
|
+
"definition": [
|
|
678
|
+
"State.status test",
|
|
679
|
+
"Given Pin is defined in custom element registry",
|
|
680
|
+
"and a HTML Template is added to DOM",
|
|
681
|
+
"and a new pin is added to DOM",
|
|
682
|
+
"when pin.status is set to invalid value",
|
|
683
|
+
"then pin.status setter throws"
|
|
684
|
+
],
|
|
685
|
+
"status": "pass"
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"type": "State",
|
|
689
|
+
"spec": "status",
|
|
690
|
+
"definition": [
|
|
691
|
+
"State.status test",
|
|
692
|
+
"Given Pin is defined in custom element registry",
|
|
693
|
+
"and a HTML Template is added to DOM",
|
|
694
|
+
"and a new pin is added to DOM",
|
|
695
|
+
"when status attribute is set to Status.PINNED",
|
|
696
|
+
"then pin.status is Status.PINNED"
|
|
697
|
+
],
|
|
698
|
+
"status": "pass"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"type": "State",
|
|
702
|
+
"spec": "status",
|
|
703
|
+
"definition": [
|
|
704
|
+
"State.status test",
|
|
705
|
+
"Given Pin is defined in custom element registry",
|
|
706
|
+
"and a HTML Template is added to DOM",
|
|
707
|
+
"and a new pin is added to DOM",
|
|
708
|
+
"then status attribute is Status.UNPINNED"
|
|
709
|
+
],
|
|
710
|
+
"status": "pass"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"type": "State",
|
|
714
|
+
"spec": "status",
|
|
715
|
+
"definition": [
|
|
716
|
+
"State.status test",
|
|
717
|
+
"Given Pin is defined in custom element registry",
|
|
718
|
+
"and a HTML Template is added to DOM",
|
|
719
|
+
"and a new pin is added to DOM",
|
|
720
|
+
"and pin.status getter is defined",
|
|
721
|
+
"then pin.status is Status.UNPINNED"
|
|
722
|
+
],
|
|
723
|
+
"status": "pass"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"type": "State",
|
|
727
|
+
"spec": "status",
|
|
728
|
+
"definition": [
|
|
729
|
+
"State.status test",
|
|
730
|
+
"Given Pin is defined in custom element registry",
|
|
731
|
+
"and a HTML Template is added to DOM",
|
|
732
|
+
"and a new pin is added to DOM",
|
|
733
|
+
"when pin.status is set to Status.PINNED",
|
|
734
|
+
"then status attribute is set to Status.PINNED"
|
|
735
|
+
],
|
|
736
|
+
"status": "pass"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"type": "State",
|
|
740
|
+
"spec": "status",
|
|
741
|
+
"definition": [
|
|
742
|
+
"State.status test",
|
|
743
|
+
"Given Pin is defined in custom element registry",
|
|
744
|
+
"and a HTML Template is added to DOM",
|
|
745
|
+
"and a new pin is added to DOM",
|
|
746
|
+
"when pin.status is set to Status.PINNED",
|
|
747
|
+
"then pin.status is Status.PINNED"
|
|
748
|
+
],
|
|
749
|
+
"status": "pass"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"type": "State",
|
|
753
|
+
"spec": "status",
|
|
754
|
+
"definition": [
|
|
755
|
+
"State.status test",
|
|
756
|
+
"Given Pin is defined in custom element registry",
|
|
757
|
+
"and a HTML Template is added to DOM",
|
|
758
|
+
"and a new pin is added to DOM",
|
|
759
|
+
"then pin.status getter is defined"
|
|
760
|
+
],
|
|
761
|
+
"status": "pass"
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "Event",
|
|
765
|
+
"spec": "on",
|
|
766
|
+
"definition": [
|
|
767
|
+
"Event.on test",
|
|
768
|
+
"and Pin is defined in custom element registry",
|
|
769
|
+
"and HTML Template is added to DOM",
|
|
770
|
+
"and a new pin is added to DOM",
|
|
771
|
+
"and pin.on setter is defined",
|
|
772
|
+
"and pin.on is set to new listener ",
|
|
773
|
+
"when pin.visible set to Visible.NO",
|
|
774
|
+
"then on2 is called"
|
|
775
|
+
],
|
|
776
|
+
"status": "pass"
|
|
777
|
+
},
|
|
778
|
+
{
|
|
779
|
+
"type": "Event",
|
|
780
|
+
"spec": "on",
|
|
781
|
+
"definition": [
|
|
782
|
+
"Event.on test",
|
|
783
|
+
"and Pin is defined in custom element registry",
|
|
784
|
+
"and HTML Template is added to DOM",
|
|
785
|
+
"and a new pin is added to DOM",
|
|
786
|
+
"and pin.on setter is defined",
|
|
787
|
+
"and pin.on is set to new listener ",
|
|
788
|
+
"when pin.visible set to Visible.NO",
|
|
789
|
+
"then on is not called"
|
|
790
|
+
],
|
|
791
|
+
"status": "pass"
|
|
792
|
+
},
|
|
793
|
+
{
|
|
794
|
+
"type": "Event",
|
|
795
|
+
"spec": "on",
|
|
796
|
+
"definition": [
|
|
797
|
+
"Event.on test",
|
|
798
|
+
"and Pin is defined in custom element registry",
|
|
799
|
+
"and HTML Template is added to DOM",
|
|
800
|
+
"and a new pin is added to DOM",
|
|
801
|
+
"and pin.on setter is defined",
|
|
802
|
+
"when pin.visible set to Visible.NO",
|
|
803
|
+
"then on is called with `visible: Visible.NO`"
|
|
804
|
+
],
|
|
805
|
+
"status": "pass"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
"type": "Event",
|
|
809
|
+
"spec": "on",
|
|
810
|
+
"definition": [
|
|
811
|
+
"Event.on test",
|
|
812
|
+
"and Pin is defined in custom element registry",
|
|
813
|
+
"and HTML Template is added to DOM",
|
|
814
|
+
"and a new pin is added to DOM",
|
|
815
|
+
"then pin.on setter is defined"
|
|
816
|
+
],
|
|
817
|
+
"status": "pass"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
"type": "Gesture",
|
|
821
|
+
"spec": "click",
|
|
822
|
+
"definition": [
|
|
823
|
+
"Gesture.click test",
|
|
824
|
+
"and Pin is defined in custom element registry",
|
|
825
|
+
"and HTML Template is added to DOM",
|
|
826
|
+
"and a new pin is added to DOM",
|
|
827
|
+
"when user click on icon",
|
|
828
|
+
"and user clicks on pin",
|
|
829
|
+
"then pin.status is Status.UNPINNED"
|
|
830
|
+
],
|
|
831
|
+
"status": "pass"
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
"type": "Gesture",
|
|
835
|
+
"spec": "click",
|
|
836
|
+
"definition": [
|
|
837
|
+
"Gesture.click test",
|
|
838
|
+
"and Pin is defined in custom element registry",
|
|
839
|
+
"and HTML Template is added to DOM",
|
|
840
|
+
"and a new pin is added to DOM",
|
|
841
|
+
"when user click on icon",
|
|
842
|
+
"and user clicks on pin",
|
|
843
|
+
"then onunpin is called"
|
|
844
|
+
],
|
|
845
|
+
"status": "pass"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"type": "Gesture",
|
|
849
|
+
"spec": "click",
|
|
850
|
+
"definition": [
|
|
851
|
+
"Gesture.click test",
|
|
852
|
+
"and Pin is defined in custom element registry",
|
|
853
|
+
"and HTML Template is added to DOM",
|
|
854
|
+
"and a new pin is added to DOM",
|
|
855
|
+
"when user click on icon",
|
|
856
|
+
"then onpin is called"
|
|
857
|
+
],
|
|
858
|
+
"status": "pass"
|
|
859
|
+
},
|
|
860
|
+
{
|
|
861
|
+
"type": "Gesture",
|
|
862
|
+
"spec": "click",
|
|
863
|
+
"definition": [
|
|
864
|
+
"Gesture.click test",
|
|
865
|
+
"and Pin is defined in custom element registry",
|
|
866
|
+
"and HTML Template is added to DOM",
|
|
867
|
+
"and a new pin is added to DOM",
|
|
868
|
+
"when user click on icon",
|
|
869
|
+
"then pin.status is State.PINNED"
|
|
870
|
+
],
|
|
871
|
+
"status": "pass"
|
|
872
|
+
},
|
|
873
|
+
{
|
|
874
|
+
"type": "Operation",
|
|
875
|
+
"spec": "toggle",
|
|
876
|
+
"definition": [
|
|
877
|
+
"Operation.toggle test",
|
|
878
|
+
"and Pin is defined in custom element registry",
|
|
879
|
+
"and HTML Template is added to DOM",
|
|
880
|
+
"and a new pin is added to DOM",
|
|
881
|
+
"and pin.toggle() method is defined",
|
|
882
|
+
"when pin.toggle() is called",
|
|
883
|
+
"when pin.toggle() is called again",
|
|
884
|
+
"then pin.status is Status.UNPINNED"
|
|
885
|
+
],
|
|
886
|
+
"status": "pass"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"type": "Operation",
|
|
890
|
+
"spec": "toggle",
|
|
891
|
+
"definition": [
|
|
892
|
+
"Operation.toggle test",
|
|
893
|
+
"and Pin is defined in custom element registry",
|
|
894
|
+
"and HTML Template is added to DOM",
|
|
895
|
+
"and a new pin is added to DOM",
|
|
896
|
+
"and pin.toggle() method is defined",
|
|
897
|
+
"when pin.toggle() is called",
|
|
898
|
+
"then pin.status is Status.PINNED"
|
|
899
|
+
],
|
|
900
|
+
"status": "pass"
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
"type": "Operation",
|
|
904
|
+
"spec": "toggle",
|
|
905
|
+
"definition": [
|
|
906
|
+
"Operation.toggle test",
|
|
907
|
+
"and Pin is defined in custom element registry",
|
|
908
|
+
"and HTML Template is added to DOM",
|
|
909
|
+
"and a new pin is added to DOM",
|
|
910
|
+
"then pin.toggle() method is defined"
|
|
911
|
+
],
|
|
912
|
+
"status": "pass"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
"type": "Validation",
|
|
916
|
+
"spec": "status",
|
|
917
|
+
"definition": [
|
|
918
|
+
"Validation.status test",
|
|
919
|
+
"Given Validate imported",
|
|
920
|
+
"and value is a valid status state",
|
|
921
|
+
"when Validate.status(value) is called",
|
|
922
|
+
"then does not throw an error"
|
|
923
|
+
],
|
|
924
|
+
"status": "pass"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"type": "Validation",
|
|
928
|
+
"spec": "status",
|
|
929
|
+
"definition": [
|
|
930
|
+
"Validation.status test",
|
|
931
|
+
"Given Validate imported",
|
|
932
|
+
"and value is an invalid status state",
|
|
933
|
+
"when Validate.status(value) is called",
|
|
934
|
+
"then Validate.status(value) throws"
|
|
935
|
+
],
|
|
936
|
+
"status": "pass"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"type": "Validation",
|
|
940
|
+
"spec": "status",
|
|
941
|
+
"definition": [
|
|
942
|
+
"Validation.status test",
|
|
943
|
+
"Given Validate imported",
|
|
944
|
+
"and value is an invalid status state",
|
|
945
|
+
"when Validate.status(value) is called",
|
|
946
|
+
"and error message contains 'Invalid status value'",
|
|
947
|
+
"then error message contains 'Invalid status value'"
|
|
948
|
+
],
|
|
949
|
+
"status": "pass"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"type": "Metadata",
|
|
953
|
+
"spec": "state",
|
|
954
|
+
"definition": [
|
|
955
|
+
"Metadata.state test",
|
|
956
|
+
"and Visible imported",
|
|
957
|
+
"then Visible is defined"
|
|
958
|
+
],
|
|
959
|
+
"status": "pass"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"type": "Metadata",
|
|
963
|
+
"spec": "state",
|
|
964
|
+
"definition": [
|
|
965
|
+
"Metadata.state test",
|
|
966
|
+
"and Visible imported",
|
|
967
|
+
"and Visible is defined",
|
|
968
|
+
"then Visible.NO is defined"
|
|
969
|
+
],
|
|
970
|
+
"status": "pass"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"type": "Metadata",
|
|
974
|
+
"spec": "state",
|
|
975
|
+
"definition": [
|
|
976
|
+
"Metadata.state test",
|
|
977
|
+
"and Visible imported",
|
|
978
|
+
"and Visible is defined",
|
|
979
|
+
"then Visible.YES is defined"
|
|
980
|
+
],
|
|
981
|
+
"status": "pass"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"type": "Metadata",
|
|
985
|
+
"spec": "state",
|
|
986
|
+
"definition": [
|
|
987
|
+
"Metadata.state test",
|
|
988
|
+
"and Status imported",
|
|
989
|
+
"then Status is defined"
|
|
990
|
+
],
|
|
991
|
+
"status": "pass"
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"type": "Metadata",
|
|
995
|
+
"spec": "state",
|
|
996
|
+
"definition": [
|
|
997
|
+
"Metadata.state test",
|
|
998
|
+
"and Status imported",
|
|
999
|
+
"and Status is defined",
|
|
1000
|
+
"then Status.PINNED is defined"
|
|
1001
|
+
],
|
|
1002
|
+
"status": "pass"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"type": "Metadata",
|
|
1006
|
+
"spec": "state",
|
|
1007
|
+
"definition": [
|
|
1008
|
+
"Metadata.state test",
|
|
1009
|
+
"and Status imported",
|
|
1010
|
+
"and Status is defined",
|
|
1011
|
+
"then Status.UNPINNED is defined"
|
|
1012
|
+
],
|
|
1013
|
+
"status": "pass"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"type": "Metadata",
|
|
1017
|
+
"spec": "state",
|
|
1018
|
+
"definition": [
|
|
1019
|
+
"Metadata.state test",
|
|
1020
|
+
"and State imported",
|
|
1021
|
+
"and State is an object",
|
|
1022
|
+
"then State has STATUS"
|
|
1023
|
+
],
|
|
1024
|
+
"status": "pass"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"type": "Metadata",
|
|
1028
|
+
"spec": "state",
|
|
1029
|
+
"definition": [
|
|
1030
|
+
"Metadata.state test",
|
|
1031
|
+
"and State imported",
|
|
1032
|
+
"and State is an object",
|
|
1033
|
+
"then State has VISIBLE"
|
|
1034
|
+
],
|
|
1035
|
+
"status": "pass"
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
"type": "Metadata",
|
|
1039
|
+
"spec": "state",
|
|
1040
|
+
"definition": [
|
|
1041
|
+
"Metadata.state test",
|
|
1042
|
+
"and State imported",
|
|
1043
|
+
"then State is defined"
|
|
1044
|
+
],
|
|
1045
|
+
"status": "pass"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"type": "Metadata",
|
|
1049
|
+
"spec": "state",
|
|
1050
|
+
"definition": [
|
|
1051
|
+
"Metadata.state test",
|
|
1052
|
+
"and State imported",
|
|
1053
|
+
"and State is defined",
|
|
1054
|
+
"then State is an object"
|
|
1055
|
+
],
|
|
1056
|
+
"status": "pass"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"type": "configuration",
|
|
1060
|
+
"spec": "Attributes",
|
|
1061
|
+
"definition": [
|
|
1062
|
+
"Configuration.Attributes test",
|
|
1063
|
+
"and Pin imported",
|
|
1064
|
+
"and Pin is defined",
|
|
1065
|
+
"and Pin.Attributes static getter is defined",
|
|
1066
|
+
"then Pin.Attributes is Attribute"
|
|
1067
|
+
],
|
|
1068
|
+
"status": "pass"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"type": "configuration",
|
|
1072
|
+
"spec": "Attributes",
|
|
1073
|
+
"definition": [
|
|
1074
|
+
"Configuration.Attributes test",
|
|
1075
|
+
"and Pin imported",
|
|
1076
|
+
"and Pin is defined",
|
|
1077
|
+
"then Pin.Attributes static getter is defined"
|
|
1078
|
+
],
|
|
1079
|
+
"status": "pass"
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"type": "configuration",
|
|
1083
|
+
"spec": "Attributes",
|
|
1084
|
+
"definition": [
|
|
1085
|
+
"Configuration.Attributes test",
|
|
1086
|
+
"and Pin imported",
|
|
1087
|
+
"then Pin is defined"
|
|
1088
|
+
],
|
|
1089
|
+
"status": "pass"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"type": "Event",
|
|
1093
|
+
"spec": "onunpin",
|
|
1094
|
+
"definition": [
|
|
1095
|
+
"Event.onunpin test",
|
|
1096
|
+
"and Pin is defined in custom element registry",
|
|
1097
|
+
"and HTML Template is added to DOM",
|
|
1098
|
+
"and a new pin is added to DOM",
|
|
1099
|
+
"and pin.status is set to Status.PINNED",
|
|
1100
|
+
"and pin.onunpin setter is defined",
|
|
1101
|
+
"when pin.status set to Status.UNPINNED",
|
|
1102
|
+
"then onunpin is called with `status: Status.UNPINNED`"
|
|
1103
|
+
],
|
|
1104
|
+
"status": "pass"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"type": "Event",
|
|
1108
|
+
"spec": "onunpin",
|
|
1109
|
+
"definition": [
|
|
1110
|
+
"Event.onunpin test",
|
|
1111
|
+
"and Pin is defined in custom element registry",
|
|
1112
|
+
"and HTML Template is added to DOM",
|
|
1113
|
+
"and a new pin is added to DOM",
|
|
1114
|
+
"and pin.status is set to Status.PINNED",
|
|
1115
|
+
"and pin.onunpin setter is defined",
|
|
1116
|
+
"and pin.onunpin is set to new listener ",
|
|
1117
|
+
"when pin.status set to Status.UNPINNED",
|
|
1118
|
+
"then onunpin is not called"
|
|
1119
|
+
],
|
|
1120
|
+
"status": "pass"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"type": "Event",
|
|
1124
|
+
"spec": "onunpin",
|
|
1125
|
+
"definition": [
|
|
1126
|
+
"Event.onunpin test",
|
|
1127
|
+
"and Pin is defined in custom element registry",
|
|
1128
|
+
"and HTML Template is added to DOM",
|
|
1129
|
+
"and a new pin is added to DOM",
|
|
1130
|
+
"and pin.status is set to Status.PINNED",
|
|
1131
|
+
"and pin.onunpin setter is defined",
|
|
1132
|
+
"and pin.onunpin is set to new listener ",
|
|
1133
|
+
"when pin.status set to Status.UNPINNED",
|
|
1134
|
+
"then onunpin2 is called"
|
|
1135
|
+
],
|
|
1136
|
+
"status": "pass"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"type": "Event",
|
|
1140
|
+
"spec": "onunpin",
|
|
1141
|
+
"definition": [
|
|
1142
|
+
"Event.onunpin test",
|
|
1143
|
+
"and Pin is defined in custom element registry",
|
|
1144
|
+
"and HTML Template is added to DOM",
|
|
1145
|
+
"and a new pin is added to DOM",
|
|
1146
|
+
"then pin.onunpin setter is defined"
|
|
1147
|
+
],
|
|
1148
|
+
"status": "pass"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"type": "Metadata",
|
|
1152
|
+
"spec": "event",
|
|
1153
|
+
"definition": [
|
|
1154
|
+
"Metadata.event test",
|
|
1155
|
+
"and Event imported",
|
|
1156
|
+
"and Event is defined",
|
|
1157
|
+
"then Event is an object"
|
|
1158
|
+
],
|
|
1159
|
+
"status": "pass"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"type": "Metadata",
|
|
1163
|
+
"spec": "event",
|
|
1164
|
+
"definition": [
|
|
1165
|
+
"Metadata.event test",
|
|
1166
|
+
"and Event imported",
|
|
1167
|
+
"and Event is defined",
|
|
1168
|
+
"and Event is an object",
|
|
1169
|
+
"then Event.ON_UNPIN is defined"
|
|
1170
|
+
],
|
|
1171
|
+
"status": "pass"
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
"type": "Metadata",
|
|
1175
|
+
"spec": "event",
|
|
1176
|
+
"definition": [
|
|
1177
|
+
"Metadata.event test",
|
|
1178
|
+
"and Event imported",
|
|
1179
|
+
"and Event is defined",
|
|
1180
|
+
"and Event is an object",
|
|
1181
|
+
"then Event.ON_PIN is defined"
|
|
1182
|
+
],
|
|
1183
|
+
"status": "pass"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"type": "Metadata",
|
|
1187
|
+
"spec": "event",
|
|
1188
|
+
"definition": [
|
|
1189
|
+
"Metadata.event test",
|
|
1190
|
+
"and Event imported",
|
|
1191
|
+
"and Event is defined",
|
|
1192
|
+
"and Event is an object",
|
|
1193
|
+
"then Event.ON_SHOW is defined"
|
|
1194
|
+
],
|
|
1195
|
+
"status": "pass"
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
"type": "Metadata",
|
|
1199
|
+
"spec": "event",
|
|
1200
|
+
"definition": [
|
|
1201
|
+
"Metadata.event test",
|
|
1202
|
+
"and Event imported",
|
|
1203
|
+
"and Event is defined",
|
|
1204
|
+
"and Event is an object",
|
|
1205
|
+
"then Event.ON_HIDE is defined"
|
|
1206
|
+
],
|
|
1207
|
+
"status": "pass"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"type": "Metadata",
|
|
1211
|
+
"spec": "event",
|
|
1212
|
+
"definition": [
|
|
1213
|
+
"Metadata.event test",
|
|
1214
|
+
"and Event imported",
|
|
1215
|
+
"and Event is defined",
|
|
1216
|
+
"and Event is an object",
|
|
1217
|
+
"then Event.ON is defined"
|
|
1218
|
+
],
|
|
1219
|
+
"status": "pass"
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
"type": "Metadata",
|
|
1223
|
+
"spec": "event",
|
|
1224
|
+
"definition": [
|
|
1225
|
+
"Metadata.event test",
|
|
1226
|
+
"and Event imported",
|
|
1227
|
+
"then Event is defined"
|
|
1228
|
+
],
|
|
1229
|
+
"status": "pass"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"type": "Event",
|
|
1233
|
+
"spec": "onshow",
|
|
1234
|
+
"definition": [
|
|
1235
|
+
"Event.onshow test",
|
|
1236
|
+
"and Pin is defined in custom element registry",
|
|
1237
|
+
"and HTML Template is added to DOM",
|
|
1238
|
+
"and a new pin is added to DOM",
|
|
1239
|
+
"then pin.onshow setter is defined"
|
|
1240
|
+
],
|
|
1241
|
+
"status": "pass"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"type": "Event",
|
|
1245
|
+
"spec": "onshow",
|
|
1246
|
+
"definition": [
|
|
1247
|
+
"Event.onshow test",
|
|
1248
|
+
"and Pin is defined in custom element registry",
|
|
1249
|
+
"and HTML Template is added to DOM",
|
|
1250
|
+
"and a new pin is added to DOM",
|
|
1251
|
+
"and pin.visible is set to Visible.NO",
|
|
1252
|
+
"and pin.onshow setter is defined",
|
|
1253
|
+
"when pin.visible set to Visible.YES",
|
|
1254
|
+
"then onshow is called"
|
|
1255
|
+
],
|
|
1256
|
+
"status": "pass"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"type": "Event",
|
|
1260
|
+
"spec": "onshow",
|
|
1261
|
+
"definition": [
|
|
1262
|
+
"Event.onshow test",
|
|
1263
|
+
"and Pin is defined in custom element registry",
|
|
1264
|
+
"and HTML Template is added to DOM",
|
|
1265
|
+
"and a new pin is added to DOM",
|
|
1266
|
+
"and pin.visible is set to Visible.NO",
|
|
1267
|
+
"and pin.onshow setter is defined",
|
|
1268
|
+
"when pin.visible set to Visible.YES",
|
|
1269
|
+
"then onshow is called with `visible: Visible.YES`"
|
|
1270
|
+
],
|
|
1271
|
+
"status": "pass"
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
"type": "Event",
|
|
1275
|
+
"spec": "onshow",
|
|
1276
|
+
"definition": [
|
|
1277
|
+
"Event.onshow test",
|
|
1278
|
+
"and Pin is defined in custom element registry",
|
|
1279
|
+
"and HTML Template is added to DOM",
|
|
1280
|
+
"and a new pin is added to DOM",
|
|
1281
|
+
"and pin.visible is set to Visible.NO",
|
|
1282
|
+
"and pin.onshow setter is defined",
|
|
1283
|
+
"and pin.onshow is set to new listener ",
|
|
1284
|
+
"when pin.visible set to Visible.YES",
|
|
1285
|
+
"then onshow2 is called"
|
|
1286
|
+
],
|
|
1287
|
+
"status": "pass"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"type": "Event",
|
|
1291
|
+
"spec": "onshow",
|
|
1292
|
+
"definition": [
|
|
1293
|
+
"Event.onshow test",
|
|
1294
|
+
"and Pin is defined in custom element registry",
|
|
1295
|
+
"and HTML Template is added to DOM",
|
|
1296
|
+
"and a new pin is added to DOM",
|
|
1297
|
+
"and pin.visible is set to Visible.NO",
|
|
1298
|
+
"and pin.onshow setter is defined",
|
|
1299
|
+
"and pin.onshow is set to new listener ",
|
|
1300
|
+
"when pin.visible set to Visible.YES",
|
|
1301
|
+
"then onshow is not called"
|
|
1302
|
+
],
|
|
1303
|
+
"status": "pass"
|
|
1304
|
+
}
|
|
1305
|
+
]
|