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