(subtest)
| 363 | } |
| 364 | |
| 365 | async function startSubtestAfterBootstrap(subtest) { |
| 366 | if (subtest.root.harness.buildPromise) { |
| 367 | if (subtest.root.harness.bootstrapPromise) { |
| 368 | await subtest.root.harness.bootstrapPromise; |
| 369 | subtest.root.harness.bootstrapPromise = null; |
| 370 | } |
| 371 | |
| 372 | if (subtest.buildSuite) { |
| 373 | ArrayPrototypePush(subtest.root.harness.buildSuites, subtest.buildSuite); |
| 374 | } |
| 375 | |
| 376 | if (!subtest.root.harness.isWaitingForBuildPhase) { |
| 377 | subtest.root.harness.isWaitingForBuildPhase = true; |
| 378 | queueMicrotask(() => { |
| 379 | subtest.root.harness.waitForBuildPhase(); |
| 380 | }); |
| 381 | } |
| 382 | |
| 383 | await subtest.root.harness.buildPromise; |
| 384 | subtest.root.harness.buildPromise = null; |
| 385 | } |
| 386 | |
| 387 | await subtest.start(); |
| 388 | } |
| 389 | |
| 390 | function runInParentContext(Factory) { |
| 391 | function run(name, options, fn, overrides) { |
no test coverage detected
searching dependent graphs…