11cb0ef41Sopenharmony_ci<?xml version="1.0" encoding="utf-8"?> 21cb0ef41Sopenharmony_ci<testsuites> 31cb0ef41Sopenharmony_ci <testcase name="sync pass todo" time="*" classname="test"> 41cb0ef41Sopenharmony_ci <skipped type="todo" message="true"/> 51cb0ef41Sopenharmony_ci </testcase> 61cb0ef41Sopenharmony_ci <testcase name="sync pass todo with message" time="*" classname="test"> 71cb0ef41Sopenharmony_ci <skipped type="todo" message="this is a passing todo"/> 81cb0ef41Sopenharmony_ci </testcase> 91cb0ef41Sopenharmony_ci <testcase name="sync fail todo" time="*" classname="test" failure="thrown from sync fail todo"> 101cb0ef41Sopenharmony_ci <skipped type="todo" message="true"/> 111cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from sync fail todo"> 121cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: thrown from sync fail todo] { 131cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 141cb0ef41Sopenharmony_ci cause: Error: thrown from sync fail todo 151cb0ef41Sopenharmony_ci * 161cb0ef41Sopenharmony_ci * 171cb0ef41Sopenharmony_ci * 181cb0ef41Sopenharmony_ci * 191cb0ef41Sopenharmony_ci * 201cb0ef41Sopenharmony_ci * 211cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 221cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 231cb0ef41Sopenharmony_ci} 241cb0ef41Sopenharmony_ci </failure> 251cb0ef41Sopenharmony_ci </testcase> 261cb0ef41Sopenharmony_ci <testcase name="sync fail todo with message" time="*" classname="test" failure="thrown from sync fail todo with message"> 271cb0ef41Sopenharmony_ci <skipped type="todo" message="this is a failing todo"/> 281cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from sync fail todo with message"> 291cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: thrown from sync fail todo with message] { 301cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 311cb0ef41Sopenharmony_ci cause: Error: thrown from sync fail todo with message 321cb0ef41Sopenharmony_ci * 331cb0ef41Sopenharmony_ci * 341cb0ef41Sopenharmony_ci * 351cb0ef41Sopenharmony_ci * 361cb0ef41Sopenharmony_ci * 371cb0ef41Sopenharmony_ci * 381cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 391cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 401cb0ef41Sopenharmony_ci} 411cb0ef41Sopenharmony_ci </failure> 421cb0ef41Sopenharmony_ci </testcase> 431cb0ef41Sopenharmony_ci <testcase name="sync skip pass" time="*" classname="test"> 441cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 451cb0ef41Sopenharmony_ci </testcase> 461cb0ef41Sopenharmony_ci <testcase name="sync skip pass with message" time="*" classname="test"> 471cb0ef41Sopenharmony_ci <skipped type="skipped" message="this is skipped"/> 481cb0ef41Sopenharmony_ci </testcase> 491cb0ef41Sopenharmony_ci <testcase name="sync pass" time="*" classname="test"/> 501cb0ef41Sopenharmony_ci <!-- this test should pass --> 511cb0ef41Sopenharmony_ci <testcase name="sync throw fail" time="*" classname="test" failure="thrown from sync throw fail"> 521cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from sync throw fail"> 531cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: thrown from sync throw fail] { 541cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 551cb0ef41Sopenharmony_ci cause: Error: thrown from sync throw fail 561cb0ef41Sopenharmony_ci * 571cb0ef41Sopenharmony_ci * 581cb0ef41Sopenharmony_ci * 591cb0ef41Sopenharmony_ci * 601cb0ef41Sopenharmony_ci * 611cb0ef41Sopenharmony_ci * 621cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 631cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 641cb0ef41Sopenharmony_ci} 651cb0ef41Sopenharmony_ci </failure> 661cb0ef41Sopenharmony_ci </testcase> 671cb0ef41Sopenharmony_ci <testcase name="async skip pass" time="*" classname="test"> 681cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 691cb0ef41Sopenharmony_ci </testcase> 701cb0ef41Sopenharmony_ci <testcase name="async pass" time="*" classname="test"/> 711cb0ef41Sopenharmony_ci <testcase name="async throw fail" time="*" classname="test" failure="thrown from async throw fail"> 721cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from async throw fail"> 731cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: thrown from async throw fail] { 741cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 751cb0ef41Sopenharmony_ci cause: Error: thrown from async throw fail 761cb0ef41Sopenharmony_ci * 771cb0ef41Sopenharmony_ci * 781cb0ef41Sopenharmony_ci * 791cb0ef41Sopenharmony_ci * 801cb0ef41Sopenharmony_ci * 811cb0ef41Sopenharmony_ci * 821cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 831cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 841cb0ef41Sopenharmony_ci} 851cb0ef41Sopenharmony_ci </failure> 861cb0ef41Sopenharmony_ci </testcase> 871cb0ef41Sopenharmony_ci <testcase name="async skip fail" time="*" classname="test" failure="thrown from async throw fail"> 881cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 891cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from async throw fail"> 901cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: thrown from async throw fail] { 911cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 921cb0ef41Sopenharmony_ci cause: Error: thrown from async throw fail 931cb0ef41Sopenharmony_ci * 941cb0ef41Sopenharmony_ci * 951cb0ef41Sopenharmony_ci * 961cb0ef41Sopenharmony_ci * 971cb0ef41Sopenharmony_ci * 981cb0ef41Sopenharmony_ci * 991cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 1001cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 1011cb0ef41Sopenharmony_ci} 1021cb0ef41Sopenharmony_ci </failure> 1031cb0ef41Sopenharmony_ci </testcase> 1041cb0ef41Sopenharmony_ci <testcase name="async assertion fail" time="*" classname="test" failure="Expected values to be strictly equal:true !== false"> 1051cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="Expected values to be strictly equal:true !== false"> 1061cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal: 1071cb0ef41Sopenharmony_ci 1081cb0ef41Sopenharmony_citrue !== false 1091cb0ef41Sopenharmony_ci] { 1101cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 1111cb0ef41Sopenharmony_ci cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal: 1121cb0ef41Sopenharmony_ci 1131cb0ef41Sopenharmony_ci true !== false 1141cb0ef41Sopenharmony_ci 1151cb0ef41Sopenharmony_ci * 1161cb0ef41Sopenharmony_ci * 1171cb0ef41Sopenharmony_ci * 1181cb0ef41Sopenharmony_ci * 1191cb0ef41Sopenharmony_ci * 1201cb0ef41Sopenharmony_ci * 1211cb0ef41Sopenharmony_ci * { 1221cb0ef41Sopenharmony_ci generatedMessage: true, 1231cb0ef41Sopenharmony_ci code: 'ERR_ASSERTION', 1241cb0ef41Sopenharmony_ci actual: true, 1251cb0ef41Sopenharmony_ci expected: false, 1261cb0ef41Sopenharmony_ci operator: 'strictEqual' 1271cb0ef41Sopenharmony_ci }, 1281cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 1291cb0ef41Sopenharmony_ci} 1301cb0ef41Sopenharmony_ci </failure> 1311cb0ef41Sopenharmony_ci </testcase> 1321cb0ef41Sopenharmony_ci <testcase name="resolve pass" time="*" classname="test"/> 1331cb0ef41Sopenharmony_ci <testcase name="reject fail" time="*" classname="test" failure="rejected from reject fail"> 1341cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="rejected from reject fail"> 1351cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: rejected from reject fail] { 1361cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 1371cb0ef41Sopenharmony_ci cause: Error: rejected from reject fail 1381cb0ef41Sopenharmony_ci * 1391cb0ef41Sopenharmony_ci * 1401cb0ef41Sopenharmony_ci * 1411cb0ef41Sopenharmony_ci * 1421cb0ef41Sopenharmony_ci * 1431cb0ef41Sopenharmony_ci * 1441cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 1451cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 1461cb0ef41Sopenharmony_ci} 1471cb0ef41Sopenharmony_ci </failure> 1481cb0ef41Sopenharmony_ci </testcase> 1491cb0ef41Sopenharmony_ci <testcase name="unhandled rejection - passes but warns" time="*" classname="test"/> 1501cb0ef41Sopenharmony_ci <testcase name="async unhandled rejection - passes but warns" time="*" classname="test"/> 1511cb0ef41Sopenharmony_ci <testcase name="immediate throw - passes but warns" time="*" classname="test"/> 1521cb0ef41Sopenharmony_ci <testcase name="immediate reject - passes but warns" time="*" classname="test"/> 1531cb0ef41Sopenharmony_ci <testcase name="immediate resolve pass" time="*" classname="test"/> 1541cb0ef41Sopenharmony_ci <testsuite name="subtest sync throw fail" time="*" disabled="0" errors="0" tests="1" failures="1" skipped="0" hostname="HOSTNAME"> 1551cb0ef41Sopenharmony_ci <testcase name="+sync throw fail" time="*" classname="test" failure="thrown from subtest sync throw fail"> 1561cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from subtest sync throw fail"> 1571cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: thrown from subtest sync throw fail 1581cb0ef41Sopenharmony_ci * { 1591cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 1601cb0ef41Sopenharmony_ci cause: Error: thrown from subtest sync throw fail 1611cb0ef41Sopenharmony_ci * 1621cb0ef41Sopenharmony_ci * 1631cb0ef41Sopenharmony_ci * 1641cb0ef41Sopenharmony_ci * 1651cb0ef41Sopenharmony_ci * 1661cb0ef41Sopenharmony_ci * 1671cb0ef41Sopenharmony_ci * 1681cb0ef41Sopenharmony_ci * 1691cb0ef41Sopenharmony_ci * 1701cb0ef41Sopenharmony_ci at Test.postRun (node:internal/test_runner/test:715:19), 1711cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 1721cb0ef41Sopenharmony_ci} 1731cb0ef41Sopenharmony_ci </failure> 1741cb0ef41Sopenharmony_ci </testcase> 1751cb0ef41Sopenharmony_ci <!-- this subtest should make its parent test fail --> 1761cb0ef41Sopenharmony_ci </testsuite> 1771cb0ef41Sopenharmony_ci <testcase name="sync throw non-error fail" time="*" classname="test" failure="Symbol(thrown symbol from sync throw non-error fail)"> 1781cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="Symbol(thrown symbol from sync throw non-error fail)"> 1791cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: Symbol(thrown symbol from sync throw non-error fail)] { failureType: 'testCodeFailure', cause: Symbol(thrown symbol from sync throw non-error fail), code: 'ERR_TEST_FAILURE' } 1801cb0ef41Sopenharmony_ci </failure> 1811cb0ef41Sopenharmony_ci </testcase> 1821cb0ef41Sopenharmony_ci <testsuite name="level 0a" time="*" disabled="0" errors="0" tests="4" failures="0" skipped="0" hostname="HOSTNAME"> 1831cb0ef41Sopenharmony_ci <testcase name="level 1a" time="*" classname="test"/> 1841cb0ef41Sopenharmony_ci <testcase name="level 1b" time="*" classname="test"/> 1851cb0ef41Sopenharmony_ci <testcase name="level 1c" time="*" classname="test"/> 1861cb0ef41Sopenharmony_ci <testcase name="level 1d" time="*" classname="test"/> 1871cb0ef41Sopenharmony_ci </testsuite> 1881cb0ef41Sopenharmony_ci <testsuite name="top level" time="*" disabled="0" errors="0" tests="2" failures="1" skipped="0" hostname="HOSTNAME"> 1891cb0ef41Sopenharmony_ci <testcase name="+long running" time="*" classname="test" failure="test did not finish before its parent and was cancelled"> 1901cb0ef41Sopenharmony_ci <failure type="cancelledByParent" message="test did not finish before its parent and was cancelled"> 1911cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: test did not finish before its parent and was cancelled] { failureType: 'cancelledByParent', cause: 'test did not finish before its parent and was cancelled', code: 'ERR_TEST_FAILURE' } 1921cb0ef41Sopenharmony_ci </failure> 1931cb0ef41Sopenharmony_ci </testcase> 1941cb0ef41Sopenharmony_ci <testsuite name="+short running" time="*" disabled="0" errors="0" tests="1" failures="0" skipped="0" hostname="HOSTNAME"> 1951cb0ef41Sopenharmony_ci <testcase name="++short running" time="*" classname="test"/> 1961cb0ef41Sopenharmony_ci </testsuite> 1971cb0ef41Sopenharmony_ci </testsuite> 1981cb0ef41Sopenharmony_ci <testcase name="invalid subtest - pass but subtest fails" time="*" classname="test"/> 1991cb0ef41Sopenharmony_ci <testcase name="sync skip option" time="*" classname="test"> 2001cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 2011cb0ef41Sopenharmony_ci </testcase> 2021cb0ef41Sopenharmony_ci <testcase name="sync skip option with message" time="*" classname="test"> 2031cb0ef41Sopenharmony_ci <skipped type="skipped" message="this is skipped"/> 2041cb0ef41Sopenharmony_ci </testcase> 2051cb0ef41Sopenharmony_ci <testcase name="sync skip option is false fail" time="*" classname="test" failure="this should be executed"> 2061cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="this should be executed"> 2071cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: this should be executed] { 2081cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 2091cb0ef41Sopenharmony_ci cause: Error: this should be executed 2101cb0ef41Sopenharmony_ci * 2111cb0ef41Sopenharmony_ci * 2121cb0ef41Sopenharmony_ci * 2131cb0ef41Sopenharmony_ci * 2141cb0ef41Sopenharmony_ci * 2151cb0ef41Sopenharmony_ci * 2161cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 2171cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 2181cb0ef41Sopenharmony_ci} 2191cb0ef41Sopenharmony_ci </failure> 2201cb0ef41Sopenharmony_ci </testcase> 2211cb0ef41Sopenharmony_ci <testcase name="<anonymous>" time="*" classname="test"/> 2221cb0ef41Sopenharmony_ci <testcase name="functionOnly" time="*" classname="test"/> 2231cb0ef41Sopenharmony_ci <testcase name="<anonymous>" time="*" classname="test"/> 2241cb0ef41Sopenharmony_ci <testcase name="test with only a name provided" time="*" classname="test"/> 2251cb0ef41Sopenharmony_ci <testcase name="<anonymous>" time="*" classname="test"/> 2261cb0ef41Sopenharmony_ci <testcase name="<anonymous>" time="*" classname="test"> 2271cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 2281cb0ef41Sopenharmony_ci </testcase> 2291cb0ef41Sopenharmony_ci <testcase name="test with a name and options provided" time="*" classname="test"> 2301cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 2311cb0ef41Sopenharmony_ci </testcase> 2321cb0ef41Sopenharmony_ci <testcase name="functionAndOptions" time="*" classname="test"> 2331cb0ef41Sopenharmony_ci <skipped type="skipped" message="true"/> 2341cb0ef41Sopenharmony_ci </testcase> 2351cb0ef41Sopenharmony_ci <testcase name="callback pass" time="*" classname="test"/> 2361cb0ef41Sopenharmony_ci <testcase name="callback fail" time="*" classname="test" failure="callback failure"> 2371cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="callback failure"> 2381cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: callback failure] { 2391cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 2401cb0ef41Sopenharmony_ci cause: Error: callback failure 2411cb0ef41Sopenharmony_ci * 2421cb0ef41Sopenharmony_ci at process.processImmediate (node:internal/timers:476:21), 2431cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 2441cb0ef41Sopenharmony_ci} 2451cb0ef41Sopenharmony_ci </failure> 2461cb0ef41Sopenharmony_ci </testcase> 2471cb0ef41Sopenharmony_ci <testcase name="sync t is this in test" time="*" classname="test"/> 2481cb0ef41Sopenharmony_ci <testcase name="async t is this in test" time="*" classname="test"/> 2491cb0ef41Sopenharmony_ci <testcase name="callback t is this in test" time="*" classname="test"/> 2501cb0ef41Sopenharmony_ci <testcase name="callback also returns a Promise" time="*" classname="test" failure="passed a callback but also returned a Promise"> 2511cb0ef41Sopenharmony_ci <failure type="callbackAndPromisePresent" message="passed a callback but also returned a Promise"> 2521cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: passed a callback but also returned a Promise] { failureType: 'callbackAndPromisePresent', cause: 'passed a callback but also returned a Promise', code: 'ERR_TEST_FAILURE' } 2531cb0ef41Sopenharmony_ci </failure> 2541cb0ef41Sopenharmony_ci </testcase> 2551cb0ef41Sopenharmony_ci <testcase name="callback throw" time="*" classname="test" failure="thrown from callback throw"> 2561cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from callback throw"> 2571cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: thrown from callback throw] { 2581cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 2591cb0ef41Sopenharmony_ci cause: Error: thrown from callback throw 2601cb0ef41Sopenharmony_ci * 2611cb0ef41Sopenharmony_ci * 2621cb0ef41Sopenharmony_ci * 2631cb0ef41Sopenharmony_ci * 2641cb0ef41Sopenharmony_ci * 2651cb0ef41Sopenharmony_ci * 2661cb0ef41Sopenharmony_ci at async Test.processPendingSubtests (node:internal/test_runner/test:374:7), 2671cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 2681cb0ef41Sopenharmony_ci} 2691cb0ef41Sopenharmony_ci </failure> 2701cb0ef41Sopenharmony_ci </testcase> 2711cb0ef41Sopenharmony_ci <testcase name="callback called twice" time="*" classname="test" failure="callback invoked multiple times"> 2721cb0ef41Sopenharmony_ci <failure type="multipleCallbackInvocations" message="callback invoked multiple times"> 2731cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: callback invoked multiple times 2741cb0ef41Sopenharmony_ci * 2751cb0ef41Sopenharmony_ci * { 2761cb0ef41Sopenharmony_ci failureType: 'multipleCallbackInvocations', 2771cb0ef41Sopenharmony_ci cause: 'callback invoked multiple times', 2781cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 2791cb0ef41Sopenharmony_ci} 2801cb0ef41Sopenharmony_ci </failure> 2811cb0ef41Sopenharmony_ci </testcase> 2821cb0ef41Sopenharmony_ci <testcase name="callback called twice in different ticks" time="*" classname="test"/> 2831cb0ef41Sopenharmony_ci <testcase name="callback called twice in future tick" time="*" classname="test" failure="callback invoked multiple times"> 2841cb0ef41Sopenharmony_ci <failure type="uncaughtException" message="callback invoked multiple times"> 2851cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: callback invoked multiple times 2861cb0ef41Sopenharmony_ci * { 2871cb0ef41Sopenharmony_ci failureType: 'uncaughtException', 2881cb0ef41Sopenharmony_ci cause: Error [ERR_TEST_FAILURE]: callback invoked multiple times 2891cb0ef41Sopenharmony_ci * { 2901cb0ef41Sopenharmony_ci failureType: 'multipleCallbackInvocations', 2911cb0ef41Sopenharmony_ci cause: 'callback invoked multiple times', 2921cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 2931cb0ef41Sopenharmony_ci }, 2941cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 2951cb0ef41Sopenharmony_ci} 2961cb0ef41Sopenharmony_ci </failure> 2971cb0ef41Sopenharmony_ci </testcase> 2981cb0ef41Sopenharmony_ci <testcase name="callback async throw" time="*" classname="test" failure="thrown from callback async throw"> 2991cb0ef41Sopenharmony_ci <failure type="uncaughtException" message="thrown from callback async throw"> 3001cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: thrown from callback async throw 3011cb0ef41Sopenharmony_ci * { 3021cb0ef41Sopenharmony_ci failureType: 'uncaughtException', 3031cb0ef41Sopenharmony_ci cause: Error: thrown from callback async throw 3041cb0ef41Sopenharmony_ci * 3051cb0ef41Sopenharmony_ci at process.processImmediate (node:internal/timers:476:21), 3061cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 3071cb0ef41Sopenharmony_ci} 3081cb0ef41Sopenharmony_ci </failure> 3091cb0ef41Sopenharmony_ci </testcase> 3101cb0ef41Sopenharmony_ci <testcase name="callback async throw after done" time="*" classname="test"/> 3111cb0ef41Sopenharmony_ci <testsuite name="only is set but not in only mode" time="*" disabled="0" errors="0" tests="4" failures="0" skipped="0" hostname="HOSTNAME"> 3121cb0ef41Sopenharmony_ci <testcase name="running subtest 1" time="*" classname="test"/> 3131cb0ef41Sopenharmony_ci <testcase name="running subtest 2" time="*" classname="test"/> 3141cb0ef41Sopenharmony_ci <!-- 'only' and 'runOnly' require the --test-only command-line option. --> 3151cb0ef41Sopenharmony_ci <testcase name="running subtest 3" time="*" classname="test"/> 3161cb0ef41Sopenharmony_ci <!-- 'only' and 'runOnly' require the --test-only command-line option. --> 3171cb0ef41Sopenharmony_ci <testcase name="running subtest 4" time="*" classname="test"/> 3181cb0ef41Sopenharmony_ci </testsuite> 3191cb0ef41Sopenharmony_ci <!-- 'only' and 'runOnly' require the --test-only command-line option. --> 3201cb0ef41Sopenharmony_ci <testcase name="custom inspect symbol fail" time="*" classname="test" failure="customized"> 3211cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="customized"> 3221cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: customized] { failureType: 'testCodeFailure', cause: customized, code: 'ERR_TEST_FAILURE' } 3231cb0ef41Sopenharmony_ci </failure> 3241cb0ef41Sopenharmony_ci </testcase> 3251cb0ef41Sopenharmony_ci <testcase name="custom inspect symbol that throws fail" time="*" classname="test" failure="{ foo: 1, [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]}"> 3261cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="{ foo: 1, [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]]}"> 3271cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: { 3281cb0ef41Sopenharmony_ci foo: 1, 3291cb0ef41Sopenharmony_ci [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]] 3301cb0ef41Sopenharmony_ci}] { 3311cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 3321cb0ef41Sopenharmony_ci cause: { foo: 1, [Symbol(nodejs.util.inspect.custom)]: [Function: [nodejs.util.inspect.custom]] }, 3331cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 3341cb0ef41Sopenharmony_ci} 3351cb0ef41Sopenharmony_ci </failure> 3361cb0ef41Sopenharmony_ci </testcase> 3371cb0ef41Sopenharmony_ci <testsuite name="subtest sync throw fails" time="*" disabled="0" errors="0" tests="2" failures="2" skipped="0" hostname="HOSTNAME"> 3381cb0ef41Sopenharmony_ci <testcase name="sync throw fails at first" time="*" classname="test" failure="thrown from subtest sync throw fails at first"> 3391cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from subtest sync throw fails at first"> 3401cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at first 3411cb0ef41Sopenharmony_ci * { 3421cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 3431cb0ef41Sopenharmony_ci cause: Error: thrown from subtest sync throw fails at first 3441cb0ef41Sopenharmony_ci * 3451cb0ef41Sopenharmony_ci * 3461cb0ef41Sopenharmony_ci * 3471cb0ef41Sopenharmony_ci * 3481cb0ef41Sopenharmony_ci * 3491cb0ef41Sopenharmony_ci * 3501cb0ef41Sopenharmony_ci * 3511cb0ef41Sopenharmony_ci * 3521cb0ef41Sopenharmony_ci * 3531cb0ef41Sopenharmony_ci at Test.postRun (node:internal/test_runner/test:715:19), 3541cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 3551cb0ef41Sopenharmony_ci} 3561cb0ef41Sopenharmony_ci </failure> 3571cb0ef41Sopenharmony_ci </testcase> 3581cb0ef41Sopenharmony_ci <testcase name="sync throw fails at second" time="*" classname="test" failure="thrown from subtest sync throw fails at second"> 3591cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="thrown from subtest sync throw fails at second"> 3601cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: thrown from subtest sync throw fails at second 3611cb0ef41Sopenharmony_ci * { 3621cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 3631cb0ef41Sopenharmony_ci cause: Error: thrown from subtest sync throw fails at second 3641cb0ef41Sopenharmony_ci * 3651cb0ef41Sopenharmony_ci * 3661cb0ef41Sopenharmony_ci * 3671cb0ef41Sopenharmony_ci * 3681cb0ef41Sopenharmony_ci * 3691cb0ef41Sopenharmony_ci * 3701cb0ef41Sopenharmony_ci * 3711cb0ef41Sopenharmony_ci * 3721cb0ef41Sopenharmony_ci * 3731cb0ef41Sopenharmony_ci at async Test.run (node:internal/test_runner/test:632:9), 3741cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 3751cb0ef41Sopenharmony_ci} 3761cb0ef41Sopenharmony_ci </failure> 3771cb0ef41Sopenharmony_ci </testcase> 3781cb0ef41Sopenharmony_ci </testsuite> 3791cb0ef41Sopenharmony_ci <testcase name="timed out async test" time="*" classname="test" failure="test timed out after 5ms"> 3801cb0ef41Sopenharmony_ci <failure type="testTimeoutFailure" message="test timed out after 5ms"> 3811cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: test timed out after 5ms] { failureType: 'testTimeoutFailure', cause: 'test timed out after 5ms', code: 'ERR_TEST_FAILURE' } 3821cb0ef41Sopenharmony_ci </failure> 3831cb0ef41Sopenharmony_ci </testcase> 3841cb0ef41Sopenharmony_ci <testcase name="timed out callback test" time="*" classname="test" failure="test timed out after 5ms"> 3851cb0ef41Sopenharmony_ci <failure type="testTimeoutFailure" message="test timed out after 5ms"> 3861cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: test timed out after 5ms] { failureType: 'testTimeoutFailure', cause: 'test timed out after 5ms', code: 'ERR_TEST_FAILURE' } 3871cb0ef41Sopenharmony_ci </failure> 3881cb0ef41Sopenharmony_ci </testcase> 3891cb0ef41Sopenharmony_ci <testcase name="large timeout async test is ok" time="*" classname="test"/> 3901cb0ef41Sopenharmony_ci <testcase name="large timeout callback test is ok" time="*" classname="test"/> 3911cb0ef41Sopenharmony_ci <testcase name="successful thenable" time="*" classname="test"/> 3921cb0ef41Sopenharmony_ci <testcase name="rejected thenable" time="*" classname="test" failure="custom error"> 3931cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="custom error"> 3941cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: custom error] { failureType: 'testCodeFailure', cause: 'custom error', code: 'ERR_TEST_FAILURE' } 3951cb0ef41Sopenharmony_ci </failure> 3961cb0ef41Sopenharmony_ci </testcase> 3971cb0ef41Sopenharmony_ci <testcase name="unfinished test with uncaughtException" time="*" classname="test" failure="foo"> 3981cb0ef41Sopenharmony_ci <failure type="uncaughtException" message="foo"> 3991cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: foo 4001cb0ef41Sopenharmony_ci * { 4011cb0ef41Sopenharmony_ci failureType: 'uncaughtException', 4021cb0ef41Sopenharmony_ci cause: Error: foo 4031cb0ef41Sopenharmony_ci * 4041cb0ef41Sopenharmony_ci * 4051cb0ef41Sopenharmony_ci at process.processTimers (node:internal/timers:512:7), 4061cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 4071cb0ef41Sopenharmony_ci} 4081cb0ef41Sopenharmony_ci </failure> 4091cb0ef41Sopenharmony_ci </testcase> 4101cb0ef41Sopenharmony_ci <testcase name="unfinished test with unhandledRejection" time="*" classname="test" failure="bar"> 4111cb0ef41Sopenharmony_ci <failure type="unhandledRejection" message="bar"> 4121cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: bar 4131cb0ef41Sopenharmony_ci * { 4141cb0ef41Sopenharmony_ci failureType: 'unhandledRejection', 4151cb0ef41Sopenharmony_ci cause: Error: bar 4161cb0ef41Sopenharmony_ci * 4171cb0ef41Sopenharmony_ci * 4181cb0ef41Sopenharmony_ci at process.processTimers (node:internal/timers:512:7), 4191cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 4201cb0ef41Sopenharmony_ci} 4211cb0ef41Sopenharmony_ci </failure> 4221cb0ef41Sopenharmony_ci </testcase> 4231cb0ef41Sopenharmony_ci <testcase name="assertion errors display actual and expected properly" time="*" classname="test" failure="Expected values to be loosely deep-equal:{ bar: 1, foo: 1}should loosely deep-equal<ref *1> { bar: 2, c: [Circular *1]}"> 4241cb0ef41Sopenharmony_ci <failure type="testCodeFailure" message="Expected values to be loosely deep-equal:{ bar: 1, foo: 1}should loosely deep-equal<ref *1> { bar: 2, c: [Circular *1]}"> 4251cb0ef41Sopenharmony_ci[Error [ERR_TEST_FAILURE]: Expected values to be loosely deep-equal: 4261cb0ef41Sopenharmony_ci 4271cb0ef41Sopenharmony_ci{ 4281cb0ef41Sopenharmony_ci bar: 1, 4291cb0ef41Sopenharmony_ci foo: 1 4301cb0ef41Sopenharmony_ci} 4311cb0ef41Sopenharmony_ci 4321cb0ef41Sopenharmony_cishould loosely deep-equal 4331cb0ef41Sopenharmony_ci 4341cb0ef41Sopenharmony_ci<ref *1> { 4351cb0ef41Sopenharmony_ci bar: 2, 4361cb0ef41Sopenharmony_ci c: [Circular *1] 4371cb0ef41Sopenharmony_ci}] { 4381cb0ef41Sopenharmony_ci failureType: 'testCodeFailure', 4391cb0ef41Sopenharmony_ci cause: AssertionError [ERR_ASSERTION]: Expected values to be loosely deep-equal: 4401cb0ef41Sopenharmony_ci 4411cb0ef41Sopenharmony_ci { 4421cb0ef41Sopenharmony_ci bar: 1, 4431cb0ef41Sopenharmony_ci foo: 1 4441cb0ef41Sopenharmony_ci } 4451cb0ef41Sopenharmony_ci 4461cb0ef41Sopenharmony_ci should loosely deep-equal 4471cb0ef41Sopenharmony_ci 4481cb0ef41Sopenharmony_ci <ref *1> { 4491cb0ef41Sopenharmony_ci bar: 2, 4501cb0ef41Sopenharmony_ci c: [Circular *1] 4511cb0ef41Sopenharmony_ci } 4521cb0ef41Sopenharmony_ci * { 4531cb0ef41Sopenharmony_ci generatedMessage: true, 4541cb0ef41Sopenharmony_ci code: 'ERR_ASSERTION', 4551cb0ef41Sopenharmony_ci actual: [Object], 4561cb0ef41Sopenharmony_ci expected: [Object], 4571cb0ef41Sopenharmony_ci operator: 'deepEqual' 4581cb0ef41Sopenharmony_ci }, 4591cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 4601cb0ef41Sopenharmony_ci} 4611cb0ef41Sopenharmony_ci </failure> 4621cb0ef41Sopenharmony_ci </testcase> 4631cb0ef41Sopenharmony_ci <testcase name="invalid subtest fail" time="*" classname="test" failure="test could not be started because its parent finished"> 4641cb0ef41Sopenharmony_ci <failure type="parentAlreadyFinished" message="test could not be started because its parent finished"> 4651cb0ef41Sopenharmony_ciError [ERR_TEST_FAILURE]: test could not be started because its parent finished 4661cb0ef41Sopenharmony_ci * { 4671cb0ef41Sopenharmony_ci failureType: 'parentAlreadyFinished', 4681cb0ef41Sopenharmony_ci cause: 'test could not be started because its parent finished', 4691cb0ef41Sopenharmony_ci code: 'ERR_TEST_FAILURE' 4701cb0ef41Sopenharmony_ci} 4711cb0ef41Sopenharmony_ci </failure> 4721cb0ef41Sopenharmony_ci </testcase> 4731cb0ef41Sopenharmony_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. --> 4741cb0ef41Sopenharmony_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. --> 4751cb0ef41Sopenharmony_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. --> 4761cb0ef41Sopenharmony_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. --> 4771cb0ef41Sopenharmony_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. --> 4781cb0ef41Sopenharmony_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. --> 4791cb0ef41Sopenharmony_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. --> 4801cb0ef41Sopenharmony_ci <!-- tests 76 --> 4811cb0ef41Sopenharmony_ci <!-- suites 0 --> 4821cb0ef41Sopenharmony_ci <!-- pass 35 --> 4831cb0ef41Sopenharmony_ci <!-- fail 25 --> 4841cb0ef41Sopenharmony_ci <!-- cancelled 3 --> 4851cb0ef41Sopenharmony_ci <!-- skipped 9 --> 4861cb0ef41Sopenharmony_ci <!-- todo 4 --> 4871cb0ef41Sopenharmony_ci <!-- duration_ms * --> 4881cb0ef41Sopenharmony_ci</testsuites> 489