| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
# ABSTRACT: Automatically generated class for Playwright::GenericAssertions |
|
2
|
|
|
|
|
|
|
# PODNAME: Playwright::GenericAssertions |
|
3
|
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
# These classes used to be generated at runtime, but are now generated when the module is built. |
|
5
|
|
|
|
|
|
|
# Don't send patches against these modules, they will be ignored. |
|
6
|
|
|
|
|
|
|
# See generate_perl_modules.pl in the repository for generating this. |
|
7
|
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
7
|
use strict; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
44
|
|
|
9
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
85
|
|
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
package Playwright::GenericAssertions; |
|
12
|
|
|
|
|
|
|
$Playwright::GenericAssertions::VERSION = '1.551'; |
|
13
|
1
|
|
|
1
|
|
7
|
use parent 'Playwright::Base'; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
7
|
|
|
14
|
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
sub new { |
|
16
|
0
|
|
|
0
|
1
|
|
my ( $self, %options ) = @_; |
|
17
|
0
|
|
|
|
|
|
$options{type} = 'GenericAssertions'; |
|
18
|
0
|
|
|
|
|
|
return $self->SUPER::new(%options); |
|
19
|
|
|
|
|
|
|
} |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub spec { |
|
22
|
0
|
|
|
0
|
0
|
|
return $Playwright::spec->{'GenericAssertions'}{members}; |
|
23
|
|
|
|
|
|
|
} |
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub toThrowError { |
|
26
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
27
|
|
|
|
|
|
|
return $self->_api_request( |
|
28
|
|
|
|
|
|
|
args => [@_], |
|
29
|
|
|
|
|
|
|
command => 'toThrowError', |
|
30
|
|
|
|
|
|
|
object => $self->{guid}, |
|
31
|
|
|
|
|
|
|
type => $self->{type} |
|
32
|
0
|
|
|
|
|
|
); |
|
33
|
|
|
|
|
|
|
} |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub objectContaining { |
|
36
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
37
|
|
|
|
|
|
|
return $self->_api_request( |
|
38
|
|
|
|
|
|
|
args => [@_], |
|
39
|
|
|
|
|
|
|
command => 'objectContaining', |
|
40
|
|
|
|
|
|
|
object => $self->{guid}, |
|
41
|
|
|
|
|
|
|
type => $self->{type} |
|
42
|
0
|
|
|
|
|
|
); |
|
43
|
|
|
|
|
|
|
} |
|
44
|
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub toContain { |
|
46
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
47
|
|
|
|
|
|
|
return $self->_api_request( |
|
48
|
|
|
|
|
|
|
args => [@_], |
|
49
|
|
|
|
|
|
|
command => 'toContain', |
|
50
|
|
|
|
|
|
|
object => $self->{guid}, |
|
51
|
|
|
|
|
|
|
type => $self->{type} |
|
52
|
0
|
|
|
|
|
|
); |
|
53
|
|
|
|
|
|
|
} |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub closeTo { |
|
56
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
57
|
|
|
|
|
|
|
return $self->_api_request( |
|
58
|
|
|
|
|
|
|
args => [@_], |
|
59
|
|
|
|
|
|
|
command => 'closeTo', |
|
60
|
|
|
|
|
|
|
object => $self->{guid}, |
|
61
|
|
|
|
|
|
|
type => $self->{type} |
|
62
|
0
|
|
|
|
|
|
); |
|
63
|
|
|
|
|
|
|
} |
|
64
|
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub toBeUndefined { |
|
66
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
67
|
|
|
|
|
|
|
return $self->_api_request( |
|
68
|
|
|
|
|
|
|
args => [@_], |
|
69
|
|
|
|
|
|
|
command => 'toBeUndefined', |
|
70
|
|
|
|
|
|
|
object => $self->{guid}, |
|
71
|
|
|
|
|
|
|
type => $self->{type} |
|
72
|
0
|
|
|
|
|
|
); |
|
73
|
|
|
|
|
|
|
} |
|
74
|
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub toEqual { |
|
76
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
77
|
|
|
|
|
|
|
return $self->_api_request( |
|
78
|
|
|
|
|
|
|
args => [@_], |
|
79
|
|
|
|
|
|
|
command => 'toEqual', |
|
80
|
|
|
|
|
|
|
object => $self->{guid}, |
|
81
|
|
|
|
|
|
|
type => $self->{type} |
|
82
|
0
|
|
|
|
|
|
); |
|
83
|
|
|
|
|
|
|
} |
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
sub toMatch { |
|
86
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
87
|
|
|
|
|
|
|
return $self->_api_request( |
|
88
|
|
|
|
|
|
|
args => [@_], |
|
89
|
|
|
|
|
|
|
command => 'toMatch', |
|
90
|
|
|
|
|
|
|
object => $self->{guid}, |
|
91
|
|
|
|
|
|
|
type => $self->{type} |
|
92
|
0
|
|
|
|
|
|
); |
|
93
|
|
|
|
|
|
|
} |
|
94
|
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub toBe { |
|
96
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
97
|
|
|
|
|
|
|
return $self->_api_request( |
|
98
|
|
|
|
|
|
|
args => [@_], |
|
99
|
|
|
|
|
|
|
command => 'toBe', |
|
100
|
|
|
|
|
|
|
object => $self->{guid}, |
|
101
|
|
|
|
|
|
|
type => $self->{type} |
|
102
|
0
|
|
|
|
|
|
); |
|
103
|
|
|
|
|
|
|
} |
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub toBeLessThan { |
|
106
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
107
|
|
|
|
|
|
|
return $self->_api_request( |
|
108
|
|
|
|
|
|
|
args => [@_], |
|
109
|
|
|
|
|
|
|
command => 'toBeLessThan', |
|
110
|
|
|
|
|
|
|
object => $self->{guid}, |
|
111
|
|
|
|
|
|
|
type => $self->{type} |
|
112
|
0
|
|
|
|
|
|
); |
|
113
|
|
|
|
|
|
|
} |
|
114
|
|
|
|
|
|
|
|
|
115
|
|
|
|
|
|
|
sub toBeGreaterThan { |
|
116
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
117
|
|
|
|
|
|
|
return $self->_api_request( |
|
118
|
|
|
|
|
|
|
args => [@_], |
|
119
|
|
|
|
|
|
|
command => 'toBeGreaterThan', |
|
120
|
|
|
|
|
|
|
object => $self->{guid}, |
|
121
|
|
|
|
|
|
|
type => $self->{type} |
|
122
|
0
|
|
|
|
|
|
); |
|
123
|
|
|
|
|
|
|
} |
|
124
|
|
|
|
|
|
|
|
|
125
|
|
|
|
|
|
|
sub not { |
|
126
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
127
|
|
|
|
|
|
|
return $self->_api_request( |
|
128
|
|
|
|
|
|
|
args => [@_], |
|
129
|
|
|
|
|
|
|
command => 'not', |
|
130
|
|
|
|
|
|
|
object => $self->{guid}, |
|
131
|
|
|
|
|
|
|
type => $self->{type} |
|
132
|
0
|
|
|
|
|
|
); |
|
133
|
|
|
|
|
|
|
} |
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
sub any { |
|
136
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
137
|
|
|
|
|
|
|
return $self->_api_request( |
|
138
|
|
|
|
|
|
|
args => [@_], |
|
139
|
|
|
|
|
|
|
command => 'any', |
|
140
|
|
|
|
|
|
|
object => $self->{guid}, |
|
141
|
|
|
|
|
|
|
type => $self->{type} |
|
142
|
0
|
|
|
|
|
|
); |
|
143
|
|
|
|
|
|
|
} |
|
144
|
|
|
|
|
|
|
|
|
145
|
|
|
|
|
|
|
sub toHaveProperty { |
|
146
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
147
|
|
|
|
|
|
|
return $self->_api_request( |
|
148
|
|
|
|
|
|
|
args => [@_], |
|
149
|
|
|
|
|
|
|
command => 'toHaveProperty', |
|
150
|
|
|
|
|
|
|
object => $self->{guid}, |
|
151
|
|
|
|
|
|
|
type => $self->{type} |
|
152
|
0
|
|
|
|
|
|
); |
|
153
|
|
|
|
|
|
|
} |
|
154
|
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
sub toBeLessThanOrEqual { |
|
156
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
157
|
|
|
|
|
|
|
return $self->_api_request( |
|
158
|
|
|
|
|
|
|
args => [@_], |
|
159
|
|
|
|
|
|
|
command => 'toBeLessThanOrEqual', |
|
160
|
|
|
|
|
|
|
object => $self->{guid}, |
|
161
|
|
|
|
|
|
|
type => $self->{type} |
|
162
|
0
|
|
|
|
|
|
); |
|
163
|
|
|
|
|
|
|
} |
|
164
|
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
sub toBeNull { |
|
166
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
167
|
|
|
|
|
|
|
return $self->_api_request( |
|
168
|
|
|
|
|
|
|
args => [@_], |
|
169
|
|
|
|
|
|
|
command => 'toBeNull', |
|
170
|
|
|
|
|
|
|
object => $self->{guid}, |
|
171
|
|
|
|
|
|
|
type => $self->{type} |
|
172
|
0
|
|
|
|
|
|
); |
|
173
|
|
|
|
|
|
|
} |
|
174
|
|
|
|
|
|
|
|
|
175
|
|
|
|
|
|
|
sub toBeCloseTo { |
|
176
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
177
|
|
|
|
|
|
|
return $self->_api_request( |
|
178
|
|
|
|
|
|
|
args => [@_], |
|
179
|
|
|
|
|
|
|
command => 'toBeCloseTo', |
|
180
|
|
|
|
|
|
|
object => $self->{guid}, |
|
181
|
|
|
|
|
|
|
type => $self->{type} |
|
182
|
0
|
|
|
|
|
|
); |
|
183
|
|
|
|
|
|
|
} |
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
sub toBeGreaterThanOrEqual { |
|
186
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
187
|
|
|
|
|
|
|
return $self->_api_request( |
|
188
|
|
|
|
|
|
|
args => [@_], |
|
189
|
|
|
|
|
|
|
command => 'toBeGreaterThanOrEqual', |
|
190
|
|
|
|
|
|
|
object => $self->{guid}, |
|
191
|
|
|
|
|
|
|
type => $self->{type} |
|
192
|
0
|
|
|
|
|
|
); |
|
193
|
|
|
|
|
|
|
} |
|
194
|
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
sub arrayContaining { |
|
196
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
197
|
|
|
|
|
|
|
return $self->_api_request( |
|
198
|
|
|
|
|
|
|
args => [@_], |
|
199
|
|
|
|
|
|
|
command => 'arrayContaining', |
|
200
|
|
|
|
|
|
|
object => $self->{guid}, |
|
201
|
|
|
|
|
|
|
type => $self->{type} |
|
202
|
0
|
|
|
|
|
|
); |
|
203
|
|
|
|
|
|
|
} |
|
204
|
|
|
|
|
|
|
|
|
205
|
|
|
|
|
|
|
sub stringMatching { |
|
206
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
207
|
|
|
|
|
|
|
return $self->_api_request( |
|
208
|
|
|
|
|
|
|
args => [@_], |
|
209
|
|
|
|
|
|
|
command => 'stringMatching', |
|
210
|
|
|
|
|
|
|
object => $self->{guid}, |
|
211
|
|
|
|
|
|
|
type => $self->{type} |
|
212
|
0
|
|
|
|
|
|
); |
|
213
|
|
|
|
|
|
|
} |
|
214
|
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
sub stringContaining { |
|
216
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
217
|
|
|
|
|
|
|
return $self->_api_request( |
|
218
|
|
|
|
|
|
|
args => [@_], |
|
219
|
|
|
|
|
|
|
command => 'stringContaining', |
|
220
|
|
|
|
|
|
|
object => $self->{guid}, |
|
221
|
|
|
|
|
|
|
type => $self->{type} |
|
222
|
0
|
|
|
|
|
|
); |
|
223
|
|
|
|
|
|
|
} |
|
224
|
|
|
|
|
|
|
|
|
225
|
|
|
|
|
|
|
sub toMatchObject { |
|
226
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
227
|
|
|
|
|
|
|
return $self->_api_request( |
|
228
|
|
|
|
|
|
|
args => [@_], |
|
229
|
|
|
|
|
|
|
command => 'toMatchObject', |
|
230
|
|
|
|
|
|
|
object => $self->{guid}, |
|
231
|
|
|
|
|
|
|
type => $self->{type} |
|
232
|
0
|
|
|
|
|
|
); |
|
233
|
|
|
|
|
|
|
} |
|
234
|
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
sub anything { |
|
236
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
237
|
|
|
|
|
|
|
return $self->_api_request( |
|
238
|
|
|
|
|
|
|
args => [@_], |
|
239
|
|
|
|
|
|
|
command => 'anything', |
|
240
|
|
|
|
|
|
|
object => $self->{guid}, |
|
241
|
|
|
|
|
|
|
type => $self->{type} |
|
242
|
0
|
|
|
|
|
|
); |
|
243
|
|
|
|
|
|
|
} |
|
244
|
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
sub toBeFalsy { |
|
246
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
247
|
|
|
|
|
|
|
return $self->_api_request( |
|
248
|
|
|
|
|
|
|
args => [@_], |
|
249
|
|
|
|
|
|
|
command => 'toBeFalsy', |
|
250
|
|
|
|
|
|
|
object => $self->{guid}, |
|
251
|
|
|
|
|
|
|
type => $self->{type} |
|
252
|
0
|
|
|
|
|
|
); |
|
253
|
|
|
|
|
|
|
} |
|
254
|
|
|
|
|
|
|
|
|
255
|
|
|
|
|
|
|
sub toContainEqual { |
|
256
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
257
|
|
|
|
|
|
|
return $self->_api_request( |
|
258
|
|
|
|
|
|
|
args => [@_], |
|
259
|
|
|
|
|
|
|
command => 'toContainEqual', |
|
260
|
|
|
|
|
|
|
object => $self->{guid}, |
|
261
|
|
|
|
|
|
|
type => $self->{type} |
|
262
|
0
|
|
|
|
|
|
); |
|
263
|
|
|
|
|
|
|
} |
|
264
|
|
|
|
|
|
|
|
|
265
|
|
|
|
|
|
|
sub toHaveLength { |
|
266
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
267
|
|
|
|
|
|
|
return $self->_api_request( |
|
268
|
|
|
|
|
|
|
args => [@_], |
|
269
|
|
|
|
|
|
|
command => 'toHaveLength', |
|
270
|
|
|
|
|
|
|
object => $self->{guid}, |
|
271
|
|
|
|
|
|
|
type => $self->{type} |
|
272
|
0
|
|
|
|
|
|
); |
|
273
|
|
|
|
|
|
|
} |
|
274
|
|
|
|
|
|
|
|
|
275
|
|
|
|
|
|
|
sub toStrictEqual { |
|
276
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
277
|
|
|
|
|
|
|
return $self->_api_request( |
|
278
|
|
|
|
|
|
|
args => [@_], |
|
279
|
|
|
|
|
|
|
command => 'toStrictEqual', |
|
280
|
|
|
|
|
|
|
object => $self->{guid}, |
|
281
|
|
|
|
|
|
|
type => $self->{type} |
|
282
|
0
|
|
|
|
|
|
); |
|
283
|
|
|
|
|
|
|
} |
|
284
|
|
|
|
|
|
|
|
|
285
|
|
|
|
|
|
|
sub toThrow { |
|
286
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
287
|
|
|
|
|
|
|
return $self->_api_request( |
|
288
|
|
|
|
|
|
|
args => [@_], |
|
289
|
|
|
|
|
|
|
command => 'toThrow', |
|
290
|
|
|
|
|
|
|
object => $self->{guid}, |
|
291
|
|
|
|
|
|
|
type => $self->{type} |
|
292
|
0
|
|
|
|
|
|
); |
|
293
|
|
|
|
|
|
|
} |
|
294
|
|
|
|
|
|
|
|
|
295
|
|
|
|
|
|
|
sub toBeInstanceOf { |
|
296
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
297
|
|
|
|
|
|
|
return $self->_api_request( |
|
298
|
|
|
|
|
|
|
args => [@_], |
|
299
|
|
|
|
|
|
|
command => 'toBeInstanceOf', |
|
300
|
|
|
|
|
|
|
object => $self->{guid}, |
|
301
|
|
|
|
|
|
|
type => $self->{type} |
|
302
|
0
|
|
|
|
|
|
); |
|
303
|
|
|
|
|
|
|
} |
|
304
|
|
|
|
|
|
|
|
|
305
|
|
|
|
|
|
|
sub toBeNaN { |
|
306
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
307
|
|
|
|
|
|
|
return $self->_api_request( |
|
308
|
|
|
|
|
|
|
args => [@_], |
|
309
|
|
|
|
|
|
|
command => 'toBeNaN', |
|
310
|
|
|
|
|
|
|
object => $self->{guid}, |
|
311
|
|
|
|
|
|
|
type => $self->{type} |
|
312
|
0
|
|
|
|
|
|
); |
|
313
|
|
|
|
|
|
|
} |
|
314
|
|
|
|
|
|
|
|
|
315
|
|
|
|
|
|
|
sub toBeTruthy { |
|
316
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
317
|
|
|
|
|
|
|
return $self->_api_request( |
|
318
|
|
|
|
|
|
|
args => [@_], |
|
319
|
|
|
|
|
|
|
command => 'toBeTruthy', |
|
320
|
|
|
|
|
|
|
object => $self->{guid}, |
|
321
|
|
|
|
|
|
|
type => $self->{type} |
|
322
|
0
|
|
|
|
|
|
); |
|
323
|
|
|
|
|
|
|
} |
|
324
|
|
|
|
|
|
|
|
|
325
|
|
|
|
|
|
|
sub toBeDefined { |
|
326
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
327
|
|
|
|
|
|
|
return $self->_api_request( |
|
328
|
|
|
|
|
|
|
args => [@_], |
|
329
|
|
|
|
|
|
|
command => 'toBeDefined', |
|
330
|
|
|
|
|
|
|
object => $self->{guid}, |
|
331
|
|
|
|
|
|
|
type => $self->{type} |
|
332
|
0
|
|
|
|
|
|
); |
|
333
|
|
|
|
|
|
|
} |
|
334
|
|
|
|
|
|
|
|
|
335
|
|
|
|
|
|
|
sub on { |
|
336
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
337
|
|
|
|
|
|
|
return $self->_api_request( |
|
338
|
|
|
|
|
|
|
args => [@_], |
|
339
|
|
|
|
|
|
|
command => 'on', |
|
340
|
|
|
|
|
|
|
object => $self->{guid}, |
|
341
|
|
|
|
|
|
|
type => $self->{type} |
|
342
|
0
|
|
|
|
|
|
); |
|
343
|
|
|
|
|
|
|
} |
|
344
|
|
|
|
|
|
|
|
|
345
|
|
|
|
|
|
|
sub evaluate { |
|
346
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
347
|
|
|
|
|
|
|
return $self->_api_request( |
|
348
|
|
|
|
|
|
|
args => [@_], |
|
349
|
|
|
|
|
|
|
command => 'evaluate', |
|
350
|
|
|
|
|
|
|
object => $self->{guid}, |
|
351
|
|
|
|
|
|
|
type => $self->{type} |
|
352
|
0
|
|
|
|
|
|
); |
|
353
|
|
|
|
|
|
|
} |
|
354
|
|
|
|
|
|
|
|
|
355
|
|
|
|
|
|
|
sub evaluateHandle { |
|
356
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
|
357
|
|
|
|
|
|
|
return $self->_api_request( |
|
358
|
|
|
|
|
|
|
args => [@_], |
|
359
|
|
|
|
|
|
|
command => 'evaluateHandle', |
|
360
|
|
|
|
|
|
|
object => $self->{guid}, |
|
361
|
|
|
|
|
|
|
type => $self->{type} |
|
362
|
0
|
|
|
|
|
|
); |
|
363
|
|
|
|
|
|
|
} |
|
364
|
|
|
|
|
|
|
|
|
365
|
|
|
|
|
|
|
1; |
|
366
|
|
|
|
|
|
|
|
|
367
|
|
|
|
|
|
|
__END__ |