Commit 7ed7ef7
test: move execution of WPT to worker threads
Running outside of the main Node.js context prevents us from upgrading
the WPT harness because new versions more aggressively check the
identity of globals like error constructors. Instead of exposing
globals used by the tests on vm sandboxes, use worker threads to run
everything.
PR-URL: #34796
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 47f2f45 commit 7ed7ef7Copy full SHA for 7ed7ef7
File tree
Expand file treeCollapse file tree
10 files changed
+141
-161
lines changedOpen diff view settings
Filter options
- test
- common
- wpt
- wpt
Expand file treeCollapse file tree
10 files changed
+141
-161
lines changedOpen diff view settings
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
962 | 962 | |
963 | 963 | |
964 | 964 | |
965 | | - |
| 965 | + |
966 | 966 | |
967 | 967 | |
968 | 968 | |
|
Collapse file
+54-92Lines changed: 54 additions & 92 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | 13 | |
| ||
222 | 222 | |
223 | 223 | |
224 | 224 | |
225 | | - |
226 | 225 | |
227 | 226 | |
228 | 227 | |
| ||
287 | 286 | |
288 | 287 | |
289 | 288 | |
290 | | - |
291 | | - |
292 | 289 | |
293 | | - |
| 290 | + |
| 291 | + |
294 | 292 | |
295 | 293 | |
296 | 294 | |
| ||
304 | 302 | |
305 | 303 | |
306 | 304 | |
307 | | - |
308 | | - |
309 | | - |
310 | | - |
| 305 | + |
| 306 | + |
311 | 307 | |
312 | | - |
313 | | - |
314 | | - |
315 | | - |
316 | | - |
317 | | - |
318 | | - |
319 | | - |
| 308 | + |
| 309 | + |
320 | 310 | |
321 | 311 | |
322 | 312 | |
323 | | - |
324 | | - |
325 | | - |
| 313 | + |
| 314 | + |
326 | 315 | |
327 | | - |
328 | | - |
| 316 | + |
| 317 | + |
329 | 318 | |
330 | 319 | |
331 | 320 | |
| ||
353 | 342 | |
354 | 343 | |
355 | 344 | |
356 | | - |
357 | 345 | |
| 346 | + |
358 | 347 | |
359 | 348 | |
360 | 349 | |
| ||
371 | 360 | |
372 | 361 | |
373 | 362 | |
374 | | - |
375 | | - |
376 | | - |
377 | | - |
378 | | - |
379 | | - |
380 | | - |
381 | | - |
382 | | - |
383 | | - |
384 | | - |
385 | | - |
386 | | - |
387 | | - |
388 | | - |
389 | | - |
| 363 | + |
| 364 | + |
| 365 | + |
| 366 | + |
| 367 | + |
| 368 | + |
| 369 | + |
| 370 | + |
| 371 | + |
| 372 | + |
| 373 | + |
| 374 | + |
| 375 | + |
| 376 | + |
| 377 | + |
| 378 | + |
| 379 | + |
| 380 | + |
| 381 | + |
| 382 | + |
| 383 | + |
| 384 | + |
| 385 | + |
| 386 | + |
390 | 387 | |
391 | | - |
| 388 | + |
| 389 | + |
| 390 | + |
| 391 | + |
| 392 | + |
| 393 | + |
| 394 | + |
| 395 | + |
| 396 | + |
| 397 | + |
| 398 | + |
| 399 | + |
| 400 | + |
| 401 | + |
| 402 | + |
392 | 403 | |
393 | 404 | |
394 | 405 | |
| ||
430 | 441 | |
431 | 442 | |
432 | 443 | |
433 | | - |
434 | | - |
435 | | - |
436 | | - |
437 | | - |
438 | | - |
439 | | - |
440 | | - |
441 | | - |
442 | | - |
443 | | - |
444 | | - |
445 | | - |
446 | | - |
447 | | - |
448 | | - |
449 | | - |
450 | | - |
451 | | - |
452 | | - |
453 | | - |
454 | | - |
455 | | - |
456 | | - |
457 | | - |
458 | | - |
459 | | - |
460 | | - |
461 | | - |
462 | | - |
463 | | - |
464 | | - |
465 | | - |
466 | | - |
467 | | - |
468 | | - |
469 | | - |
470 | | - |
471 | | - |
472 | | - |
473 | | - |
474 | | - |
475 | | - |
476 | | - |
477 | | - |
478 | | - |
479 | | - |
480 | | - |
481 | | - |
482 | | - |
483 | 444 | |
484 | 445 | |
485 | 446 | |
| ||
524 | 485 | |
525 | 486 | |
526 | 487 | |
527 | | - |
| 488 | + |
528 | 489 | |
529 | | - |
| 490 | + |
530 | 491 | |
531 | 492 | |
532 | 493 | |
| ||
644 | 605 | |
645 | 606 | |
646 | 607 | |
| 608 | + |
647 | 609 | |
648 | 610 | |
Collapse file
test/common/wpt/worker.js
Copy file name to clipboard+55Lines changed: 55 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
Collapse file
+12-15Lines changed: 12 additions & 15 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
52 | 48 | |
53 | 49 | |
54 | 50 | |
55 | 51 | |
56 | 52 | |
57 | | - |
58 | | - |
59 | | - |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
64 | | - |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
65 | 62 | |
66 | 63 | |
67 | 64 | |
| ||
82 | 79 | |
83 | 80 | |
84 | 81 | |
85 | | - |
| 82 | + |
86 | 83 | |
87 | 84 | |
88 | 85 | |
| ||
138 | 135 | |
139 | 136 | |
140 | 137 | |
141 | | - |
| 138 | + |
142 | 139 | |
143 | | - |
| 140 | + |
144 | 141 | |
145 | 142 | |
146 | 143 | |
|
Collapse file
-3Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
9 | | - |
10 | 7 | |
Collapse file
test/wpt/test-encoding.js
Copy file name to clipboard+4-9Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
4 | 3 | |
5 | 4 | |
6 | 5 | |
7 | | - |
8 | | - |
9 | | - |
10 | | - |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
15 | 10 | |
16 | 11 | |
Collapse file
test/wpt/test-hr-time.js
Copy file name to clipboard+5-18Lines changed: 5 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | | - |
4 | | - |
5 | 3 | |
6 | 4 | |
7 | | - |
8 | 5 | |
9 | 6 | |
10 | 7 | |
11 | | - |
12 | | - |
13 | | - |
14 | | - |
15 | | - |
16 | | - |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | | - |
22 | | - |
23 | | - |
24 | | - |
25 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
26 | 13 | |
27 | 14 | |
0 commit comments