@skyux/popovers 8.0.2 → 8.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/documentation.json +1503 -11
- package/esm2020/testing/dropdown/harness/dropdown-harness.filters.mjs +2 -0
- package/esm2020/testing/dropdown/harness/dropdown-harness.mjs +99 -0
- package/esm2020/testing/dropdown/harness/dropdown-item-harness.filters.mjs +2 -0
- package/esm2020/testing/dropdown/harness/dropdown-item-harness.mjs +44 -0
- package/esm2020/testing/dropdown/harness/dropdown-menu-harness.filters.mjs +2 -0
- package/esm2020/testing/dropdown/harness/dropdown-menu-harness.mjs +69 -0
- package/esm2020/testing/dropdown/popovers-fixture-dropdown-item.mjs +1 -1
- package/esm2020/testing/public-api.mjs +7 -1
- package/fesm2015/skyux-popovers-testing.mjs +240 -1
- package/fesm2015/skyux-popovers-testing.mjs.map +1 -1
- package/fesm2020/skyux-popovers-testing.mjs +205 -1
- package/fesm2020/skyux-popovers-testing.mjs.map +1 -1
- package/package.json +7 -6
- package/testing/dropdown/harness/dropdown-harness.d.ts +48 -0
- package/testing/dropdown/harness/dropdown-harness.filters.d.ts +6 -0
- package/testing/dropdown/harness/dropdown-item-harness.d.ts +27 -0
- package/testing/dropdown/harness/dropdown-item-harness.filters.d.ts +14 -0
- package/testing/dropdown/harness/dropdown-menu-harness.d.ts +42 -0
- package/testing/dropdown/harness/dropdown-menu-harness.filters.d.ts +6 -0
- package/testing/dropdown/popovers-fixture-dropdown-item.d.ts +3 -0
- package/testing/public-api.d.ts +6 -0
package/documentation.json
CHANGED
|
@@ -17,7 +17,12 @@
|
|
|
17
17
|
"SkyPopoverPlacement": "type-alias-skypopoverplacement",
|
|
18
18
|
"SkyPopoverTrigger": "type-alias-skypopovertrigger",
|
|
19
19
|
"SkyPopoverType": "type-alias-skypopovertype",
|
|
20
|
-
"
|
|
20
|
+
"SkyDropdownHarness": "class-skydropdownharness",
|
|
21
|
+
"SkyDropdownItemHarness": "class-skydropdownitemharness",
|
|
22
|
+
"SkyDropdownMenuHarness": "class-skydropdownmenuharness",
|
|
23
|
+
"SkyDropdownHarnessFilters": "interface-skydropdownharnessfilters",
|
|
24
|
+
"SkyDropdownItemHarnessFilters": "interface-skydropdownitemharnessfilters",
|
|
25
|
+
"SkyDropdownMenuHarnessFilters": "interface-skydropdownmenuharnessfilters"
|
|
21
26
|
},
|
|
22
27
|
"typedoc": {
|
|
23
28
|
"id": 0,
|
|
@@ -3836,22 +3841,1403 @@
|
|
|
3836
3841
|
}
|
|
3837
3842
|
},
|
|
3838
3843
|
{
|
|
3839
|
-
"id":
|
|
3840
|
-
"name": "
|
|
3844
|
+
"id": 491,
|
|
3845
|
+
"name": "SkyDropdownHarness",
|
|
3846
|
+
"kind": 128,
|
|
3847
|
+
"kindString": "Class",
|
|
3848
|
+
"flags": {},
|
|
3849
|
+
"children": [
|
|
3850
|
+
{
|
|
3851
|
+
"id": 506,
|
|
3852
|
+
"name": "clickDropdownButton",
|
|
3853
|
+
"kind": 2048,
|
|
3854
|
+
"kindString": "Method",
|
|
3855
|
+
"flags": {
|
|
3856
|
+
"isPublic": true
|
|
3857
|
+
},
|
|
3858
|
+
"sources": [
|
|
3859
|
+
{
|
|
3860
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
3861
|
+
"line": 30,
|
|
3862
|
+
"character": 15
|
|
3863
|
+
}
|
|
3864
|
+
],
|
|
3865
|
+
"signatures": [
|
|
3866
|
+
{
|
|
3867
|
+
"id": 507,
|
|
3868
|
+
"name": "clickDropdownButton",
|
|
3869
|
+
"kind": 4096,
|
|
3870
|
+
"kindString": "Call signature",
|
|
3871
|
+
"flags": {},
|
|
3872
|
+
"comment": {
|
|
3873
|
+
"shortText": "Clicks the dropdown button."
|
|
3874
|
+
},
|
|
3875
|
+
"type": {
|
|
3876
|
+
"type": "reference",
|
|
3877
|
+
"typeArguments": [
|
|
3878
|
+
{
|
|
3879
|
+
"type": "intrinsic",
|
|
3880
|
+
"name": "void"
|
|
3881
|
+
}
|
|
3882
|
+
],
|
|
3883
|
+
"qualifiedName": "Promise",
|
|
3884
|
+
"package": "typescript",
|
|
3885
|
+
"name": "Promise"
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
]
|
|
3889
|
+
},
|
|
3890
|
+
{
|
|
3891
|
+
"id": 508,
|
|
3892
|
+
"name": "getAriaLabel",
|
|
3893
|
+
"kind": 2048,
|
|
3894
|
+
"kindString": "Method",
|
|
3895
|
+
"flags": {
|
|
3896
|
+
"isPublic": true
|
|
3897
|
+
},
|
|
3898
|
+
"sources": [
|
|
3899
|
+
{
|
|
3900
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
3901
|
+
"line": 37,
|
|
3902
|
+
"character": 15
|
|
3903
|
+
}
|
|
3904
|
+
],
|
|
3905
|
+
"signatures": [
|
|
3906
|
+
{
|
|
3907
|
+
"id": 509,
|
|
3908
|
+
"name": "getAriaLabel",
|
|
3909
|
+
"kind": 4096,
|
|
3910
|
+
"kindString": "Call signature",
|
|
3911
|
+
"flags": {},
|
|
3912
|
+
"comment": {
|
|
3913
|
+
"shortText": "Gets the aria-label value."
|
|
3914
|
+
},
|
|
3915
|
+
"type": {
|
|
3916
|
+
"type": "reference",
|
|
3917
|
+
"typeArguments": [
|
|
3918
|
+
{
|
|
3919
|
+
"type": "intrinsic",
|
|
3920
|
+
"name": "string"
|
|
3921
|
+
}
|
|
3922
|
+
],
|
|
3923
|
+
"qualifiedName": "Promise",
|
|
3924
|
+
"package": "typescript",
|
|
3925
|
+
"name": "Promise"
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
]
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
"id": 510,
|
|
3932
|
+
"name": "getButtonStyle",
|
|
3933
|
+
"kind": 2048,
|
|
3934
|
+
"kindString": "Method",
|
|
3935
|
+
"flags": {
|
|
3936
|
+
"isPublic": true
|
|
3937
|
+
},
|
|
3938
|
+
"sources": [
|
|
3939
|
+
{
|
|
3940
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
3941
|
+
"line": 44,
|
|
3942
|
+
"character": 15
|
|
3943
|
+
}
|
|
3944
|
+
],
|
|
3945
|
+
"signatures": [
|
|
3946
|
+
{
|
|
3947
|
+
"id": 511,
|
|
3948
|
+
"name": "getButtonStyle",
|
|
3949
|
+
"kind": 4096,
|
|
3950
|
+
"kindString": "Call signature",
|
|
3951
|
+
"flags": {},
|
|
3952
|
+
"comment": {
|
|
3953
|
+
"shortText": "Gets the dropdown button style."
|
|
3954
|
+
},
|
|
3955
|
+
"type": {
|
|
3956
|
+
"type": "reference",
|
|
3957
|
+
"typeArguments": [
|
|
3958
|
+
{
|
|
3959
|
+
"type": "intrinsic",
|
|
3960
|
+
"name": "string"
|
|
3961
|
+
}
|
|
3962
|
+
],
|
|
3963
|
+
"qualifiedName": "Promise",
|
|
3964
|
+
"package": "typescript",
|
|
3965
|
+
"name": "Promise"
|
|
3966
|
+
}
|
|
3967
|
+
}
|
|
3968
|
+
]
|
|
3969
|
+
},
|
|
3970
|
+
{
|
|
3971
|
+
"id": 512,
|
|
3972
|
+
"name": "getButtonType",
|
|
3973
|
+
"kind": 2048,
|
|
3974
|
+
"kindString": "Method",
|
|
3975
|
+
"flags": {
|
|
3976
|
+
"isPublic": true
|
|
3977
|
+
},
|
|
3978
|
+
"sources": [
|
|
3979
|
+
{
|
|
3980
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
3981
|
+
"line": 61,
|
|
3982
|
+
"character": 15
|
|
3983
|
+
}
|
|
3984
|
+
],
|
|
3985
|
+
"signatures": [
|
|
3986
|
+
{
|
|
3987
|
+
"id": 513,
|
|
3988
|
+
"name": "getButtonType",
|
|
3989
|
+
"kind": 4096,
|
|
3990
|
+
"kindString": "Call signature",
|
|
3991
|
+
"flags": {},
|
|
3992
|
+
"comment": {
|
|
3993
|
+
"shortText": "Gets the dropdown button type."
|
|
3994
|
+
},
|
|
3995
|
+
"type": {
|
|
3996
|
+
"type": "reference",
|
|
3997
|
+
"typeArguments": [
|
|
3998
|
+
{
|
|
3999
|
+
"type": "intrinsic",
|
|
4000
|
+
"name": "string"
|
|
4001
|
+
}
|
|
4002
|
+
],
|
|
4003
|
+
"qualifiedName": "Promise",
|
|
4004
|
+
"package": "typescript",
|
|
4005
|
+
"name": "Promise"
|
|
4006
|
+
}
|
|
4007
|
+
}
|
|
4008
|
+
]
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
"id": 514,
|
|
4012
|
+
"name": "getDropdownMenu",
|
|
4013
|
+
"kind": 2048,
|
|
4014
|
+
"kindString": "Method",
|
|
4015
|
+
"flags": {
|
|
4016
|
+
"isPublic": true
|
|
4017
|
+
},
|
|
4018
|
+
"sources": [
|
|
4019
|
+
{
|
|
4020
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
4021
|
+
"line": 74,
|
|
4022
|
+
"character": 15
|
|
4023
|
+
}
|
|
4024
|
+
],
|
|
4025
|
+
"signatures": [
|
|
4026
|
+
{
|
|
4027
|
+
"id": 515,
|
|
4028
|
+
"name": "getDropdownMenu",
|
|
4029
|
+
"kind": 4096,
|
|
4030
|
+
"kindString": "Call signature",
|
|
4031
|
+
"flags": {},
|
|
4032
|
+
"comment": {
|
|
4033
|
+
"shortText": "Gets the dropdown menu component."
|
|
4034
|
+
},
|
|
4035
|
+
"type": {
|
|
4036
|
+
"type": "reference",
|
|
4037
|
+
"typeArguments": [
|
|
4038
|
+
{
|
|
4039
|
+
"type": "reference",
|
|
4040
|
+
"id": 551,
|
|
4041
|
+
"name": "SkyDropdownMenuHarness"
|
|
4042
|
+
}
|
|
4043
|
+
],
|
|
4044
|
+
"qualifiedName": "Promise",
|
|
4045
|
+
"package": "typescript",
|
|
4046
|
+
"name": "Promise"
|
|
4047
|
+
}
|
|
4048
|
+
}
|
|
4049
|
+
]
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
"id": 516,
|
|
4053
|
+
"name": "getTitle",
|
|
4054
|
+
"kind": 2048,
|
|
4055
|
+
"kindString": "Method",
|
|
4056
|
+
"flags": {
|
|
4057
|
+
"isPublic": true
|
|
4058
|
+
},
|
|
4059
|
+
"sources": [
|
|
4060
|
+
{
|
|
4061
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
4062
|
+
"line": 91,
|
|
4063
|
+
"character": 15
|
|
4064
|
+
}
|
|
4065
|
+
],
|
|
4066
|
+
"signatures": [
|
|
4067
|
+
{
|
|
4068
|
+
"id": 517,
|
|
4069
|
+
"name": "getTitle",
|
|
4070
|
+
"kind": 4096,
|
|
4071
|
+
"kindString": "Call signature",
|
|
4072
|
+
"flags": {},
|
|
4073
|
+
"comment": {
|
|
4074
|
+
"shortText": "Gets the hover tooltip text."
|
|
4075
|
+
},
|
|
4076
|
+
"type": {
|
|
4077
|
+
"type": "reference",
|
|
4078
|
+
"typeArguments": [
|
|
4079
|
+
{
|
|
4080
|
+
"type": "intrinsic",
|
|
4081
|
+
"name": "string"
|
|
4082
|
+
}
|
|
4083
|
+
],
|
|
4084
|
+
"qualifiedName": "Promise",
|
|
4085
|
+
"package": "typescript",
|
|
4086
|
+
"name": "Promise"
|
|
4087
|
+
}
|
|
4088
|
+
}
|
|
4089
|
+
]
|
|
4090
|
+
},
|
|
4091
|
+
{
|
|
4092
|
+
"id": 527,
|
|
4093
|
+
"name": "host",
|
|
4094
|
+
"kind": 2048,
|
|
4095
|
+
"kindString": "Method",
|
|
4096
|
+
"flags": {},
|
|
4097
|
+
"sources": [
|
|
4098
|
+
{
|
|
4099
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
4100
|
+
"line": 40,
|
|
4101
|
+
"character": 4
|
|
4102
|
+
}
|
|
4103
|
+
],
|
|
4104
|
+
"signatures": [
|
|
4105
|
+
{
|
|
4106
|
+
"id": 528,
|
|
4107
|
+
"name": "host",
|
|
4108
|
+
"kind": 4096,
|
|
4109
|
+
"kindString": "Call signature",
|
|
4110
|
+
"flags": {},
|
|
4111
|
+
"comment": {
|
|
4112
|
+
"shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
|
|
4113
|
+
},
|
|
4114
|
+
"type": {
|
|
4115
|
+
"type": "reference",
|
|
4116
|
+
"typeArguments": [
|
|
4117
|
+
{
|
|
4118
|
+
"type": "reference",
|
|
4119
|
+
"qualifiedName": "TestElement",
|
|
4120
|
+
"package": "@angular/cdk",
|
|
4121
|
+
"name": "TestElement"
|
|
4122
|
+
}
|
|
4123
|
+
],
|
|
4124
|
+
"qualifiedName": "Promise",
|
|
4125
|
+
"package": "typescript",
|
|
4126
|
+
"name": "Promise"
|
|
4127
|
+
},
|
|
4128
|
+
"inheritedFrom": {
|
|
4129
|
+
"type": "reference",
|
|
4130
|
+
"name": "SkyComponentHarness.host"
|
|
4131
|
+
}
|
|
4132
|
+
}
|
|
4133
|
+
],
|
|
4134
|
+
"inheritedFrom": {
|
|
4135
|
+
"type": "reference",
|
|
4136
|
+
"name": "SkyComponentHarness.host"
|
|
4137
|
+
}
|
|
4138
|
+
},
|
|
4139
|
+
{
|
|
4140
|
+
"id": 518,
|
|
4141
|
+
"name": "isDisabled",
|
|
4142
|
+
"kind": 2048,
|
|
4143
|
+
"kindString": "Method",
|
|
4144
|
+
"flags": {
|
|
4145
|
+
"isPublic": true
|
|
4146
|
+
},
|
|
4147
|
+
"sources": [
|
|
4148
|
+
{
|
|
4149
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
4150
|
+
"line": 98,
|
|
4151
|
+
"character": 15
|
|
4152
|
+
}
|
|
4153
|
+
],
|
|
4154
|
+
"signatures": [
|
|
4155
|
+
{
|
|
4156
|
+
"id": 519,
|
|
4157
|
+
"name": "isDisabled",
|
|
4158
|
+
"kind": 4096,
|
|
4159
|
+
"kindString": "Call signature",
|
|
4160
|
+
"flags": {},
|
|
4161
|
+
"comment": {
|
|
4162
|
+
"shortText": "Gets whether the dropdown is disabled."
|
|
4163
|
+
},
|
|
4164
|
+
"type": {
|
|
4165
|
+
"type": "reference",
|
|
4166
|
+
"typeArguments": [
|
|
4167
|
+
{
|
|
4168
|
+
"type": "intrinsic",
|
|
4169
|
+
"name": "boolean"
|
|
4170
|
+
}
|
|
4171
|
+
],
|
|
4172
|
+
"qualifiedName": "Promise",
|
|
4173
|
+
"package": "typescript",
|
|
4174
|
+
"name": "Promise"
|
|
4175
|
+
}
|
|
4176
|
+
}
|
|
4177
|
+
]
|
|
4178
|
+
},
|
|
4179
|
+
{
|
|
4180
|
+
"id": 520,
|
|
4181
|
+
"name": "isOpen",
|
|
4182
|
+
"kind": 2048,
|
|
4183
|
+
"kindString": "Method",
|
|
4184
|
+
"flags": {
|
|
4185
|
+
"isPublic": true
|
|
4186
|
+
},
|
|
4187
|
+
"sources": [
|
|
4188
|
+
{
|
|
4189
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
4190
|
+
"line": 107,
|
|
4191
|
+
"character": 15
|
|
4192
|
+
}
|
|
4193
|
+
],
|
|
4194
|
+
"signatures": [
|
|
4195
|
+
{
|
|
4196
|
+
"id": 521,
|
|
4197
|
+
"name": "isOpen",
|
|
4198
|
+
"kind": 4096,
|
|
4199
|
+
"kindString": "Call signature",
|
|
4200
|
+
"flags": {},
|
|
4201
|
+
"comment": {
|
|
4202
|
+
"shortText": "Gets whether the dropdown menu is open."
|
|
4203
|
+
},
|
|
4204
|
+
"type": {
|
|
4205
|
+
"type": "reference",
|
|
4206
|
+
"typeArguments": [
|
|
4207
|
+
{
|
|
4208
|
+
"type": "intrinsic",
|
|
4209
|
+
"name": "boolean"
|
|
4210
|
+
}
|
|
4211
|
+
],
|
|
4212
|
+
"qualifiedName": "Promise",
|
|
4213
|
+
"package": "typescript",
|
|
4214
|
+
"name": "Promise"
|
|
4215
|
+
}
|
|
4216
|
+
}
|
|
4217
|
+
]
|
|
4218
|
+
},
|
|
4219
|
+
{
|
|
4220
|
+
"id": 493,
|
|
4221
|
+
"name": "with",
|
|
4222
|
+
"kind": 2048,
|
|
4223
|
+
"kindString": "Method",
|
|
4224
|
+
"flags": {
|
|
4225
|
+
"isPublic": true,
|
|
4226
|
+
"isStatic": true
|
|
4227
|
+
},
|
|
4228
|
+
"sources": [
|
|
4229
|
+
{
|
|
4230
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
4231
|
+
"line": 21,
|
|
4232
|
+
"character": 16
|
|
4233
|
+
}
|
|
4234
|
+
],
|
|
4235
|
+
"signatures": [
|
|
4236
|
+
{
|
|
4237
|
+
"id": 494,
|
|
4238
|
+
"name": "with",
|
|
4239
|
+
"kind": 4096,
|
|
4240
|
+
"kindString": "Call signature",
|
|
4241
|
+
"flags": {},
|
|
4242
|
+
"comment": {
|
|
4243
|
+
"shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyDropdownHarness` that meets certain criteria."
|
|
4244
|
+
},
|
|
4245
|
+
"parameters": [
|
|
4246
|
+
{
|
|
4247
|
+
"id": 495,
|
|
4248
|
+
"name": "filters",
|
|
4249
|
+
"kind": 32768,
|
|
4250
|
+
"kindString": "Parameter",
|
|
4251
|
+
"flags": {},
|
|
4252
|
+
"type": {
|
|
4253
|
+
"type": "reference",
|
|
4254
|
+
"id": 547,
|
|
4255
|
+
"name": "SkyDropdownHarnessFilters"
|
|
4256
|
+
}
|
|
4257
|
+
}
|
|
4258
|
+
],
|
|
4259
|
+
"type": {
|
|
4260
|
+
"type": "reference",
|
|
4261
|
+
"typeArguments": [
|
|
4262
|
+
{
|
|
4263
|
+
"type": "reference",
|
|
4264
|
+
"id": 491,
|
|
4265
|
+
"name": "SkyDropdownHarness"
|
|
4266
|
+
}
|
|
4267
|
+
],
|
|
4268
|
+
"qualifiedName": "HarnessPredicate",
|
|
4269
|
+
"package": "@angular/cdk",
|
|
4270
|
+
"name": "HarnessPredicate"
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4273
|
+
]
|
|
4274
|
+
}
|
|
4275
|
+
],
|
|
4276
|
+
"groups": [
|
|
4277
|
+
{
|
|
4278
|
+
"title": "Constructors",
|
|
4279
|
+
"kind": 512,
|
|
4280
|
+
"children": [
|
|
4281
|
+
501
|
|
4282
|
+
]
|
|
4283
|
+
},
|
|
4284
|
+
{
|
|
4285
|
+
"title": "Methods",
|
|
4286
|
+
"kind": 2048,
|
|
4287
|
+
"children": [
|
|
4288
|
+
506,
|
|
4289
|
+
508,
|
|
4290
|
+
510,
|
|
4291
|
+
512,
|
|
4292
|
+
514,
|
|
4293
|
+
516,
|
|
4294
|
+
527,
|
|
4295
|
+
518,
|
|
4296
|
+
520,
|
|
4297
|
+
493
|
|
4298
|
+
]
|
|
4299
|
+
}
|
|
4300
|
+
],
|
|
4301
|
+
"sources": [
|
|
4302
|
+
{
|
|
4303
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.ts",
|
|
4304
|
+
"line": 7,
|
|
4305
|
+
"character": 13
|
|
4306
|
+
}
|
|
4307
|
+
],
|
|
4308
|
+
"extendedTypes": [
|
|
4309
|
+
{
|
|
4310
|
+
"type": "reference",
|
|
4311
|
+
"name": "SkyComponentHarness"
|
|
4312
|
+
}
|
|
4313
|
+
]
|
|
4314
|
+
},
|
|
4315
|
+
{
|
|
4316
|
+
"id": 603,
|
|
4317
|
+
"name": "SkyDropdownItemHarness",
|
|
4318
|
+
"kind": 128,
|
|
4319
|
+
"kindString": "Class",
|
|
4320
|
+
"flags": {},
|
|
4321
|
+
"children": [
|
|
4322
|
+
{
|
|
4323
|
+
"id": 618,
|
|
4324
|
+
"name": "click",
|
|
4325
|
+
"kind": 2048,
|
|
4326
|
+
"kindString": "Method",
|
|
4327
|
+
"flags": {
|
|
4328
|
+
"isPublic": true
|
|
4329
|
+
},
|
|
4330
|
+
"sources": [
|
|
4331
|
+
{
|
|
4332
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
|
|
4333
|
+
"line": 34,
|
|
4334
|
+
"character": 15
|
|
4335
|
+
}
|
|
4336
|
+
],
|
|
4337
|
+
"signatures": [
|
|
4338
|
+
{
|
|
4339
|
+
"id": 619,
|
|
4340
|
+
"name": "click",
|
|
4341
|
+
"kind": 4096,
|
|
4342
|
+
"kindString": "Call signature",
|
|
4343
|
+
"flags": {},
|
|
4344
|
+
"comment": {
|
|
4345
|
+
"shortText": "Clicks the dropdown item."
|
|
4346
|
+
},
|
|
4347
|
+
"type": {
|
|
4348
|
+
"type": "reference",
|
|
4349
|
+
"typeArguments": [
|
|
4350
|
+
{
|
|
4351
|
+
"type": "intrinsic",
|
|
4352
|
+
"name": "void"
|
|
4353
|
+
}
|
|
4354
|
+
],
|
|
4355
|
+
"qualifiedName": "Promise",
|
|
4356
|
+
"package": "typescript",
|
|
4357
|
+
"name": "Promise"
|
|
4358
|
+
}
|
|
4359
|
+
}
|
|
4360
|
+
]
|
|
4361
|
+
},
|
|
4362
|
+
{
|
|
4363
|
+
"id": 620,
|
|
4364
|
+
"name": "getAriaRole",
|
|
4365
|
+
"kind": 2048,
|
|
4366
|
+
"kindString": "Method",
|
|
4367
|
+
"flags": {
|
|
4368
|
+
"isPublic": true
|
|
4369
|
+
},
|
|
4370
|
+
"sources": [
|
|
4371
|
+
{
|
|
4372
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
|
|
4373
|
+
"line": 41,
|
|
4374
|
+
"character": 15
|
|
4375
|
+
}
|
|
4376
|
+
],
|
|
4377
|
+
"signatures": [
|
|
4378
|
+
{
|
|
4379
|
+
"id": 621,
|
|
4380
|
+
"name": "getAriaRole",
|
|
4381
|
+
"kind": 4096,
|
|
4382
|
+
"kindString": "Call signature",
|
|
4383
|
+
"flags": {},
|
|
4384
|
+
"comment": {
|
|
4385
|
+
"shortText": "Gets the dropdown item role."
|
|
4386
|
+
},
|
|
4387
|
+
"type": {
|
|
4388
|
+
"type": "reference",
|
|
4389
|
+
"typeArguments": [
|
|
4390
|
+
{
|
|
4391
|
+
"type": "intrinsic",
|
|
4392
|
+
"name": "string"
|
|
4393
|
+
}
|
|
4394
|
+
],
|
|
4395
|
+
"qualifiedName": "Promise",
|
|
4396
|
+
"package": "typescript",
|
|
4397
|
+
"name": "Promise"
|
|
4398
|
+
}
|
|
4399
|
+
}
|
|
4400
|
+
]
|
|
4401
|
+
},
|
|
4402
|
+
{
|
|
4403
|
+
"id": 622,
|
|
4404
|
+
"name": "getText",
|
|
4405
|
+
"kind": 2048,
|
|
4406
|
+
"kindString": "Method",
|
|
4407
|
+
"flags": {
|
|
4408
|
+
"isPublic": true
|
|
4409
|
+
},
|
|
4410
|
+
"sources": [
|
|
4411
|
+
{
|
|
4412
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
|
|
4413
|
+
"line": 48,
|
|
4414
|
+
"character": 15
|
|
4415
|
+
}
|
|
4416
|
+
],
|
|
4417
|
+
"signatures": [
|
|
4418
|
+
{
|
|
4419
|
+
"id": 623,
|
|
4420
|
+
"name": "getText",
|
|
4421
|
+
"kind": 4096,
|
|
4422
|
+
"kindString": "Call signature",
|
|
4423
|
+
"flags": {},
|
|
4424
|
+
"comment": {
|
|
4425
|
+
"shortText": "Gets the menu item text."
|
|
4426
|
+
},
|
|
4427
|
+
"type": {
|
|
4428
|
+
"type": "reference",
|
|
4429
|
+
"typeArguments": [
|
|
4430
|
+
{
|
|
4431
|
+
"type": "intrinsic",
|
|
4432
|
+
"name": "string"
|
|
4433
|
+
}
|
|
4434
|
+
],
|
|
4435
|
+
"qualifiedName": "Promise",
|
|
4436
|
+
"package": "typescript",
|
|
4437
|
+
"name": "Promise"
|
|
4438
|
+
}
|
|
4439
|
+
}
|
|
4440
|
+
]
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
"id": 627,
|
|
4444
|
+
"name": "host",
|
|
4445
|
+
"kind": 2048,
|
|
4446
|
+
"kindString": "Method",
|
|
4447
|
+
"flags": {},
|
|
4448
|
+
"sources": [
|
|
4449
|
+
{
|
|
4450
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
4451
|
+
"line": 40,
|
|
4452
|
+
"character": 4
|
|
4453
|
+
}
|
|
4454
|
+
],
|
|
4455
|
+
"signatures": [
|
|
4456
|
+
{
|
|
4457
|
+
"id": 628,
|
|
4458
|
+
"name": "host",
|
|
4459
|
+
"kind": 4096,
|
|
4460
|
+
"kindString": "Call signature",
|
|
4461
|
+
"flags": {},
|
|
4462
|
+
"comment": {
|
|
4463
|
+
"shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
|
|
4464
|
+
},
|
|
4465
|
+
"type": {
|
|
4466
|
+
"type": "reference",
|
|
4467
|
+
"typeArguments": [
|
|
4468
|
+
{
|
|
4469
|
+
"type": "reference",
|
|
4470
|
+
"qualifiedName": "TestElement",
|
|
4471
|
+
"package": "@angular/cdk",
|
|
4472
|
+
"name": "TestElement"
|
|
4473
|
+
}
|
|
4474
|
+
],
|
|
4475
|
+
"qualifiedName": "Promise",
|
|
4476
|
+
"package": "typescript",
|
|
4477
|
+
"name": "Promise"
|
|
4478
|
+
},
|
|
4479
|
+
"inheritedFrom": {
|
|
4480
|
+
"type": "reference",
|
|
4481
|
+
"name": "SkyComponentHarness.host"
|
|
4482
|
+
}
|
|
4483
|
+
}
|
|
4484
|
+
],
|
|
4485
|
+
"inheritedFrom": {
|
|
4486
|
+
"type": "reference",
|
|
4487
|
+
"name": "SkyComponentHarness.host"
|
|
4488
|
+
}
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
"id": 605,
|
|
4492
|
+
"name": "with",
|
|
4493
|
+
"kind": 2048,
|
|
4494
|
+
"kindString": "Method",
|
|
4495
|
+
"flags": {
|
|
4496
|
+
"isPublic": true,
|
|
4497
|
+
"isStatic": true
|
|
4498
|
+
},
|
|
4499
|
+
"sources": [
|
|
4500
|
+
{
|
|
4501
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
|
|
4502
|
+
"line": 19,
|
|
4503
|
+
"character": 16
|
|
4504
|
+
}
|
|
4505
|
+
],
|
|
4506
|
+
"signatures": [
|
|
4507
|
+
{
|
|
4508
|
+
"id": 606,
|
|
4509
|
+
"name": "with",
|
|
4510
|
+
"kind": 4096,
|
|
4511
|
+
"kindString": "Call signature",
|
|
4512
|
+
"flags": {},
|
|
4513
|
+
"comment": {
|
|
4514
|
+
"shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyAutocompleteHarness` that meets certain criteria."
|
|
4515
|
+
},
|
|
4516
|
+
"parameters": [
|
|
4517
|
+
{
|
|
4518
|
+
"id": 607,
|
|
4519
|
+
"name": "filters",
|
|
4520
|
+
"kind": 32768,
|
|
4521
|
+
"kindString": "Parameter",
|
|
4522
|
+
"flags": {},
|
|
4523
|
+
"type": {
|
|
4524
|
+
"type": "reference",
|
|
4525
|
+
"id": 647,
|
|
4526
|
+
"name": "SkyDropdownItemHarnessFilters"
|
|
4527
|
+
}
|
|
4528
|
+
}
|
|
4529
|
+
],
|
|
4530
|
+
"type": {
|
|
4531
|
+
"type": "reference",
|
|
4532
|
+
"typeArguments": [
|
|
4533
|
+
{
|
|
4534
|
+
"type": "reference",
|
|
4535
|
+
"id": 603,
|
|
4536
|
+
"name": "SkyDropdownItemHarness"
|
|
4537
|
+
}
|
|
4538
|
+
],
|
|
4539
|
+
"qualifiedName": "HarnessPredicate",
|
|
4540
|
+
"package": "@angular/cdk",
|
|
4541
|
+
"name": "HarnessPredicate"
|
|
4542
|
+
}
|
|
4543
|
+
}
|
|
4544
|
+
]
|
|
4545
|
+
}
|
|
4546
|
+
],
|
|
4547
|
+
"groups": [
|
|
4548
|
+
{
|
|
4549
|
+
"title": "Constructors",
|
|
4550
|
+
"kind": 512,
|
|
4551
|
+
"children": [
|
|
4552
|
+
613
|
|
4553
|
+
]
|
|
4554
|
+
},
|
|
4555
|
+
{
|
|
4556
|
+
"title": "Methods",
|
|
4557
|
+
"kind": 2048,
|
|
4558
|
+
"children": [
|
|
4559
|
+
618,
|
|
4560
|
+
620,
|
|
4561
|
+
622,
|
|
4562
|
+
627,
|
|
4563
|
+
605
|
|
4564
|
+
]
|
|
4565
|
+
}
|
|
4566
|
+
],
|
|
4567
|
+
"sources": [
|
|
4568
|
+
{
|
|
4569
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.ts",
|
|
4570
|
+
"line": 6,
|
|
4571
|
+
"character": 13
|
|
4572
|
+
}
|
|
4573
|
+
],
|
|
4574
|
+
"extendedTypes": [
|
|
4575
|
+
{
|
|
4576
|
+
"type": "reference",
|
|
4577
|
+
"name": "SkyComponentHarness"
|
|
4578
|
+
}
|
|
4579
|
+
]
|
|
4580
|
+
},
|
|
4581
|
+
{
|
|
4582
|
+
"id": 551,
|
|
4583
|
+
"name": "SkyDropdownMenuHarness",
|
|
4584
|
+
"kind": 128,
|
|
4585
|
+
"kindString": "Class",
|
|
4586
|
+
"flags": {},
|
|
4587
|
+
"comment": {
|
|
4588
|
+
"shortText": "Harness for interacting with dropdown menu in tests."
|
|
4589
|
+
},
|
|
4590
|
+
"children": [
|
|
4591
|
+
{
|
|
4592
|
+
"id": 565,
|
|
4593
|
+
"name": "clickOut",
|
|
4594
|
+
"kind": 2048,
|
|
4595
|
+
"kindString": "Method",
|
|
4596
|
+
"flags": {
|
|
4597
|
+
"isPublic": true
|
|
4598
|
+
},
|
|
4599
|
+
"sources": [
|
|
4600
|
+
{
|
|
4601
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4602
|
+
"line": 33,
|
|
4603
|
+
"character": 15
|
|
4604
|
+
}
|
|
4605
|
+
],
|
|
4606
|
+
"signatures": [
|
|
4607
|
+
{
|
|
4608
|
+
"id": 566,
|
|
4609
|
+
"name": "clickOut",
|
|
4610
|
+
"kind": 4096,
|
|
4611
|
+
"kindString": "Call signature",
|
|
4612
|
+
"flags": {},
|
|
4613
|
+
"comment": {
|
|
4614
|
+
"shortText": "Clicks out of the dropdown menu. If `dismissOnBlur` property is set to false, then the dropdown menu does not close."
|
|
4615
|
+
},
|
|
4616
|
+
"type": {
|
|
4617
|
+
"type": "reference",
|
|
4618
|
+
"typeArguments": [
|
|
4619
|
+
{
|
|
4620
|
+
"type": "intrinsic",
|
|
4621
|
+
"name": "void"
|
|
4622
|
+
}
|
|
4623
|
+
],
|
|
4624
|
+
"qualifiedName": "Promise",
|
|
4625
|
+
"package": "typescript",
|
|
4626
|
+
"name": "Promise"
|
|
4627
|
+
}
|
|
4628
|
+
}
|
|
4629
|
+
]
|
|
4630
|
+
},
|
|
4631
|
+
{
|
|
4632
|
+
"id": 567,
|
|
4633
|
+
"name": "getAriaLabelledBy",
|
|
4634
|
+
"kind": 2048,
|
|
4635
|
+
"kindString": "Method",
|
|
4636
|
+
"flags": {
|
|
4637
|
+
"isPublic": true
|
|
4638
|
+
},
|
|
4639
|
+
"sources": [
|
|
4640
|
+
{
|
|
4641
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4642
|
+
"line": 40,
|
|
4643
|
+
"character": 15
|
|
4644
|
+
}
|
|
4645
|
+
],
|
|
4646
|
+
"signatures": [
|
|
4647
|
+
{
|
|
4648
|
+
"id": 568,
|
|
4649
|
+
"name": "getAriaLabelledBy",
|
|
4650
|
+
"kind": 4096,
|
|
4651
|
+
"kindString": "Call signature",
|
|
4652
|
+
"flags": {},
|
|
4653
|
+
"comment": {
|
|
4654
|
+
"shortText": "Gets the `aria-labelledby` value."
|
|
4655
|
+
},
|
|
4656
|
+
"type": {
|
|
4657
|
+
"type": "reference",
|
|
4658
|
+
"typeArguments": [
|
|
4659
|
+
{
|
|
4660
|
+
"type": "intrinsic",
|
|
4661
|
+
"name": "string"
|
|
4662
|
+
}
|
|
4663
|
+
],
|
|
4664
|
+
"qualifiedName": "Promise",
|
|
4665
|
+
"package": "typescript",
|
|
4666
|
+
"name": "Promise"
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
]
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
"id": 569,
|
|
4673
|
+
"name": "getAriaRole",
|
|
4674
|
+
"kind": 2048,
|
|
4675
|
+
"kindString": "Method",
|
|
4676
|
+
"flags": {
|
|
4677
|
+
"isPublic": true
|
|
4678
|
+
},
|
|
4679
|
+
"sources": [
|
|
4680
|
+
{
|
|
4681
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4682
|
+
"line": 47,
|
|
4683
|
+
"character": 15
|
|
4684
|
+
}
|
|
4685
|
+
],
|
|
4686
|
+
"signatures": [
|
|
4687
|
+
{
|
|
4688
|
+
"id": 570,
|
|
4689
|
+
"name": "getAriaRole",
|
|
4690
|
+
"kind": 4096,
|
|
4691
|
+
"kindString": "Call signature",
|
|
4692
|
+
"flags": {},
|
|
4693
|
+
"comment": {
|
|
4694
|
+
"shortText": "Gets the dropdown menu role."
|
|
4695
|
+
},
|
|
4696
|
+
"type": {
|
|
4697
|
+
"type": "reference",
|
|
4698
|
+
"typeArguments": [
|
|
4699
|
+
{
|
|
4700
|
+
"type": "intrinsic",
|
|
4701
|
+
"name": "string"
|
|
4702
|
+
}
|
|
4703
|
+
],
|
|
4704
|
+
"qualifiedName": "Promise",
|
|
4705
|
+
"package": "typescript",
|
|
4706
|
+
"name": "Promise"
|
|
4707
|
+
}
|
|
4708
|
+
}
|
|
4709
|
+
]
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
"id": 574,
|
|
4713
|
+
"name": "getItem",
|
|
4714
|
+
"kind": 2048,
|
|
4715
|
+
"kindString": "Method",
|
|
4716
|
+
"flags": {
|
|
4717
|
+
"isPublic": true
|
|
4718
|
+
},
|
|
4719
|
+
"sources": [
|
|
4720
|
+
{
|
|
4721
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4722
|
+
"line": 83,
|
|
4723
|
+
"character": 15
|
|
4724
|
+
}
|
|
4725
|
+
],
|
|
4726
|
+
"signatures": [
|
|
4727
|
+
{
|
|
4728
|
+
"id": 575,
|
|
4729
|
+
"name": "getItem",
|
|
4730
|
+
"kind": 4096,
|
|
4731
|
+
"kindString": "Call signature",
|
|
4732
|
+
"flags": {},
|
|
4733
|
+
"comment": {
|
|
4734
|
+
"shortText": "Gets the first item that matches the given filters"
|
|
4735
|
+
},
|
|
4736
|
+
"parameters": [
|
|
4737
|
+
{
|
|
4738
|
+
"id": 576,
|
|
4739
|
+
"name": "filters",
|
|
4740
|
+
"kind": 32768,
|
|
4741
|
+
"kindString": "Parameter",
|
|
4742
|
+
"flags": {},
|
|
4743
|
+
"comment": {
|
|
4744
|
+
"shortText": "filter for which menu item to return\n"
|
|
4745
|
+
},
|
|
4746
|
+
"type": {
|
|
4747
|
+
"type": "reference",
|
|
4748
|
+
"id": 647,
|
|
4749
|
+
"name": "SkyDropdownItemHarnessFilters"
|
|
4750
|
+
}
|
|
4751
|
+
}
|
|
4752
|
+
],
|
|
4753
|
+
"type": {
|
|
4754
|
+
"type": "reference",
|
|
4755
|
+
"typeArguments": [
|
|
4756
|
+
{
|
|
4757
|
+
"type": "reference",
|
|
4758
|
+
"id": 603,
|
|
4759
|
+
"name": "SkyDropdownItemHarness"
|
|
4760
|
+
}
|
|
4761
|
+
],
|
|
4762
|
+
"qualifiedName": "Promise",
|
|
4763
|
+
"package": "typescript",
|
|
4764
|
+
"name": "Promise"
|
|
4765
|
+
}
|
|
4766
|
+
}
|
|
4767
|
+
]
|
|
4768
|
+
},
|
|
4769
|
+
{
|
|
4770
|
+
"id": 571,
|
|
4771
|
+
"name": "getItems",
|
|
4772
|
+
"kind": 2048,
|
|
4773
|
+
"kindString": "Method",
|
|
4774
|
+
"flags": {
|
|
4775
|
+
"isPublic": true
|
|
4776
|
+
},
|
|
4777
|
+
"sources": [
|
|
4778
|
+
{
|
|
4779
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4780
|
+
"line": 55,
|
|
4781
|
+
"character": 15
|
|
4782
|
+
}
|
|
4783
|
+
],
|
|
4784
|
+
"signatures": [
|
|
4785
|
+
{
|
|
4786
|
+
"id": 572,
|
|
4787
|
+
"name": "getItems",
|
|
4788
|
+
"kind": 4096,
|
|
4789
|
+
"kindString": "Call signature",
|
|
4790
|
+
"flags": {},
|
|
4791
|
+
"comment": {
|
|
4792
|
+
"shortText": "Gets an array of dropdown menu item harnesses."
|
|
4793
|
+
},
|
|
4794
|
+
"parameters": [
|
|
4795
|
+
{
|
|
4796
|
+
"id": 573,
|
|
4797
|
+
"name": "filters",
|
|
4798
|
+
"kind": 32768,
|
|
4799
|
+
"kindString": "Parameter",
|
|
4800
|
+
"flags": {
|
|
4801
|
+
"isOptional": true
|
|
4802
|
+
},
|
|
4803
|
+
"comment": {
|
|
4804
|
+
"shortText": "Optional filter for which menu items to return\n"
|
|
4805
|
+
},
|
|
4806
|
+
"type": {
|
|
4807
|
+
"type": "reference",
|
|
4808
|
+
"id": 647,
|
|
4809
|
+
"name": "SkyDropdownItemHarnessFilters"
|
|
4810
|
+
}
|
|
4811
|
+
}
|
|
4812
|
+
],
|
|
4813
|
+
"type": {
|
|
4814
|
+
"type": "reference",
|
|
4815
|
+
"typeArguments": [
|
|
4816
|
+
{
|
|
4817
|
+
"type": "array",
|
|
4818
|
+
"elementType": {
|
|
4819
|
+
"type": "reference",
|
|
4820
|
+
"id": 603,
|
|
4821
|
+
"name": "SkyDropdownItemHarness"
|
|
4822
|
+
}
|
|
4823
|
+
}
|
|
4824
|
+
],
|
|
4825
|
+
"qualifiedName": "Promise",
|
|
4826
|
+
"package": "typescript",
|
|
4827
|
+
"name": "Promise"
|
|
4828
|
+
}
|
|
4829
|
+
}
|
|
4830
|
+
]
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
"id": 580,
|
|
4834
|
+
"name": "host",
|
|
4835
|
+
"kind": 2048,
|
|
4836
|
+
"kindString": "Method",
|
|
4837
|
+
"flags": {},
|
|
4838
|
+
"sources": [
|
|
4839
|
+
{
|
|
4840
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
4841
|
+
"line": 40,
|
|
4842
|
+
"character": 4
|
|
4843
|
+
}
|
|
4844
|
+
],
|
|
4845
|
+
"signatures": [
|
|
4846
|
+
{
|
|
4847
|
+
"id": 581,
|
|
4848
|
+
"name": "host",
|
|
4849
|
+
"kind": 4096,
|
|
4850
|
+
"kindString": "Call signature",
|
|
4851
|
+
"flags": {},
|
|
4852
|
+
"comment": {
|
|
4853
|
+
"shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
|
|
4854
|
+
},
|
|
4855
|
+
"type": {
|
|
4856
|
+
"type": "reference",
|
|
4857
|
+
"typeArguments": [
|
|
4858
|
+
{
|
|
4859
|
+
"type": "reference",
|
|
4860
|
+
"qualifiedName": "TestElement",
|
|
4861
|
+
"package": "@angular/cdk",
|
|
4862
|
+
"name": "TestElement"
|
|
4863
|
+
}
|
|
4864
|
+
],
|
|
4865
|
+
"qualifiedName": "Promise",
|
|
4866
|
+
"package": "typescript",
|
|
4867
|
+
"name": "Promise"
|
|
4868
|
+
},
|
|
4869
|
+
"inheritedFrom": {
|
|
4870
|
+
"type": "reference",
|
|
4871
|
+
"name": "SkyComponentHarness.host"
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
],
|
|
4875
|
+
"inheritedFrom": {
|
|
4876
|
+
"type": "reference",
|
|
4877
|
+
"name": "SkyComponentHarness.host"
|
|
4878
|
+
}
|
|
4879
|
+
},
|
|
4880
|
+
{
|
|
4881
|
+
"id": 553,
|
|
4882
|
+
"name": "with",
|
|
4883
|
+
"kind": 2048,
|
|
4884
|
+
"kindString": "Method",
|
|
4885
|
+
"flags": {
|
|
4886
|
+
"isPublic": true,
|
|
4887
|
+
"isStatic": true
|
|
4888
|
+
},
|
|
4889
|
+
"sources": [
|
|
4890
|
+
{
|
|
4891
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4892
|
+
"line": 24,
|
|
4893
|
+
"character": 16
|
|
4894
|
+
}
|
|
4895
|
+
],
|
|
4896
|
+
"signatures": [
|
|
4897
|
+
{
|
|
4898
|
+
"id": 554,
|
|
4899
|
+
"name": "with",
|
|
4900
|
+
"kind": 4096,
|
|
4901
|
+
"kindString": "Call signature",
|
|
4902
|
+
"flags": {},
|
|
4903
|
+
"comment": {
|
|
4904
|
+
"shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyDropdownMenuHarness` that meets certain criteria."
|
|
4905
|
+
},
|
|
4906
|
+
"parameters": [
|
|
4907
|
+
{
|
|
4908
|
+
"id": 555,
|
|
4909
|
+
"name": "filters",
|
|
4910
|
+
"kind": 32768,
|
|
4911
|
+
"kindString": "Parameter",
|
|
4912
|
+
"flags": {},
|
|
4913
|
+
"type": {
|
|
4914
|
+
"type": "reference",
|
|
4915
|
+
"id": 600,
|
|
4916
|
+
"name": "SkyDropdownMenuHarnessFilters"
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
],
|
|
4920
|
+
"type": {
|
|
4921
|
+
"type": "reference",
|
|
4922
|
+
"typeArguments": [
|
|
4923
|
+
{
|
|
4924
|
+
"type": "reference",
|
|
4925
|
+
"id": 551,
|
|
4926
|
+
"name": "SkyDropdownMenuHarness"
|
|
4927
|
+
}
|
|
4928
|
+
],
|
|
4929
|
+
"qualifiedName": "HarnessPredicate",
|
|
4930
|
+
"package": "@angular/cdk",
|
|
4931
|
+
"name": "HarnessPredicate"
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
]
|
|
4935
|
+
}
|
|
4936
|
+
],
|
|
4937
|
+
"groups": [
|
|
4938
|
+
{
|
|
4939
|
+
"title": "Constructors",
|
|
4940
|
+
"kind": 512,
|
|
4941
|
+
"children": [
|
|
4942
|
+
561
|
|
4943
|
+
]
|
|
4944
|
+
},
|
|
4945
|
+
{
|
|
4946
|
+
"title": "Methods",
|
|
4947
|
+
"kind": 2048,
|
|
4948
|
+
"children": [
|
|
4949
|
+
565,
|
|
4950
|
+
567,
|
|
4951
|
+
569,
|
|
4952
|
+
574,
|
|
4953
|
+
571,
|
|
4954
|
+
580,
|
|
4955
|
+
553
|
|
4956
|
+
]
|
|
4957
|
+
}
|
|
4958
|
+
],
|
|
4959
|
+
"sources": [
|
|
4960
|
+
{
|
|
4961
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.ts",
|
|
4962
|
+
"line": 11,
|
|
4963
|
+
"character": 13
|
|
4964
|
+
}
|
|
4965
|
+
],
|
|
4966
|
+
"extendedTypes": [
|
|
4967
|
+
{
|
|
4968
|
+
"type": "reference",
|
|
4969
|
+
"name": "SkyComponentHarness"
|
|
4970
|
+
}
|
|
4971
|
+
]
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
"id": 547,
|
|
4975
|
+
"name": "SkyDropdownHarnessFilters",
|
|
4976
|
+
"kind": 256,
|
|
4977
|
+
"kindString": "Interface",
|
|
4978
|
+
"flags": {},
|
|
4979
|
+
"comment": {
|
|
4980
|
+
"shortText": "A set of criteria that can be used to filter a list of `SkyDropdownHarness` instances."
|
|
4981
|
+
},
|
|
4982
|
+
"children": [
|
|
4983
|
+
{
|
|
4984
|
+
"id": 550,
|
|
4985
|
+
"name": "ancestor",
|
|
4986
|
+
"kind": 1024,
|
|
4987
|
+
"kindString": "Property",
|
|
4988
|
+
"flags": {
|
|
4989
|
+
"isOptional": true
|
|
4990
|
+
},
|
|
4991
|
+
"comment": {
|
|
4992
|
+
"shortText": "Only find instances that are nested under an element with the given selector."
|
|
4993
|
+
},
|
|
4994
|
+
"sources": [
|
|
4995
|
+
{
|
|
4996
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
4997
|
+
"line": 28,
|
|
4998
|
+
"character": 4
|
|
4999
|
+
}
|
|
5000
|
+
],
|
|
5001
|
+
"type": {
|
|
5002
|
+
"type": "intrinsic",
|
|
5003
|
+
"name": "string"
|
|
5004
|
+
},
|
|
5005
|
+
"inheritedFrom": {
|
|
5006
|
+
"type": "reference",
|
|
5007
|
+
"name": "SkyHarnessFilters.ancestor"
|
|
5008
|
+
}
|
|
5009
|
+
},
|
|
5010
|
+
{
|
|
5011
|
+
"id": 548,
|
|
5012
|
+
"name": "dataSkyId",
|
|
5013
|
+
"kind": 1024,
|
|
5014
|
+
"kindString": "Property",
|
|
5015
|
+
"flags": {
|
|
5016
|
+
"isOptional": true
|
|
5017
|
+
},
|
|
5018
|
+
"comment": {
|
|
5019
|
+
"shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
|
|
5020
|
+
},
|
|
5021
|
+
"sources": [
|
|
5022
|
+
{
|
|
5023
|
+
"fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
|
|
5024
|
+
"line": 11,
|
|
5025
|
+
"character": 2
|
|
5026
|
+
}
|
|
5027
|
+
],
|
|
5028
|
+
"type": {
|
|
5029
|
+
"type": "union",
|
|
5030
|
+
"types": [
|
|
5031
|
+
{
|
|
5032
|
+
"type": "intrinsic",
|
|
5033
|
+
"name": "string"
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
"type": "reference",
|
|
5037
|
+
"qualifiedName": "RegExp",
|
|
5038
|
+
"package": "typescript",
|
|
5039
|
+
"name": "RegExp"
|
|
5040
|
+
}
|
|
5041
|
+
]
|
|
5042
|
+
},
|
|
5043
|
+
"inheritedFrom": {
|
|
5044
|
+
"type": "reference",
|
|
5045
|
+
"name": "SkyHarnessFilters.dataSkyId"
|
|
5046
|
+
}
|
|
5047
|
+
},
|
|
5048
|
+
{
|
|
5049
|
+
"id": 549,
|
|
5050
|
+
"name": "selector",
|
|
5051
|
+
"kind": 1024,
|
|
5052
|
+
"kindString": "Property",
|
|
5053
|
+
"flags": {
|
|
5054
|
+
"isOptional": true
|
|
5055
|
+
},
|
|
5056
|
+
"comment": {
|
|
5057
|
+
"shortText": "Only find instances whose host element matches the given selector."
|
|
5058
|
+
},
|
|
5059
|
+
"sources": [
|
|
5060
|
+
{
|
|
5061
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
5062
|
+
"line": 26,
|
|
5063
|
+
"character": 4
|
|
5064
|
+
}
|
|
5065
|
+
],
|
|
5066
|
+
"type": {
|
|
5067
|
+
"type": "intrinsic",
|
|
5068
|
+
"name": "string"
|
|
5069
|
+
},
|
|
5070
|
+
"inheritedFrom": {
|
|
5071
|
+
"type": "reference",
|
|
5072
|
+
"name": "SkyHarnessFilters.selector"
|
|
5073
|
+
}
|
|
5074
|
+
}
|
|
5075
|
+
],
|
|
5076
|
+
"groups": [
|
|
5077
|
+
{
|
|
5078
|
+
"title": "Properties",
|
|
5079
|
+
"kind": 1024,
|
|
5080
|
+
"children": [
|
|
5081
|
+
550,
|
|
5082
|
+
548,
|
|
5083
|
+
549
|
|
5084
|
+
]
|
|
5085
|
+
}
|
|
5086
|
+
],
|
|
5087
|
+
"sources": [
|
|
5088
|
+
{
|
|
5089
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-harness.filters.ts",
|
|
5090
|
+
"line": 7,
|
|
5091
|
+
"character": 17
|
|
5092
|
+
}
|
|
5093
|
+
],
|
|
5094
|
+
"extendedTypes": [
|
|
5095
|
+
{
|
|
5096
|
+
"type": "reference",
|
|
5097
|
+
"name": "SkyHarnessFilters"
|
|
5098
|
+
}
|
|
5099
|
+
]
|
|
5100
|
+
},
|
|
5101
|
+
{
|
|
5102
|
+
"id": 647,
|
|
5103
|
+
"name": "SkyDropdownItemHarnessFilters",
|
|
3841
5104
|
"kind": 256,
|
|
3842
5105
|
"kindString": "Interface",
|
|
3843
5106
|
"flags": {},
|
|
5107
|
+
"comment": {
|
|
5108
|
+
"shortText": "A set of criteria that can be used to filter a list of `SkyDropdownItemHarness` instances."
|
|
5109
|
+
},
|
|
3844
5110
|
"children": [
|
|
3845
5111
|
{
|
|
3846
|
-
"id":
|
|
5112
|
+
"id": 652,
|
|
5113
|
+
"name": "ancestor",
|
|
5114
|
+
"kind": 1024,
|
|
5115
|
+
"kindString": "Property",
|
|
5116
|
+
"flags": {
|
|
5117
|
+
"isOptional": true
|
|
5118
|
+
},
|
|
5119
|
+
"comment": {
|
|
5120
|
+
"shortText": "Only find instances that are nested under an element with the given selector."
|
|
5121
|
+
},
|
|
5122
|
+
"sources": [
|
|
5123
|
+
{
|
|
5124
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
5125
|
+
"line": 28,
|
|
5126
|
+
"character": 4
|
|
5127
|
+
}
|
|
5128
|
+
],
|
|
5129
|
+
"type": {
|
|
5130
|
+
"type": "intrinsic",
|
|
5131
|
+
"name": "string"
|
|
5132
|
+
},
|
|
5133
|
+
"inheritedFrom": {
|
|
5134
|
+
"type": "reference",
|
|
5135
|
+
"name": "SkyHarnessFilters.ancestor"
|
|
5136
|
+
}
|
|
5137
|
+
},
|
|
5138
|
+
{
|
|
5139
|
+
"id": 648,
|
|
3847
5140
|
"name": "ariaRole",
|
|
3848
5141
|
"kind": 1024,
|
|
3849
5142
|
"kindString": "Property",
|
|
3850
|
-
"flags": {
|
|
5143
|
+
"flags": {
|
|
5144
|
+
"isOptional": true
|
|
5145
|
+
},
|
|
5146
|
+
"comment": {
|
|
5147
|
+
"shortText": "Only find instances whose role matches the given value."
|
|
5148
|
+
},
|
|
5149
|
+
"sources": [
|
|
5150
|
+
{
|
|
5151
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.filters.ts",
|
|
5152
|
+
"line": 11,
|
|
5153
|
+
"character": 2
|
|
5154
|
+
}
|
|
5155
|
+
],
|
|
5156
|
+
"type": {
|
|
5157
|
+
"type": "intrinsic",
|
|
5158
|
+
"name": "string"
|
|
5159
|
+
}
|
|
5160
|
+
},
|
|
5161
|
+
{
|
|
5162
|
+
"id": 650,
|
|
5163
|
+
"name": "dataSkyId",
|
|
5164
|
+
"kind": 1024,
|
|
5165
|
+
"kindString": "Property",
|
|
5166
|
+
"flags": {
|
|
5167
|
+
"isOptional": true
|
|
5168
|
+
},
|
|
5169
|
+
"comment": {
|
|
5170
|
+
"shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
|
|
5171
|
+
},
|
|
5172
|
+
"sources": [
|
|
5173
|
+
{
|
|
5174
|
+
"fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
|
|
5175
|
+
"line": 11,
|
|
5176
|
+
"character": 2
|
|
5177
|
+
}
|
|
5178
|
+
],
|
|
5179
|
+
"type": {
|
|
5180
|
+
"type": "union",
|
|
5181
|
+
"types": [
|
|
5182
|
+
{
|
|
5183
|
+
"type": "intrinsic",
|
|
5184
|
+
"name": "string"
|
|
5185
|
+
},
|
|
5186
|
+
{
|
|
5187
|
+
"type": "reference",
|
|
5188
|
+
"qualifiedName": "RegExp",
|
|
5189
|
+
"package": "typescript",
|
|
5190
|
+
"name": "RegExp"
|
|
5191
|
+
}
|
|
5192
|
+
]
|
|
5193
|
+
},
|
|
5194
|
+
"inheritedFrom": {
|
|
5195
|
+
"type": "reference",
|
|
5196
|
+
"name": "SkyHarnessFilters.dataSkyId"
|
|
5197
|
+
}
|
|
5198
|
+
},
|
|
5199
|
+
{
|
|
5200
|
+
"id": 651,
|
|
5201
|
+
"name": "selector",
|
|
5202
|
+
"kind": 1024,
|
|
5203
|
+
"kindString": "Property",
|
|
5204
|
+
"flags": {
|
|
5205
|
+
"isOptional": true
|
|
5206
|
+
},
|
|
5207
|
+
"comment": {
|
|
5208
|
+
"shortText": "Only find instances whose host element matches the given selector."
|
|
5209
|
+
},
|
|
5210
|
+
"sources": [
|
|
5211
|
+
{
|
|
5212
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
5213
|
+
"line": 26,
|
|
5214
|
+
"character": 4
|
|
5215
|
+
}
|
|
5216
|
+
],
|
|
5217
|
+
"type": {
|
|
5218
|
+
"type": "intrinsic",
|
|
5219
|
+
"name": "string"
|
|
5220
|
+
},
|
|
5221
|
+
"inheritedFrom": {
|
|
5222
|
+
"type": "reference",
|
|
5223
|
+
"name": "SkyHarnessFilters.selector"
|
|
5224
|
+
}
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"id": 649,
|
|
5228
|
+
"name": "text",
|
|
5229
|
+
"kind": 1024,
|
|
5230
|
+
"kindString": "Property",
|
|
5231
|
+
"flags": {
|
|
5232
|
+
"isOptional": true
|
|
5233
|
+
},
|
|
5234
|
+
"comment": {
|
|
5235
|
+
"shortText": "Only find instances whose text content matches the given value."
|
|
5236
|
+
},
|
|
3851
5237
|
"sources": [
|
|
3852
5238
|
{
|
|
3853
|
-
"fileName": "projects/popovers/src/testing/dropdown/
|
|
3854
|
-
"line":
|
|
5239
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.filters.ts",
|
|
5240
|
+
"line": 16,
|
|
3855
5241
|
"character": 2
|
|
3856
5242
|
}
|
|
3857
5243
|
],
|
|
@@ -3866,16 +5252,117 @@
|
|
|
3866
5252
|
"title": "Properties",
|
|
3867
5253
|
"kind": 1024,
|
|
3868
5254
|
"children": [
|
|
3869
|
-
|
|
5255
|
+
652,
|
|
5256
|
+
648,
|
|
5257
|
+
650,
|
|
5258
|
+
651,
|
|
5259
|
+
649
|
|
3870
5260
|
]
|
|
3871
5261
|
}
|
|
3872
5262
|
],
|
|
3873
5263
|
"sources": [
|
|
3874
5264
|
{
|
|
3875
|
-
"fileName": "projects/popovers/src/testing/dropdown/
|
|
3876
|
-
"line":
|
|
5265
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-item-harness.filters.ts",
|
|
5266
|
+
"line": 7,
|
|
5267
|
+
"character": 17
|
|
5268
|
+
}
|
|
5269
|
+
],
|
|
5270
|
+
"extendedTypes": [
|
|
5271
|
+
{
|
|
5272
|
+
"type": "reference",
|
|
5273
|
+
"name": "SkyHarnessFilters"
|
|
5274
|
+
}
|
|
5275
|
+
]
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"id": 600,
|
|
5279
|
+
"name": "SkyDropdownMenuHarnessFilters",
|
|
5280
|
+
"kind": 256,
|
|
5281
|
+
"kindString": "Interface",
|
|
5282
|
+
"flags": {},
|
|
5283
|
+
"comment": {
|
|
5284
|
+
"shortText": "A set of criteria that can be used to filter a list of `SkyDropdownMenuHarness` instances."
|
|
5285
|
+
},
|
|
5286
|
+
"children": [
|
|
5287
|
+
{
|
|
5288
|
+
"id": 602,
|
|
5289
|
+
"name": "ancestor",
|
|
5290
|
+
"kind": 1024,
|
|
5291
|
+
"kindString": "Property",
|
|
5292
|
+
"flags": {
|
|
5293
|
+
"isOptional": true
|
|
5294
|
+
},
|
|
5295
|
+
"comment": {
|
|
5296
|
+
"shortText": "Only find instances that are nested under an element with the given selector."
|
|
5297
|
+
},
|
|
5298
|
+
"sources": [
|
|
5299
|
+
{
|
|
5300
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
5301
|
+
"line": 28,
|
|
5302
|
+
"character": 4
|
|
5303
|
+
}
|
|
5304
|
+
],
|
|
5305
|
+
"type": {
|
|
5306
|
+
"type": "intrinsic",
|
|
5307
|
+
"name": "string"
|
|
5308
|
+
},
|
|
5309
|
+
"inheritedFrom": {
|
|
5310
|
+
"type": "reference",
|
|
5311
|
+
"name": "BaseHarnessFilters.ancestor"
|
|
5312
|
+
}
|
|
5313
|
+
},
|
|
5314
|
+
{
|
|
5315
|
+
"id": 601,
|
|
5316
|
+
"name": "selector",
|
|
5317
|
+
"kind": 1024,
|
|
5318
|
+
"kindString": "Property",
|
|
5319
|
+
"flags": {
|
|
5320
|
+
"isOptional": true
|
|
5321
|
+
},
|
|
5322
|
+
"comment": {
|
|
5323
|
+
"shortText": "Only find instances whose host element matches the given selector."
|
|
5324
|
+
},
|
|
5325
|
+
"sources": [
|
|
5326
|
+
{
|
|
5327
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
5328
|
+
"line": 26,
|
|
5329
|
+
"character": 4
|
|
5330
|
+
}
|
|
5331
|
+
],
|
|
5332
|
+
"type": {
|
|
5333
|
+
"type": "intrinsic",
|
|
5334
|
+
"name": "string"
|
|
5335
|
+
},
|
|
5336
|
+
"inheritedFrom": {
|
|
5337
|
+
"type": "reference",
|
|
5338
|
+
"name": "BaseHarnessFilters.selector"
|
|
5339
|
+
}
|
|
5340
|
+
}
|
|
5341
|
+
],
|
|
5342
|
+
"groups": [
|
|
5343
|
+
{
|
|
5344
|
+
"title": "Properties",
|
|
5345
|
+
"kind": 1024,
|
|
5346
|
+
"children": [
|
|
5347
|
+
602,
|
|
5348
|
+
601
|
|
5349
|
+
]
|
|
5350
|
+
}
|
|
5351
|
+
],
|
|
5352
|
+
"sources": [
|
|
5353
|
+
{
|
|
5354
|
+
"fileName": "projects/popovers/src/testing/dropdown/harness/dropdown-menu-harness.filters.ts",
|
|
5355
|
+
"line": 7,
|
|
3877
5356
|
"character": 17
|
|
3878
5357
|
}
|
|
5358
|
+
],
|
|
5359
|
+
"extendedTypes": [
|
|
5360
|
+
{
|
|
5361
|
+
"type": "reference",
|
|
5362
|
+
"qualifiedName": "BaseHarnessFilters",
|
|
5363
|
+
"package": "@angular/cdk",
|
|
5364
|
+
"name": "BaseHarnessFilters"
|
|
5365
|
+
}
|
|
3879
5366
|
]
|
|
3880
5367
|
}
|
|
3881
5368
|
],
|
|
@@ -3899,7 +5386,12 @@
|
|
|
3899
5386
|
{
|
|
3900
5387
|
"fileName": "dropdown-demo.component.html",
|
|
3901
5388
|
"filePath": "/projects/popovers/documentation/code-examples/dropdown/basic/dropdown-demo.component.html",
|
|
3902
|
-
"rawContents": "<sky-dropdown>\n <sky-dropdown-button> Show dropdown </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let item of items\">\n <button\n type=\"button\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n (click)=\"actionClicked(item.name)\"\n >\n {{ item.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n"
|
|
5389
|
+
"rawContents": "<sky-dropdown data-sky-id=\"dropdown-demo\">\n <sky-dropdown-button> Show dropdown </sky-dropdown-button>\n <sky-dropdown-menu>\n <sky-dropdown-item *ngFor=\"let item of items\">\n <button\n type=\"button\"\n [attr.disabled]=\"item.disabled ? '' : null\"\n (click)=\"actionClicked(item.name)\"\n >\n {{ item.name }}\n </button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n</sky-dropdown>\n"
|
|
5390
|
+
},
|
|
5391
|
+
{
|
|
5392
|
+
"fileName": "dropdown-demo.component.spec.ts",
|
|
5393
|
+
"filePath": "/projects/popovers/documentation/code-examples/dropdown/basic/dropdown-demo.component.spec.ts",
|
|
5394
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { expect } from '@skyux-sdk/testing';\nimport { SkyDropdownHarness } from '@skyux/popovers/testing';\n\nimport { DropdownDemoComponent } from './dropdown-demo.component';\nimport { DropdownDemoModule } from './dropdown-demo.module';\n\ndescribe('Basic dropdown', () => {\n async function setupTest(): Promise<{\n dropdownHarness: SkyDropdownHarness;\n fixture: ComponentFixture<DropdownDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(DropdownDemoComponent);\n const loader = TestbedHarnessEnvironment.documentRootLoader(fixture);\n const dropdownHarness = await loader.getHarness(\n SkyDropdownHarness.with({\n dataSkyId: 'dropdown-demo',\n })\n );\n\n return { dropdownHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [DropdownDemoModule],\n });\n });\n\n it('should display the correct dropdown', async () => {\n const { dropdownHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n\n await expectAsync(dropdownHarness.getButtonStyle()).toBeResolvedTo(\n 'default'\n );\n await expectAsync(dropdownHarness.getButtonType()).toBeResolvedTo('select');\n await expectAsync(dropdownHarness.isDisabled()).toBeResolvedTo(false);\n await expectAsync(dropdownHarness.getAriaLabel()).toBeResolvedTo(\n 'Context menu'\n );\n await expectAsync(dropdownHarness.getTitle()).toBeResolvedTo(null);\n await expectAsync(dropdownHarness.isOpen()).toBeResolvedTo(false);\n });\n\n it('should open the correct dropdown menu', async () => {\n const { dropdownHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n await dropdownHarness.clickDropdownButton();\n fixture.detectChanges();\n\n const dropdownMenu = await dropdownHarness.getDropdownMenu();\n const dropdownMenuItems = await dropdownMenu.getItems();\n\n await expectAsync(dropdownHarness.isOpen()).toBeResolvedTo(true);\n await expectAsync(dropdownMenu.getAriaRole()).toBeResolvedTo('menu');\n\n await expectAsync(dropdownMenuItems?.[0].getText()).toBeResolvedTo(\n 'Option 1'\n );\n });\n\n it('should click the correct dropdown menu item', async () => {\n const { dropdownHarness, fixture } = await setupTest();\n\n const clickSpy = spyOn(fixture.componentInstance, 'actionClicked');\n fixture.detectChanges();\n await dropdownHarness.clickDropdownButton();\n fixture.detectChanges();\n\n const dropdownMenu = await dropdownHarness.getDropdownMenu();\n const dropdownMenuItem = await dropdownMenu.getItem({ text: 'Option 1' });\n\n await dropdownMenuItem?.click();\n\n expect(clickSpy).toHaveBeenCalledWith('Option 1');\n });\n});\n"
|
|
3903
5395
|
},
|
|
3904
5396
|
{
|
|
3905
5397
|
"fileName": "dropdown-demo.component.ts",
|