11cb0ef41Sopenharmony_ciTAP version 13
21cb0ef41Sopenharmony_ci# Subtest: sync pass todo
31cb0ef41Sopenharmony_ciok 1 - sync pass todo # TODO
41cb0ef41Sopenharmony_ci  ---
51cb0ef41Sopenharmony_ci  duration_ms: *
61cb0ef41Sopenharmony_ci  ...
71cb0ef41Sopenharmony_ci# Subtest: sync pass todo with message
81cb0ef41Sopenharmony_ciok 2 - sync pass todo with message # TODO this is a passing todo
91cb0ef41Sopenharmony_ci  ---
101cb0ef41Sopenharmony_ci  duration_ms: *
111cb0ef41Sopenharmony_ci  ...
121cb0ef41Sopenharmony_ci# Subtest: sync fail todo
131cb0ef41Sopenharmony_cinot ok 3 - sync fail todo # TODO
141cb0ef41Sopenharmony_ci  ---
151cb0ef41Sopenharmony_ci  duration_ms: *
161cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
171cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
181cb0ef41Sopenharmony_ci  error: 'thrown from sync fail todo'
191cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
201cb0ef41Sopenharmony_ci  stack: |-
211cb0ef41Sopenharmony_ci    *
221cb0ef41Sopenharmony_ci    *
231cb0ef41Sopenharmony_ci    *
241cb0ef41Sopenharmony_ci    *
251cb0ef41Sopenharmony_ci    *
261cb0ef41Sopenharmony_ci    *
271cb0ef41Sopenharmony_ci    *
281cb0ef41Sopenharmony_ci  ...
291cb0ef41Sopenharmony_ci# Subtest: sync fail todo with message
301cb0ef41Sopenharmony_cinot ok 4 - sync fail todo with message # TODO this is a failing todo
311cb0ef41Sopenharmony_ci  ---
321cb0ef41Sopenharmony_ci  duration_ms: *
331cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
341cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
351cb0ef41Sopenharmony_ci  error: 'thrown from sync fail todo with message'
361cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
371cb0ef41Sopenharmony_ci  stack: |-
381cb0ef41Sopenharmony_ci    *
391cb0ef41Sopenharmony_ci    *
401cb0ef41Sopenharmony_ci    *
411cb0ef41Sopenharmony_ci    *
421cb0ef41Sopenharmony_ci    *
431cb0ef41Sopenharmony_ci    *
441cb0ef41Sopenharmony_ci    *
451cb0ef41Sopenharmony_ci  ...
461cb0ef41Sopenharmony_ci# Subtest: sync skip pass
471cb0ef41Sopenharmony_ciok 5 - sync skip pass # SKIP
481cb0ef41Sopenharmony_ci  ---
491cb0ef41Sopenharmony_ci  duration_ms: *
501cb0ef41Sopenharmony_ci  ...
511cb0ef41Sopenharmony_ci# Subtest: sync skip pass with message
521cb0ef41Sopenharmony_ciok 6 - sync skip pass with message # SKIP this is skipped
531cb0ef41Sopenharmony_ci  ---
541cb0ef41Sopenharmony_ci  duration_ms: *
551cb0ef41Sopenharmony_ci  ...
561cb0ef41Sopenharmony_ci# Subtest: sync pass
571cb0ef41Sopenharmony_ciok 7 - sync pass
581cb0ef41Sopenharmony_ci  ---
591cb0ef41Sopenharmony_ci  duration_ms: *
601cb0ef41Sopenharmony_ci  ...
611cb0ef41Sopenharmony_ci# this test should pass
621cb0ef41Sopenharmony_ci# Subtest: sync throw fail
631cb0ef41Sopenharmony_cinot ok 8 - sync throw fail
641cb0ef41Sopenharmony_ci  ---
651cb0ef41Sopenharmony_ci  duration_ms: *
661cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
671cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
681cb0ef41Sopenharmony_ci  error: 'thrown from sync throw fail'
691cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
701cb0ef41Sopenharmony_ci  stack: |-
711cb0ef41Sopenharmony_ci    *
721cb0ef41Sopenharmony_ci    *
731cb0ef41Sopenharmony_ci    *
741cb0ef41Sopenharmony_ci    *
751cb0ef41Sopenharmony_ci    *
761cb0ef41Sopenharmony_ci    *
771cb0ef41Sopenharmony_ci    *
781cb0ef41Sopenharmony_ci  ...
791cb0ef41Sopenharmony_ci# Subtest: async skip pass
801cb0ef41Sopenharmony_ciok 9 - async skip pass # SKIP
811cb0ef41Sopenharmony_ci  ---
821cb0ef41Sopenharmony_ci  duration_ms: *
831cb0ef41Sopenharmony_ci  ...
841cb0ef41Sopenharmony_ci# Subtest: async pass
851cb0ef41Sopenharmony_ciok 10 - async pass
861cb0ef41Sopenharmony_ci  ---
871cb0ef41Sopenharmony_ci  duration_ms: *
881cb0ef41Sopenharmony_ci  ...
891cb0ef41Sopenharmony_ci# Subtest: async throw fail
901cb0ef41Sopenharmony_cinot ok 11 - async throw fail
911cb0ef41Sopenharmony_ci  ---
921cb0ef41Sopenharmony_ci  duration_ms: *
931cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
941cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
951cb0ef41Sopenharmony_ci  error: 'thrown from async throw fail'
961cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
971cb0ef41Sopenharmony_ci  stack: |-
981cb0ef41Sopenharmony_ci    *
991cb0ef41Sopenharmony_ci    *
1001cb0ef41Sopenharmony_ci    *
1011cb0ef41Sopenharmony_ci    *
1021cb0ef41Sopenharmony_ci    *
1031cb0ef41Sopenharmony_ci    *
1041cb0ef41Sopenharmony_ci    *
1051cb0ef41Sopenharmony_ci  ...
1061cb0ef41Sopenharmony_ci# Subtest: async skip fail
1071cb0ef41Sopenharmony_cinot ok 12 - async skip fail # SKIP
1081cb0ef41Sopenharmony_ci  ---
1091cb0ef41Sopenharmony_ci  duration_ms: *
1101cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
1111cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
1121cb0ef41Sopenharmony_ci  error: 'thrown from async throw fail'
1131cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
1141cb0ef41Sopenharmony_ci  stack: |-
1151cb0ef41Sopenharmony_ci    *
1161cb0ef41Sopenharmony_ci    *
1171cb0ef41Sopenharmony_ci    *
1181cb0ef41Sopenharmony_ci    *
1191cb0ef41Sopenharmony_ci    *
1201cb0ef41Sopenharmony_ci    *
1211cb0ef41Sopenharmony_ci    *
1221cb0ef41Sopenharmony_ci  ...
1231cb0ef41Sopenharmony_ci# Subtest: async assertion fail
1241cb0ef41Sopenharmony_cinot ok 13 - async assertion fail
1251cb0ef41Sopenharmony_ci  ---
1261cb0ef41Sopenharmony_ci  duration_ms: *
1271cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
1281cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
1291cb0ef41Sopenharmony_ci  error: |-
1301cb0ef41Sopenharmony_ci    Expected values to be strictly equal:
1311cb0ef41Sopenharmony_ci    
1321cb0ef41Sopenharmony_ci    true !== false
1331cb0ef41Sopenharmony_ci    
1341cb0ef41Sopenharmony_ci  code: 'ERR_ASSERTION'
1351cb0ef41Sopenharmony_ci  name: 'AssertionError'
1361cb0ef41Sopenharmony_ci  expected: false
1371cb0ef41Sopenharmony_ci  actual: true
1381cb0ef41Sopenharmony_ci  operator: 'strictEqual'
1391cb0ef41Sopenharmony_ci  stack: |-
1401cb0ef41Sopenharmony_ci    *
1411cb0ef41Sopenharmony_ci    *
1421cb0ef41Sopenharmony_ci    *
1431cb0ef41Sopenharmony_ci    *
1441cb0ef41Sopenharmony_ci    *
1451cb0ef41Sopenharmony_ci    *
1461cb0ef41Sopenharmony_ci    *
1471cb0ef41Sopenharmony_ci  ...
1481cb0ef41Sopenharmony_ci# Subtest: resolve pass
1491cb0ef41Sopenharmony_ciok 14 - resolve pass
1501cb0ef41Sopenharmony_ci  ---
1511cb0ef41Sopenharmony_ci  duration_ms: *
1521cb0ef41Sopenharmony_ci  ...
1531cb0ef41Sopenharmony_ci# Subtest: reject fail
1541cb0ef41Sopenharmony_cinot ok 15 - reject fail
1551cb0ef41Sopenharmony_ci  ---
1561cb0ef41Sopenharmony_ci  duration_ms: *
1571cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
1581cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
1591cb0ef41Sopenharmony_ci  error: 'rejected from reject fail'
1601cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
1611cb0ef41Sopenharmony_ci  stack: |-
1621cb0ef41Sopenharmony_ci    *
1631cb0ef41Sopenharmony_ci    *
1641cb0ef41Sopenharmony_ci    *
1651cb0ef41Sopenharmony_ci    *
1661cb0ef41Sopenharmony_ci    *
1671cb0ef41Sopenharmony_ci    *
1681cb0ef41Sopenharmony_ci    *
1691cb0ef41Sopenharmony_ci  ...
1701cb0ef41Sopenharmony_ci# Subtest: unhandled rejection - passes but warns
1711cb0ef41Sopenharmony_ciok 16 - unhandled rejection - passes but warns
1721cb0ef41Sopenharmony_ci  ---
1731cb0ef41Sopenharmony_ci  duration_ms: *
1741cb0ef41Sopenharmony_ci  ...
1751cb0ef41Sopenharmony_ci# Subtest: async unhandled rejection - passes but warns
1761cb0ef41Sopenharmony_ciok 17 - async unhandled rejection - passes but warns
1771cb0ef41Sopenharmony_ci  ---
1781cb0ef41Sopenharmony_ci  duration_ms: *
1791cb0ef41Sopenharmony_ci  ...
1801cb0ef41Sopenharmony_ci# Subtest: immediate throw - passes but warns
1811cb0ef41Sopenharmony_ciok 18 - immediate throw - passes but warns
1821cb0ef41Sopenharmony_ci  ---
1831cb0ef41Sopenharmony_ci  duration_ms: *
1841cb0ef41Sopenharmony_ci  ...
1851cb0ef41Sopenharmony_ci# Subtest: immediate reject - passes but warns
1861cb0ef41Sopenharmony_ciok 19 - immediate reject - passes but warns
1871cb0ef41Sopenharmony_ci  ---
1881cb0ef41Sopenharmony_ci  duration_ms: *
1891cb0ef41Sopenharmony_ci  ...
1901cb0ef41Sopenharmony_ci# Subtest: immediate resolve pass
1911cb0ef41Sopenharmony_ciok 20 - immediate resolve pass
1921cb0ef41Sopenharmony_ci  ---
1931cb0ef41Sopenharmony_ci  duration_ms: *
1941cb0ef41Sopenharmony_ci  ...
1951cb0ef41Sopenharmony_ci# Subtest: subtest sync throw fail
1961cb0ef41Sopenharmony_ci    # Subtest: +sync throw fail
1971cb0ef41Sopenharmony_ci    not ok 1 - +sync throw fail
1981cb0ef41Sopenharmony_ci      ---
1991cb0ef41Sopenharmony_ci      duration_ms: *
2001cb0ef41Sopenharmony_ci      location: '/test/fixtures/test-runner/output/output.js:(LINE):11'
2011cb0ef41Sopenharmony_ci      failureType: 'testCodeFailure'
2021cb0ef41Sopenharmony_ci      error: 'thrown from subtest sync throw fail'
2031cb0ef41Sopenharmony_ci      code: 'ERR_TEST_FAILURE'
2041cb0ef41Sopenharmony_ci      stack: |-
2051cb0ef41Sopenharmony_ci        *
2061cb0ef41Sopenharmony_ci        *
2071cb0ef41Sopenharmony_ci        *
2081cb0ef41Sopenharmony_ci        *
2091cb0ef41Sopenharmony_ci        *
2101cb0ef41Sopenharmony_ci        *
2111cb0ef41Sopenharmony_ci        *
2121cb0ef41Sopenharmony_ci        *
2131cb0ef41Sopenharmony_ci        *
2141cb0ef41Sopenharmony_ci        *
2151cb0ef41Sopenharmony_ci      ...
2161cb0ef41Sopenharmony_ci    # this subtest should make its parent test fail
2171cb0ef41Sopenharmony_ci    1..1
2181cb0ef41Sopenharmony_cinot ok 21 - subtest sync throw fail
2191cb0ef41Sopenharmony_ci  ---
2201cb0ef41Sopenharmony_ci  duration_ms: *
2211cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
2221cb0ef41Sopenharmony_ci  failureType: 'subtestsFailed'
2231cb0ef41Sopenharmony_ci  error: '1 subtest failed'
2241cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
2251cb0ef41Sopenharmony_ci  ...
2261cb0ef41Sopenharmony_ci# Subtest: sync throw non-error fail
2271cb0ef41Sopenharmony_cinot ok 22 - sync throw non-error fail
2281cb0ef41Sopenharmony_ci  ---
2291cb0ef41Sopenharmony_ci  duration_ms: *
2301cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
2311cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
2321cb0ef41Sopenharmony_ci  error: 'Symbol(thrown symbol from sync throw non-error fail)'
2331cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
2341cb0ef41Sopenharmony_ci  ...
2351cb0ef41Sopenharmony_ci# Subtest: level 0a
2361cb0ef41Sopenharmony_ci    # Subtest: level 1a
2371cb0ef41Sopenharmony_ci    ok 1 - level 1a
2381cb0ef41Sopenharmony_ci      ---
2391cb0ef41Sopenharmony_ci      duration_ms: *
2401cb0ef41Sopenharmony_ci      ...
2411cb0ef41Sopenharmony_ci    # Subtest: level 1b
2421cb0ef41Sopenharmony_ci    ok 2 - level 1b
2431cb0ef41Sopenharmony_ci      ---
2441cb0ef41Sopenharmony_ci      duration_ms: *
2451cb0ef41Sopenharmony_ci      ...
2461cb0ef41Sopenharmony_ci    # Subtest: level 1c
2471cb0ef41Sopenharmony_ci    ok 3 - level 1c
2481cb0ef41Sopenharmony_ci      ---
2491cb0ef41Sopenharmony_ci      duration_ms: *
2501cb0ef41Sopenharmony_ci      ...
2511cb0ef41Sopenharmony_ci    # Subtest: level 1d
2521cb0ef41Sopenharmony_ci    ok 4 - level 1d
2531cb0ef41Sopenharmony_ci      ---
2541cb0ef41Sopenharmony_ci      duration_ms: *
2551cb0ef41Sopenharmony_ci      ...
2561cb0ef41Sopenharmony_ci    1..4
2571cb0ef41Sopenharmony_ciok 23 - level 0a
2581cb0ef41Sopenharmony_ci  ---
2591cb0ef41Sopenharmony_ci  duration_ms: *
2601cb0ef41Sopenharmony_ci  ...
2611cb0ef41Sopenharmony_ci# Subtest: top level
2621cb0ef41Sopenharmony_ci    # Subtest: +long running
2631cb0ef41Sopenharmony_ci    not ok 1 - +long running
2641cb0ef41Sopenharmony_ci      ---
2651cb0ef41Sopenharmony_ci      duration_ms: *
2661cb0ef41Sopenharmony_ci      location: '/test/fixtures/test-runner/output/output.js:(LINE):5'
2671cb0ef41Sopenharmony_ci      failureType: 'cancelledByParent'
2681cb0ef41Sopenharmony_ci      error: 'test did not finish before its parent and was cancelled'
2691cb0ef41Sopenharmony_ci      code: 'ERR_TEST_FAILURE'
2701cb0ef41Sopenharmony_ci      ...
2711cb0ef41Sopenharmony_ci    # Subtest: +short running
2721cb0ef41Sopenharmony_ci        # Subtest: ++short running
2731cb0ef41Sopenharmony_ci        ok 1 - ++short running
2741cb0ef41Sopenharmony_ci          ---
2751cb0ef41Sopenharmony_ci          duration_ms: *
2761cb0ef41Sopenharmony_ci          ...
2771cb0ef41Sopenharmony_ci        1..1
2781cb0ef41Sopenharmony_ci    ok 2 - +short running
2791cb0ef41Sopenharmony_ci      ---
2801cb0ef41Sopenharmony_ci      duration_ms: *
2811cb0ef41Sopenharmony_ci      ...
2821cb0ef41Sopenharmony_ci    1..2
2831cb0ef41Sopenharmony_cinot ok 24 - top level
2841cb0ef41Sopenharmony_ci  ---
2851cb0ef41Sopenharmony_ci  duration_ms: *
2861cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
2871cb0ef41Sopenharmony_ci  failureType: 'subtestsFailed'
2881cb0ef41Sopenharmony_ci  error: '1 subtest failed'
2891cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
2901cb0ef41Sopenharmony_ci  ...
2911cb0ef41Sopenharmony_ci# Subtest: invalid subtest - pass but subtest fails
2921cb0ef41Sopenharmony_ciok 25 - invalid subtest - pass but subtest fails
2931cb0ef41Sopenharmony_ci  ---
2941cb0ef41Sopenharmony_ci  duration_ms: *
2951cb0ef41Sopenharmony_ci  ...
2961cb0ef41Sopenharmony_ci# Subtest: sync skip option
2971cb0ef41Sopenharmony_ciok 26 - sync skip option # SKIP
2981cb0ef41Sopenharmony_ci  ---
2991cb0ef41Sopenharmony_ci  duration_ms: *
3001cb0ef41Sopenharmony_ci  ...
3011cb0ef41Sopenharmony_ci# Subtest: sync skip option with message
3021cb0ef41Sopenharmony_ciok 27 - sync skip option with message # SKIP this is skipped
3031cb0ef41Sopenharmony_ci  ---
3041cb0ef41Sopenharmony_ci  duration_ms: *
3051cb0ef41Sopenharmony_ci  ...
3061cb0ef41Sopenharmony_ci# Subtest: sync skip option is false fail
3071cb0ef41Sopenharmony_cinot ok 28 - sync skip option is false fail
3081cb0ef41Sopenharmony_ci  ---
3091cb0ef41Sopenharmony_ci  duration_ms: *
3101cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
3111cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
3121cb0ef41Sopenharmony_ci  error: 'this should be executed'
3131cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
3141cb0ef41Sopenharmony_ci  stack: |-
3151cb0ef41Sopenharmony_ci    *
3161cb0ef41Sopenharmony_ci    *
3171cb0ef41Sopenharmony_ci    *
3181cb0ef41Sopenharmony_ci    *
3191cb0ef41Sopenharmony_ci    *
3201cb0ef41Sopenharmony_ci    *
3211cb0ef41Sopenharmony_ci    *
3221cb0ef41Sopenharmony_ci  ...
3231cb0ef41Sopenharmony_ci# Subtest: <anonymous>
3241cb0ef41Sopenharmony_ciok 29 - <anonymous>
3251cb0ef41Sopenharmony_ci  ---
3261cb0ef41Sopenharmony_ci  duration_ms: *
3271cb0ef41Sopenharmony_ci  ...
3281cb0ef41Sopenharmony_ci# Subtest: functionOnly
3291cb0ef41Sopenharmony_ciok 30 - functionOnly
3301cb0ef41Sopenharmony_ci  ---
3311cb0ef41Sopenharmony_ci  duration_ms: *
3321cb0ef41Sopenharmony_ci  ...
3331cb0ef41Sopenharmony_ci# Subtest: <anonymous>
3341cb0ef41Sopenharmony_ciok 31 - <anonymous>
3351cb0ef41Sopenharmony_ci  ---
3361cb0ef41Sopenharmony_ci  duration_ms: *
3371cb0ef41Sopenharmony_ci  ...
3381cb0ef41Sopenharmony_ci# Subtest: test with only a name provided
3391cb0ef41Sopenharmony_ciok 32 - test with only a name provided
3401cb0ef41Sopenharmony_ci  ---
3411cb0ef41Sopenharmony_ci  duration_ms: *
3421cb0ef41Sopenharmony_ci  ...
3431cb0ef41Sopenharmony_ci# Subtest: <anonymous>
3441cb0ef41Sopenharmony_ciok 33 - <anonymous>
3451cb0ef41Sopenharmony_ci  ---
3461cb0ef41Sopenharmony_ci  duration_ms: *
3471cb0ef41Sopenharmony_ci  ...
3481cb0ef41Sopenharmony_ci# Subtest: <anonymous>
3491cb0ef41Sopenharmony_ciok 34 - <anonymous> # SKIP
3501cb0ef41Sopenharmony_ci  ---
3511cb0ef41Sopenharmony_ci  duration_ms: *
3521cb0ef41Sopenharmony_ci  ...
3531cb0ef41Sopenharmony_ci# Subtest: test with a name and options provided
3541cb0ef41Sopenharmony_ciok 35 - test with a name and options provided # SKIP
3551cb0ef41Sopenharmony_ci  ---
3561cb0ef41Sopenharmony_ci  duration_ms: *
3571cb0ef41Sopenharmony_ci  ...
3581cb0ef41Sopenharmony_ci# Subtest: functionAndOptions
3591cb0ef41Sopenharmony_ciok 36 - functionAndOptions # SKIP
3601cb0ef41Sopenharmony_ci  ---
3611cb0ef41Sopenharmony_ci  duration_ms: *
3621cb0ef41Sopenharmony_ci  ...
3631cb0ef41Sopenharmony_ci# Subtest: callback pass
3641cb0ef41Sopenharmony_ciok 37 - callback pass
3651cb0ef41Sopenharmony_ci  ---
3661cb0ef41Sopenharmony_ci  duration_ms: *
3671cb0ef41Sopenharmony_ci  ...
3681cb0ef41Sopenharmony_ci# Subtest: callback fail
3691cb0ef41Sopenharmony_cinot ok 38 - callback fail
3701cb0ef41Sopenharmony_ci  ---
3711cb0ef41Sopenharmony_ci  duration_ms: *
3721cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
3731cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
3741cb0ef41Sopenharmony_ci  error: 'callback failure'
3751cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
3761cb0ef41Sopenharmony_ci  stack: |-
3771cb0ef41Sopenharmony_ci    *
3781cb0ef41Sopenharmony_ci    *
3791cb0ef41Sopenharmony_ci  ...
3801cb0ef41Sopenharmony_ci# Subtest: sync t is this in test
3811cb0ef41Sopenharmony_ciok 39 - sync t is this in test
3821cb0ef41Sopenharmony_ci  ---
3831cb0ef41Sopenharmony_ci  duration_ms: *
3841cb0ef41Sopenharmony_ci  ...
3851cb0ef41Sopenharmony_ci# Subtest: async t is this in test
3861cb0ef41Sopenharmony_ciok 40 - async t is this in test
3871cb0ef41Sopenharmony_ci  ---
3881cb0ef41Sopenharmony_ci  duration_ms: *
3891cb0ef41Sopenharmony_ci  ...
3901cb0ef41Sopenharmony_ci# Subtest: callback t is this in test
3911cb0ef41Sopenharmony_ciok 41 - callback t is this in test
3921cb0ef41Sopenharmony_ci  ---
3931cb0ef41Sopenharmony_ci  duration_ms: *
3941cb0ef41Sopenharmony_ci  ...
3951cb0ef41Sopenharmony_ci# Subtest: callback also returns a Promise
3961cb0ef41Sopenharmony_cinot ok 42 - callback also returns a Promise
3971cb0ef41Sopenharmony_ci  ---
3981cb0ef41Sopenharmony_ci  duration_ms: *
3991cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
4001cb0ef41Sopenharmony_ci  failureType: 'callbackAndPromisePresent'
4011cb0ef41Sopenharmony_ci  error: 'passed a callback but also returned a Promise'
4021cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
4031cb0ef41Sopenharmony_ci  ...
4041cb0ef41Sopenharmony_ci# Subtest: callback throw
4051cb0ef41Sopenharmony_cinot ok 43 - callback throw
4061cb0ef41Sopenharmony_ci  ---
4071cb0ef41Sopenharmony_ci  duration_ms: *
4081cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
4091cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
4101cb0ef41Sopenharmony_ci  error: 'thrown from callback throw'
4111cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
4121cb0ef41Sopenharmony_ci  stack: |-
4131cb0ef41Sopenharmony_ci    *
4141cb0ef41Sopenharmony_ci    *
4151cb0ef41Sopenharmony_ci    *
4161cb0ef41Sopenharmony_ci    *
4171cb0ef41Sopenharmony_ci    *
4181cb0ef41Sopenharmony_ci    *
4191cb0ef41Sopenharmony_ci    *
4201cb0ef41Sopenharmony_ci  ...
4211cb0ef41Sopenharmony_ci# Subtest: callback called twice
4221cb0ef41Sopenharmony_cinot ok 44 - callback called twice
4231cb0ef41Sopenharmony_ci  ---
4241cb0ef41Sopenharmony_ci  duration_ms: *
4251cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
4261cb0ef41Sopenharmony_ci  failureType: 'multipleCallbackInvocations'
4271cb0ef41Sopenharmony_ci  error: 'callback invoked multiple times'
4281cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
4291cb0ef41Sopenharmony_ci  stack: |-
4301cb0ef41Sopenharmony_ci    *
4311cb0ef41Sopenharmony_ci    *
4321cb0ef41Sopenharmony_ci  ...
4331cb0ef41Sopenharmony_ci# Subtest: callback called twice in different ticks
4341cb0ef41Sopenharmony_ciok 45 - callback called twice in different ticks
4351cb0ef41Sopenharmony_ci  ---
4361cb0ef41Sopenharmony_ci  duration_ms: *
4371cb0ef41Sopenharmony_ci  ...
4381cb0ef41Sopenharmony_ci# Subtest: callback called twice in future tick
4391cb0ef41Sopenharmony_cinot ok 46 - callback called twice in future tick
4401cb0ef41Sopenharmony_ci  ---
4411cb0ef41Sopenharmony_ci  duration_ms: *
4421cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
4431cb0ef41Sopenharmony_ci  failureType: 'uncaughtException'
4441cb0ef41Sopenharmony_ci  error: 'callback invoked multiple times'
4451cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
4461cb0ef41Sopenharmony_ci  stack: |-
4471cb0ef41Sopenharmony_ci    *
4481cb0ef41Sopenharmony_ci  ...
4491cb0ef41Sopenharmony_ci# Subtest: callback async throw
4501cb0ef41Sopenharmony_cinot ok 47 - callback async throw
4511cb0ef41Sopenharmony_ci  ---
4521cb0ef41Sopenharmony_ci  duration_ms: *
4531cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
4541cb0ef41Sopenharmony_ci  failureType: 'uncaughtException'
4551cb0ef41Sopenharmony_ci  error: 'thrown from callback async throw'
4561cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
4571cb0ef41Sopenharmony_ci  stack: |-
4581cb0ef41Sopenharmony_ci    *
4591cb0ef41Sopenharmony_ci    *
4601cb0ef41Sopenharmony_ci  ...
4611cb0ef41Sopenharmony_ci# Subtest: callback async throw after done
4621cb0ef41Sopenharmony_ciok 48 - callback async throw after done
4631cb0ef41Sopenharmony_ci  ---
4641cb0ef41Sopenharmony_ci  duration_ms: *
4651cb0ef41Sopenharmony_ci  ...
4661cb0ef41Sopenharmony_ci# Subtest: only is set but not in only mode
4671cb0ef41Sopenharmony_ci    # Subtest: running subtest 1
4681cb0ef41Sopenharmony_ci    ok 1 - running subtest 1
4691cb0ef41Sopenharmony_ci      ---
4701cb0ef41Sopenharmony_ci      duration_ms: *
4711cb0ef41Sopenharmony_ci      ...
4721cb0ef41Sopenharmony_ci    # Subtest: running subtest 2
4731cb0ef41Sopenharmony_ci    ok 2 - running subtest 2
4741cb0ef41Sopenharmony_ci      ---
4751cb0ef41Sopenharmony_ci      duration_ms: *
4761cb0ef41Sopenharmony_ci      ...
4771cb0ef41Sopenharmony_ci    # 'only' and 'runOnly' require the --test-only command-line option.
4781cb0ef41Sopenharmony_ci    # Subtest: running subtest 3
4791cb0ef41Sopenharmony_ci    ok 3 - running subtest 3
4801cb0ef41Sopenharmony_ci      ---
4811cb0ef41Sopenharmony_ci      duration_ms: *
4821cb0ef41Sopenharmony_ci      ...
4831cb0ef41Sopenharmony_ci    # 'only' and 'runOnly' require the --test-only command-line option.
4841cb0ef41Sopenharmony_ci    # Subtest: running subtest 4
4851cb0ef41Sopenharmony_ci    ok 4 - running subtest 4
4861cb0ef41Sopenharmony_ci      ---
4871cb0ef41Sopenharmony_ci      duration_ms: *
4881cb0ef41Sopenharmony_ci      ...
4891cb0ef41Sopenharmony_ci    1..4
4901cb0ef41Sopenharmony_ciok 49 - only is set but not in only mode
4911cb0ef41Sopenharmony_ci  ---
4921cb0ef41Sopenharmony_ci  duration_ms: *
4931cb0ef41Sopenharmony_ci  ...
4941cb0ef41Sopenharmony_ci# 'only' and 'runOnly' require the --test-only command-line option.
4951cb0ef41Sopenharmony_ci# Subtest: custom inspect symbol fail
4961cb0ef41Sopenharmony_cinot ok 50 - custom inspect symbol fail
4971cb0ef41Sopenharmony_ci  ---
4981cb0ef41Sopenharmony_ci  duration_ms: *
4991cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
5001cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
5011cb0ef41Sopenharmony_ci  error: 'customized'
5021cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
5031cb0ef41Sopenharmony_ci  ...
5041cb0ef41Sopenharmony_ci# Subtest: custom inspect symbol that throws fail
5051cb0ef41Sopenharmony_cinot ok 51 - custom inspect symbol that throws fail
5061cb0ef41Sopenharmony_ci  ---
5071cb0ef41Sopenharmony_ci  duration_ms: *
5081cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
5091cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
5101cb0ef41Sopenharmony_ci  error: |-
5111cb0ef41Sopenharmony_ci    {
5121cb0ef41Sopenharmony_ci      foo: 1,
5131cb0ef41Sopenharmony_ci      [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]
5141cb0ef41Sopenharmony_ci    }
5151cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
5161cb0ef41Sopenharmony_ci  ...
5171cb0ef41Sopenharmony_ci# Subtest: subtest sync throw fails
5181cb0ef41Sopenharmony_ci    # Subtest: sync throw fails at first
5191cb0ef41Sopenharmony_ci    not ok 1 - sync throw fails at first
5201cb0ef41Sopenharmony_ci      ---
5211cb0ef41Sopenharmony_ci      duration_ms: *
5221cb0ef41Sopenharmony_ci      location: '/test/fixtures/test-runner/output/output.js:(LINE):11'
5231cb0ef41Sopenharmony_ci      failureType: 'testCodeFailure'
5241cb0ef41Sopenharmony_ci      error: 'thrown from subtest sync throw fails at first'
5251cb0ef41Sopenharmony_ci      code: 'ERR_TEST_FAILURE'
5261cb0ef41Sopenharmony_ci      stack: |-
5271cb0ef41Sopenharmony_ci        *
5281cb0ef41Sopenharmony_ci        *
5291cb0ef41Sopenharmony_ci        *
5301cb0ef41Sopenharmony_ci        *
5311cb0ef41Sopenharmony_ci        *
5321cb0ef41Sopenharmony_ci        *
5331cb0ef41Sopenharmony_ci        *
5341cb0ef41Sopenharmony_ci        *
5351cb0ef41Sopenharmony_ci        *
5361cb0ef41Sopenharmony_ci        *
5371cb0ef41Sopenharmony_ci      ...
5381cb0ef41Sopenharmony_ci    # Subtest: sync throw fails at second
5391cb0ef41Sopenharmony_ci    not ok 2 - sync throw fails at second
5401cb0ef41Sopenharmony_ci      ---
5411cb0ef41Sopenharmony_ci      duration_ms: *
5421cb0ef41Sopenharmony_ci      location: '/test/fixtures/test-runner/output/output.js:(LINE):11'
5431cb0ef41Sopenharmony_ci      failureType: 'testCodeFailure'
5441cb0ef41Sopenharmony_ci      error: 'thrown from subtest sync throw fails at second'
5451cb0ef41Sopenharmony_ci      code: 'ERR_TEST_FAILURE'
5461cb0ef41Sopenharmony_ci      stack: |-
5471cb0ef41Sopenharmony_ci        *
5481cb0ef41Sopenharmony_ci        *
5491cb0ef41Sopenharmony_ci        *
5501cb0ef41Sopenharmony_ci        *
5511cb0ef41Sopenharmony_ci        *
5521cb0ef41Sopenharmony_ci        *
5531cb0ef41Sopenharmony_ci        *
5541cb0ef41Sopenharmony_ci        *
5551cb0ef41Sopenharmony_ci        *
5561cb0ef41Sopenharmony_ci        *
5571cb0ef41Sopenharmony_ci      ...
5581cb0ef41Sopenharmony_ci    1..2
5591cb0ef41Sopenharmony_cinot ok 52 - subtest sync throw fails
5601cb0ef41Sopenharmony_ci  ---
5611cb0ef41Sopenharmony_ci  duration_ms: *
5621cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
5631cb0ef41Sopenharmony_ci  failureType: 'subtestsFailed'
5641cb0ef41Sopenharmony_ci  error: '2 subtests failed'
5651cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
5661cb0ef41Sopenharmony_ci  ...
5671cb0ef41Sopenharmony_ci# Subtest: timed out async test
5681cb0ef41Sopenharmony_cinot ok 53 - timed out async test
5691cb0ef41Sopenharmony_ci  ---
5701cb0ef41Sopenharmony_ci  duration_ms: *
5711cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
5721cb0ef41Sopenharmony_ci  failureType: 'testTimeoutFailure'
5731cb0ef41Sopenharmony_ci  error: 'test timed out after 5ms'
5741cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
5751cb0ef41Sopenharmony_ci  ...
5761cb0ef41Sopenharmony_ci# Subtest: timed out callback test
5771cb0ef41Sopenharmony_cinot ok 54 - timed out callback test
5781cb0ef41Sopenharmony_ci  ---
5791cb0ef41Sopenharmony_ci  duration_ms: *
5801cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
5811cb0ef41Sopenharmony_ci  failureType: 'testTimeoutFailure'
5821cb0ef41Sopenharmony_ci  error: 'test timed out after 5ms'
5831cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
5841cb0ef41Sopenharmony_ci  ...
5851cb0ef41Sopenharmony_ci# Subtest: large timeout async test is ok
5861cb0ef41Sopenharmony_ciok 55 - large timeout async test is ok
5871cb0ef41Sopenharmony_ci  ---
5881cb0ef41Sopenharmony_ci  duration_ms: *
5891cb0ef41Sopenharmony_ci  ...
5901cb0ef41Sopenharmony_ci# Subtest: large timeout callback test is ok
5911cb0ef41Sopenharmony_ciok 56 - large timeout callback test is ok
5921cb0ef41Sopenharmony_ci  ---
5931cb0ef41Sopenharmony_ci  duration_ms: *
5941cb0ef41Sopenharmony_ci  ...
5951cb0ef41Sopenharmony_ci# Subtest: successful thenable
5961cb0ef41Sopenharmony_ciok 57 - successful thenable
5971cb0ef41Sopenharmony_ci  ---
5981cb0ef41Sopenharmony_ci  duration_ms: *
5991cb0ef41Sopenharmony_ci  ...
6001cb0ef41Sopenharmony_ci# Subtest: rejected thenable
6011cb0ef41Sopenharmony_cinot ok 58 - rejected thenable
6021cb0ef41Sopenharmony_ci  ---
6031cb0ef41Sopenharmony_ci  duration_ms: *
6041cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
6051cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
6061cb0ef41Sopenharmony_ci  error: 'custom error'
6071cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
6081cb0ef41Sopenharmony_ci  ...
6091cb0ef41Sopenharmony_ci# Subtest: unfinished test with uncaughtException
6101cb0ef41Sopenharmony_cinot ok 59 - unfinished test with uncaughtException
6111cb0ef41Sopenharmony_ci  ---
6121cb0ef41Sopenharmony_ci  duration_ms: *
6131cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
6141cb0ef41Sopenharmony_ci  failureType: 'uncaughtException'
6151cb0ef41Sopenharmony_ci  error: 'foo'
6161cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
6171cb0ef41Sopenharmony_ci  stack: |-
6181cb0ef41Sopenharmony_ci    *
6191cb0ef41Sopenharmony_ci    *
6201cb0ef41Sopenharmony_ci    *
6211cb0ef41Sopenharmony_ci  ...
6221cb0ef41Sopenharmony_ci# Subtest: unfinished test with unhandledRejection
6231cb0ef41Sopenharmony_cinot ok 60 - unfinished test with unhandledRejection
6241cb0ef41Sopenharmony_ci  ---
6251cb0ef41Sopenharmony_ci  duration_ms: *
6261cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
6271cb0ef41Sopenharmony_ci  failureType: 'unhandledRejection'
6281cb0ef41Sopenharmony_ci  error: 'bar'
6291cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
6301cb0ef41Sopenharmony_ci  stack: |-
6311cb0ef41Sopenharmony_ci    *
6321cb0ef41Sopenharmony_ci    *
6331cb0ef41Sopenharmony_ci    *
6341cb0ef41Sopenharmony_ci  ...
6351cb0ef41Sopenharmony_ci# Subtest: assertion errors display actual and expected properly
6361cb0ef41Sopenharmony_cinot ok 61 - assertion errors display actual and expected properly
6371cb0ef41Sopenharmony_ci  ---
6381cb0ef41Sopenharmony_ci  duration_ms: *
6391cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):1'
6401cb0ef41Sopenharmony_ci  failureType: 'testCodeFailure'
6411cb0ef41Sopenharmony_ci  error: |-
6421cb0ef41Sopenharmony_ci    Expected values to be loosely deep-equal:
6431cb0ef41Sopenharmony_ci    
6441cb0ef41Sopenharmony_ci    {
6451cb0ef41Sopenharmony_ci      bar: 1,
6461cb0ef41Sopenharmony_ci      foo: 1
6471cb0ef41Sopenharmony_ci    }
6481cb0ef41Sopenharmony_ci    
6491cb0ef41Sopenharmony_ci    should loosely deep-equal
6501cb0ef41Sopenharmony_ci    
6511cb0ef41Sopenharmony_ci    <ref *1> {
6521cb0ef41Sopenharmony_ci      bar: 2,
6531cb0ef41Sopenharmony_ci      c: [Circular *1]
6541cb0ef41Sopenharmony_ci    }
6551cb0ef41Sopenharmony_ci  code: 'ERR_ASSERTION'
6561cb0ef41Sopenharmony_ci  name: 'AssertionError'
6571cb0ef41Sopenharmony_ci  expected:
6581cb0ef41Sopenharmony_ci    bar: 2
6591cb0ef41Sopenharmony_ci    c: <Circular>
6601cb0ef41Sopenharmony_ci  actual:
6611cb0ef41Sopenharmony_ci    foo: 1
6621cb0ef41Sopenharmony_ci    bar: 1
6631cb0ef41Sopenharmony_ci  operator: 'deepEqual'
6641cb0ef41Sopenharmony_ci  stack: |-
6651cb0ef41Sopenharmony_ci    *
6661cb0ef41Sopenharmony_ci  ...
6671cb0ef41Sopenharmony_ci# Subtest: invalid subtest fail
6681cb0ef41Sopenharmony_cinot ok 62 - invalid subtest fail
6691cb0ef41Sopenharmony_ci  ---
6701cb0ef41Sopenharmony_ci  duration_ms: *
6711cb0ef41Sopenharmony_ci  location: '/test/fixtures/test-runner/output/output.js:(LINE):7'
6721cb0ef41Sopenharmony_ci  failureType: 'parentAlreadyFinished'
6731cb0ef41Sopenharmony_ci  error: 'test could not be started because its parent finished'
6741cb0ef41Sopenharmony_ci  code: 'ERR_TEST_FAILURE'
6751cb0ef41Sopenharmony_ci  stack: |-
6761cb0ef41Sopenharmony_ci    *
6771cb0ef41Sopenharmony_ci  ...
6781cb0ef41Sopenharmony_ci# Warning: Test "unhandled rejection - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from unhandled rejection fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
6791cb0ef41Sopenharmony_ci# Warning: Test "async unhandled rejection - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from async unhandled rejection fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
6801cb0ef41Sopenharmony_ci# Warning: A resource generated asynchronous activity after the test ended. This activity created the error "Error: uncaught from outside of a test" which triggered an uncaughtException event, caught by the test runner.
6811cb0ef41Sopenharmony_ci# Warning: Test "immediate throw - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: thrown from immediate throw fail" and would have caused the test to fail, but instead triggered an uncaughtException event.
6821cb0ef41Sopenharmony_ci# Warning: Test "immediate reject - passes but warns" generated asynchronous activity after the test ended. This activity created the error "Error: rejected from immediate reject fail" and would have caused the test to fail, but instead triggered an unhandledRejection event.
6831cb0ef41Sopenharmony_ci# Warning: Test "callback called twice in different ticks" generated asynchronous activity after the test ended. This activity created the error "Error [ERR_TEST_FAILURE]: callback invoked multiple times" and would have caused the test to fail, but instead triggered an uncaughtException event.
6841cb0ef41Sopenharmony_ci# Warning: Test "callback async throw after done" generated asynchronous activity after the test ended. This activity created the error "Error: thrown from callback async throw after done" and would have caused the test to fail, but instead triggered an uncaughtException event.
6851cb0ef41Sopenharmony_ci# Subtest: last test
6861cb0ef41Sopenharmony_ciok 63 - last test
6871cb0ef41Sopenharmony_ci  ---
6881cb0ef41Sopenharmony_ci  duration_ms: *
6891cb0ef41Sopenharmony_ci  ...
6901cb0ef41Sopenharmony_ci1..63
6911cb0ef41Sopenharmony_ci# tests 77
6921cb0ef41Sopenharmony_ci# suites 0
6931cb0ef41Sopenharmony_ci# pass 36
6941cb0ef41Sopenharmony_ci# fail 25
6951cb0ef41Sopenharmony_ci# cancelled 3
6961cb0ef41Sopenharmony_ci# skipped 9
6971cb0ef41Sopenharmony_ci# todo 4
6981cb0ef41Sopenharmony_ci# duration_ms *
699