Skip to content

Commit 242f82e

Browse files
author
Jayson Chen
committed
Small nit
1 parent d377b21 commit 242f82e

1 file changed

Lines changed: 39 additions & 39 deletions

File tree

custom-elements/registries/scoped-registry-effective-global-registry.html

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -107,237 +107,237 @@
107107

108108
function runTest(operation, operationName) {
109109
// Null registry child tests
110-
test((test) => {
110+
test(test => {
111111
const [win, host] = operation(addNullRegistryChild(createParentElementWithRegistryAttribute(null)), test);
112112
assert_equals(host.querySelector('a-b').customElementRegistry, null);
113113
assert_equals(host.firstElementChild.customElementRegistry, null);
114114
}, 'Null registry element with element parent with custom element registry attribute (null registry) ' + operationName);
115115

116-
test ((test) => {
116+
test (test => {
117117
const [win, host] = operation(addNullRegistryChild(createParentElementWithRegistryAttribute(customElements)), test);
118118
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
119119
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
120120
}, 'Null registry element with element parent with custom element registry attribute (global registry) ' + operationName);
121121

122-
test ((test) => {
122+
test (test => {
123123
const [win, host] = operation(addNullRegistryChild(createParentElementWithRegistryAttribute(scopedRegistry)), test);
124124
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
125125
assert_equals(host.firstElementChild.customElementRegistry, scopedRegistry);
126126
}, 'Null registry element with element parent with custom element registry attribute (scoped registry) ' + operationName);
127127

128-
test ((test) => {
128+
test (test => {
129129
const [doc, win, host] = operation(addNullRegistryChild(createParentElementWithoutRegistryAttribute(null)), test);
130130
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
131131
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
132132
}, 'Null registry element with element parent without custom element registry attribute (null registry) ' + operationName);
133133

134-
test((test) => {
134+
test(test => {
135135
const [win, host] = operation(addNullRegistryChild(createParentElementWithoutRegistryAttribute(customElements)), test);
136136
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
137137
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
138138
}, 'Null registry element with element parent without custom element registry attribute (global registry) ' + operationName);
139139

140-
test((test) => {
140+
test(test => {
141141
const [win, host] = operation(addNullRegistryChild(createParentElementWithoutRegistryAttribute(scopedRegistry)), test);
142142
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
143143
assert_equals(host.firstElementChild.customElementRegistry, scopedRegistry);
144144
}, 'Null registry element with element parent without custom element registry attribute (scoped registry) ' + operationName);
145145

146-
test((test) => {
146+
test(test => {
147147
const [win, host] = operation(addNullRegistryChild(createParentDeclarativeShadowRootWithoutRegistryAttribute()), test);
148148
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
149149
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
150150
}, 'Null registry element with declarative shadow root parent without custom element registry attribute ' + operationName);
151151

152-
test((test) => {
152+
test(test => {
153153
const [win, host] = operation(addNullRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(null)), test);
154154
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, null);
155155
assert_equals(host.shadowRoot.customElementRegistry, null);
156156
}, 'Null registry element with declarative shadow root parent with custom element registry attribute (null registry) ' + operationName);
157157

158-
test((test) => {
158+
test(test => {
159159
const [win, host] = operation(addNullRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(customElements)), test);
160160
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
161161
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
162162
}, 'Null registry element with declarative shadow root parent with custom element registry attribute (global registry) ' + operationName);
163163

164-
test((test) => {
164+
test(test => {
165165
const [win, host] = operation(addNullRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(scopedRegistry)), test);
166166
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
167167
assert_equals(host.shadowRoot.customElementRegistry, scopedRegistry);
168168
}, 'Null registry element with declarative shadow root parent with custom element registry attribute (scoped registry) ' + operationName);
169169

170-
test((test) => {
170+
test(test => {
171171
const [win, host] = operation(addNullRegistryChild(createParentImperativeShadowRoot(null)), test);
172172
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
173173
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
174174
}, 'Null registry element with imperative shadow root parent (null registry) ' + operationName);
175175

176-
test((test) => {
176+
test(test => {
177177
const [win, host] = operation(addNullRegistryChild(createParentImperativeShadowRoot(customElements)), test);
178178
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
179179
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
180180
}, 'Null registry element with imperative shadow root parent (global registry) ' + operationName);
181181

182-
test((test) => {
182+
test(test => {
183183
const [win, host] = operation(addNullRegistryChild(createParentImperativeShadowRoot(scopedRegistry)), test);
184184
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
185185
assert_equals(host.shadowRoot.customElementRegistry, scopedRegistry);
186186
}, 'Null registry element with imperative shadow root parent (scoped registry) ' + operationName);
187187

188188
// Global registry child tests
189-
test ((test) => {
189+
test (test => {
190190
const [win, host] = operation(addGlobalRegistryChild(createParentElementWithRegistryAttribute(null)), test);
191191
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
192192
assert_equals(host.firstElementChild.customElementRegistry, null);
193193
}, 'Global registry element with element parent with custom element registry attribute (null registry) ' + operationName);
194194

195-
test ((test) => {
195+
test (test => {
196196
const [win, host] = operation(addGlobalRegistryChild(createParentElementWithRegistryAttribute(customElements)), test);
197197
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
198198
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
199199
}, 'Global registry element with element parent with custom element registry attribute (global registry) ' + operationName);
200200

201-
test ((test) => {
201+
test (test => {
202202
const [win, host] = operation(addGlobalRegistryChild(createParentElementWithRegistryAttribute(scopedRegistry)), test);
203203
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
204204
assert_equals(host.firstElementChild.customElementRegistry, scopedRegistry);
205205
}, 'Global registry element with element parent with custom element registry attribute (scoped registry) ' + operationName);
206206

207-
test ((test) => {
207+
test (test => {
208208
const [win, host] = operation(addGlobalRegistryChild(createParentElementWithoutRegistryAttribute(null)), test);
209209
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
210210
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
211211
}, 'Global registry element with element parent without custom element registry attribute (null registry) ' + operationName);
212212

213-
test((test) => {
213+
test(test => {
214214
const [win, host] = operation(addGlobalRegistryChild(createParentElementWithoutRegistryAttribute(customElements)), test);
215215
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
216216
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
217217
}, 'Global registry element with element parent without custom element registry attribute (global registry) ' + operationName);
218218

219-
test((test) => {
219+
test(test => {
220220
const [win, host] = operation(addGlobalRegistryChild(createParentElementWithoutRegistryAttribute(scopedRegistry)), test);
221221
assert_equals(host.querySelector('a-b').customElementRegistry, win.customElements);
222222
assert_equals(host.firstElementChild.customElementRegistry, scopedRegistry);
223223
}, 'Global registry element with element parent without custom element registry attribute (scoped registry) ' + operationName);
224224

225-
test((test) => {
225+
test(test => {
226226
const [win, host] = operation(addGlobalRegistryChild(createParentDeclarativeShadowRootWithoutRegistryAttribute()), test);
227227
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
228228
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
229229
}, 'Global registry element with declarative shadow root parent without custom element registry attribute ' + operationName);
230230

231-
test((test) => {
231+
test(test => {
232232
const [win, host] = operation(addGlobalRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(null)), test);
233233
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
234234
assert_equals(host.shadowRoot.customElementRegistry, null);
235235
}, 'Global registry element with declarative shadow root parent with custom element registry attribute (null registry) ' + operationName);
236236

237-
test((test) => {
237+
test(test => {
238238
const [win, host] = operation(addGlobalRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(customElements)), test);
239239
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
240240
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
241241
}, 'Global registry element with declarative shadow root parent with custom element registry attribute (global registry) ' + operationName);
242242

243-
test((test) => {
243+
test(test => {
244244
const [win, host] = operation(addGlobalRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(scopedRegistry)), test);
245245
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
246246
assert_equals(host.shadowRoot.customElementRegistry, scopedRegistry);
247247
}, 'Global registry element with declarative shadow root parent with custom element registry attribute (scoped registry) ' + operationName);
248248

249-
test((test) => {
249+
test(test => {
250250
const [win, host] = operation(addGlobalRegistryChild(createParentImperativeShadowRoot(null)), test);
251251
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
252252
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
253253
}, 'Global registry element with imperative shadow root parent (null registry) ' + operationName);
254254

255-
test((test) => {
255+
test(test => {
256256
const [win, host] = operation(addGlobalRegistryChild(createParentImperativeShadowRoot(customElements)), test);
257257
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
258258
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
259259
}, 'Global registry element with imperative shadow root parent (global registry) ' + operationName);
260260

261-
test((test) => {
261+
test(test => {
262262
const [win, host] = operation(addGlobalRegistryChild(createParentImperativeShadowRoot(scopedRegistry)), test);
263263
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, win.customElements);
264264
assert_equals(host.shadowRoot.customElementRegistry, scopedRegistry);
265265
}, 'Global registry element with imperative shadow root parent (scoped registry) ' + operationName);
266266

267267
// Scoped registry child tests
268-
test ((test) => {
268+
test (test => {
269269
const [win, host] = operation(addScopedRegistryChild(createParentElementWithRegistryAttribute(null)), test);
270270
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
271271
assert_equals(host.firstElementChild.customElementRegistry, null);
272272
}, 'Scoped registry element with element parent with custom element registry attribute (null registry) ' + operationName);
273273

274-
test ((test) => {
274+
test (test => {
275275
const [win, host] = operation(addScopedRegistryChild(createParentElementWithRegistryAttribute(customElements)), test);
276276
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
277277
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
278278
}, 'Scoped registry element with element parent with custom element registry attribute (global registry) ' + operationName);
279279

280-
test ((test) => {
280+
test (test => {
281281
const [win, host] = operation(addScopedRegistryChild(createParentElementWithRegistryAttribute(scopedRegistry)), test);
282282
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
283283
assert_equals(host.firstElementChild.customElementRegistry, scopedRegistry);
284284
}, 'Scoped registry element with element parent with custom element registry attribute (scoped registry) ' + operationName);
285285

286-
test ((test) => {
286+
test (test => {
287287
const [win, host] = operation(addScopedRegistryChild(createParentElementWithoutRegistryAttribute(null)), test);
288288
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
289289
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
290290
}, 'Scoped registry element with element parent without custom element registry attribute (null registry) ' + operationName);
291291

292-
test((test) => {
292+
test(test => {
293293
const [win, host] = operation(addScopedRegistryChild(createParentElementWithoutRegistryAttribute(customElements)), test);
294294
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
295295
assert_equals(host.firstElementChild.customElementRegistry, win.customElements);
296296
}, 'Scoped registry element with element parent without custom element registry attribute (global registry) ' + operationName);
297297

298-
test((test) => {
298+
test(test => {
299299
const [win, host] = operation(addScopedRegistryChild(createParentElementWithoutRegistryAttribute(scopedRegistry)), test);
300300
assert_equals(host.querySelector('a-b').customElementRegistry, scopedRegistry);
301301
assert_equals(host.firstElementChild.customElementRegistry, scopedRegistry);
302302
}, 'Scoped registry element with element parent without custom element registry attribute (scoped registry) ' + operationName);
303303

304-
test((test) => {
304+
test(test => {
305305
const [win, host] = operation(addScopedRegistryChild(createParentDeclarativeShadowRootWithoutRegistryAttribute()), test);
306306
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
307307
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
308308
}, 'Scoped registry element with declarative shadow root parent without custom element registry attribute ' + operationName);
309309

310-
test((test) => {
310+
test(test => {
311311
const [win, host] = operation(addScopedRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(null)), test);
312312
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
313313
assert_equals(host.shadowRoot.customElementRegistry, null);
314314
}, 'Scoped registry element with declarative shadow root parent with custom element registry attribute (null registry) ' + operationName);
315315

316-
test((test) => {
316+
test(test => {
317317
const [win, host] = operation(addScopedRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(customElements)), test);
318318
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
319319
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
320320
}, 'Scoped registry element with declarative shadow root parent with custom element registry attribute (global registry) ' + operationName);
321321

322-
test((test) => {
322+
test(test => {
323323
const [win, host] = operation(addScopedRegistryChild(createParentDeclarativeShadowRootWithRegistryAttribute(scopedRegistry)), test);
324324
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
325325
assert_equals(host.shadowRoot.customElementRegistry, scopedRegistry);
326326
}, 'Scoped registry element with declarative shadow root parent with custom element registry attribute (scoped registry) ' + operationName);
327327

328-
test((test) => {
328+
test(test => {
329329
const [win, host] = operation(addScopedRegistryChild(createParentImperativeShadowRoot(null)), test);
330330
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
331331
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
332332
}, 'Scoped registry element with imperative shadow root parent (null registry) ' + operationName);
333333

334-
test((test) => {
334+
test(test => {
335335
const [win, host] = operation(addScopedRegistryChild(createParentImperativeShadowRoot(customElements)), test);
336336
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
337337
assert_equals(host.shadowRoot.customElementRegistry, win.customElements);
338338
}, 'Scoped registry element with imperative shadow root parent (global registry) ' + operationName);
339339

340-
test((test) => {
340+
test(test => {
341341
const [win, host] = operation(addScopedRegistryChild(createParentImperativeShadowRoot(scopedRegistry)), test);
342342
assert_equals(host.shadowRoot.querySelector('a-b').customElementRegistry, scopedRegistry);
343343
assert_equals(host.shadowRoot.customElementRegistry, scopedRegistry);

0 commit comments

Comments
 (0)