]> git.kaiwu.me - njs.git/commit
Tests: refactored JavaScript tests.
authorDmitry Volyntsev <xeioex@nginx.com>
Mon, 29 Nov 2021 16:50:41 +0000 (16:50 +0000)
committerDmitry Volyntsev <xeioex@nginx.com>
Mon, 29 Nov 2021 16:50:41 +0000 (16:50 +0000)
commitfefd7a1bc782b90a305923bfa2b8f04eca3a5ed4
treed20018ae59a4fbbf96d01c7c0543bc880652a9d9
parent9ff1b638576338a5b64df64584d621e7708eef36
Tests: refactored JavaScript tests.

A generic runner test/run is introduced.  It runs all available tests
in test/ directory.  JavaScript files are expected to be compliant with
Test262.
149 files changed:
auto/make
test/finalize [new file with mode: 0644]
test/fs/methods.t.js [moved from test/fs/methods.js with 76% similarity]
test/fs/promises_01.t.js [new file with mode: 0644]
test/fs/promises_02.t.js [moved from test/js/fs_promises_002.js with 63% similarity]
test/fs/promises_03.t.js [moved from test/js/fs_promises_003.js with 84% similarity]
test/fs/promises_04.t.js [moved from test/js/fs_promises_004.js with 87% similarity]
test/fs/promises_05.t.js [moved from test/js/fs_promises_005.js with 83% similarity]
test/fs/promises_06.t.js [moved from test/js/fs_promises_006.js with 81% similarity]
test/fs/promises_07.t.js [moved from test/js/fs_promises_007.js with 90% similarity]
test/fs/promises_08.t.js [moved from test/js/fs_promises_008.js with 87% similarity]
test/fs/promises_09.t.js [moved from test/js/fs_promises_009.js with 88% similarity]
test/harness/assert.js [new file with mode: 0644]
test/harness/compareArray.js [new file with mode: 0644]
test/harness/compatBuffer.js [new file with mode: 0644]
test/harness/compatFs.js [new file with mode: 0644]
test/harness/compatPrint.js [new file with mode: 0644]
test/harness/compatWebcrypto.js [new file with mode: 0644]
test/harness/doneprintHandle.js [new file with mode: 0644]
test/harness/runTsuite.js [new file with mode: 0644]
test/harness/sta.js [new file with mode: 0644]
test/harness/webCryptoUtils.js [new file with mode: 0644]
test/js/async_await_add.js [deleted file]
test/js/async_await_add.t.js [new file with mode: 0644]
test/js/async_await_blank.js [deleted file]
test/js/async_await_blank.t.js [new file with mode: 0644]
test/js/async_await_catch.js [deleted file]
test/js/async_await_catch.t.js [new file with mode: 0644]
test/js/async_await_finally.js [deleted file]
test/js/async_await_finally.t.js [new file with mode: 0644]
test/js/async_await_for.t.js [moved from test/js/async_await_for.js with 57% similarity]
test/js/async_await_inline.t.js [moved from test/js/async_await_inline.js with 52% similarity]
test/js/async_await_many_call.t.js [moved from test/js/async_await_many_call.js with 78% similarity]
test/js/async_await_reject.js [deleted file]
test/js/async_await_reject.t.js [new file with mode: 0644]
test/js/async_await_stages.t.js [moved from test/js/async_await_stages.js with 66% similarity]
test/js/async_await_throw.t.js [moved from test/js/async_await_throw.js with 56% similarity]
test/js/async_await_throw_async.t.js [moved from test/js/async_await_throw_catch_async.js with 57% similarity]
test/js/async_await_throw_catch.t.js [moved from test/js/async_await_throw_catch.js with 64% similarity]
test/js/async_await_throw_catch_async.t.js [moved from test/js/async_await_throw_async.js with 57% similarity]
test/js/async_await_try_catch.js [deleted file]
test/js/async_await_try_catch.t.js [new file with mode: 0644]
test/js/async_await_try_finally.t.js [moved from test/js/async_await_try_finally.js with 57% similarity]
test/js/async_await_try_resolve.t.js [moved from test/js/async_await_try_resolve.js with 61% similarity]
test/js/async_await_try_throw.js [deleted file]
test/js/async_await_try_throw.t.js [new file with mode: 0644]
test/js/async_await_try_throw_catch.js [deleted file]
test/js/async_await_try_throw_catch.t.js [new file with mode: 0644]
test/js/fs_promises_001.js [deleted file]
test/js/promise_all.js [deleted file]
test/js/promise_all.t.js [new file with mode: 0644]
test/js/promise_allSettled.t.js [moved from test/js/promise_allSettled.js with 81% similarity]
test/js/promise_allSettled_string.t.js [moved from test/js/promise_allSettled_string.js with 64% similarity]
test/js/promise_all_throw.t.js [moved from test/js/promise_all_throw.js with 65% similarity]
test/js/promise_any.t.js [moved from test/js/promise_any.js with 59% similarity]
test/js/promise_any_all_rejected.js [deleted file]
test/js/promise_any_all_rejected.t.js [new file with mode: 0644]
test/js/promise_catch_then_throw_catch.js [deleted file]
test/js/promise_catch_then_throw_catch.t.js [new file with mode: 0644]
test/js/promise_catch_throw.js [deleted file]
test/js/promise_catch_throw.t.js [new file with mode: 0644]
test/js/promise_finally.js [deleted file]
test/js/promise_finally.t.js [new file with mode: 0644]
test/js/promise_finally_throw.js [deleted file]
test/js/promise_finally_throw.t.js [new file with mode: 0644]
test/js/promise_finally_throw_catch.js [deleted file]
test/js/promise_finally_throw_catch.t.js [new file with mode: 0644]
test/js/promise_race.t.js [moved from test/js/promise_race.js with 60% similarity]
test/js/promise_race_throw.t.js [moved from test/js/promise_race_throw.js with 58% similarity]
test/js/promise_reject_catch.js [deleted file]
test/js/promise_reject_catch.t.js [new file with mode: 0644]
test/js/promise_reject_post_catch.js [deleted file]
test/js/promise_reject_post_catch.t.js [new file with mode: 0644]
test/js/promise_rejection_tracker.js [deleted file]
test/js/promise_rejection_tracker.t.js [new file with mode: 0644]
test/js/promise_s01.t.js [new file with mode: 0644]
test/js/promise_s02.t.js [new file with mode: 0644]
test/js/promise_s03.t.js [new file with mode: 0644]
test/js/promise_s04.t.js [new file with mode: 0644]
test/js/promise_s05.t.js [new file with mode: 0644]
test/js/promise_s06.t.js [new file with mode: 0644]
test/js/promise_s07.t.js [new file with mode: 0644]
test/js/promise_s08.t.js [new file with mode: 0644]
test/js/promise_s09.t.js [new file with mode: 0644]
test/js/promise_s1.js [deleted file]
test/js/promise_s10.js [deleted file]
test/js/promise_s10.t.js [new file with mode: 0644]
test/js/promise_s11.js [deleted file]
test/js/promise_s11.t.js [new file with mode: 0644]
test/js/promise_s12.js [deleted file]
test/js/promise_s12.t.js [new file with mode: 0644]
test/js/promise_s13.js [deleted file]
test/js/promise_s13.t.js [new file with mode: 0644]
test/js/promise_s14.js [deleted file]
test/js/promise_s14.t.js [new file with mode: 0644]
test/js/promise_s15.js [deleted file]
test/js/promise_s15.t.js [new file with mode: 0644]
test/js/promise_s16.js [deleted file]
test/js/promise_s16.t.js [new file with mode: 0644]
test/js/promise_s17.js [deleted file]
test/js/promise_s17.t.js [new file with mode: 0644]
test/js/promise_s18.t.js [moved from test/js/promise_s18.js with 50% similarity]
test/js/promise_s19.js [deleted file]
test/js/promise_s19.t.js [new file with mode: 0644]
test/js/promise_s2.js [deleted file]
test/js/promise_s20.js [deleted file]
test/js/promise_s20.t.js [new file with mode: 0644]
test/js/promise_s21.t.js [moved from test/js/promise_s21.js with 51% similarity]
test/js/promise_s22.js [deleted file]
test/js/promise_s22.t.js [new file with mode: 0644]
test/js/promise_s23.js [deleted file]
test/js/promise_s23.t.js [new file with mode: 0644]
test/js/promise_s24.t.js [moved from test/js/promise_s24.js with 65% similarity]
test/js/promise_s25.js [deleted file]
test/js/promise_s25.t.js [new file with mode: 0644]
test/js/promise_s26.js [deleted file]
test/js/promise_s26.t.js [new file with mode: 0644]
test/js/promise_s3.js [deleted file]
test/js/promise_s4.js [deleted file]
test/js/promise_s5.js [deleted file]
test/js/promise_s6.js [deleted file]
test/js/promise_s7.js [deleted file]
test/js/promise_s8.js [deleted file]
test/js/promise_s9.js [deleted file]
test/js/promise_set_timeout.t.js [moved from test/js/promise_set_timeout.js with 63% similarity]
test/js/promise_then_throw.js [deleted file]
test/js/promise_then_throw.t.js [new file with mode: 0644]
test/js/promise_then_throw_catch.js [deleted file]
test/js/promise_then_throw_catch.t.js [new file with mode: 0644]
test/js/promise_then_throw_finally_catch.js [deleted file]
test/js/promise_then_throw_finally_catch.t.js [new file with mode: 0644]
test/js/promise_two_first_then_throw.t.js [moved from test/js/promise_two_first_then_throw.js with 65% similarity]
test/js/promise_two_then_throw.js [deleted file]
test/js/promise_two_then_throw.t.js [new file with mode: 0644]
test/njs_expect_test.exp
test/options [new file with mode: 0644]
test/prepare [new file with mode: 0644]
test/report [new file with mode: 0644]
test/setup [new file with mode: 0644]
test/test262 [new file with mode: 0755]
test/webcrypto/aes.t.js [moved from test/webcrypto/aes.js with 77% similarity]
test/webcrypto/aes_decoding.t.js [moved from test/webcrypto/aes_decoding.js with 69% similarity]
test/webcrypto/derive.t.js [moved from test/webcrypto/derive.js with 70% similarity]
test/webcrypto/digest.t.js [moved from test/webcrypto/digest.js with 69% similarity]
test/webcrypto/rsa.t.js [moved from test/webcrypto/rsa.js with 61% similarity]
test/webcrypto/rsa_decoding.js [deleted file]
test/webcrypto/rsa_decoding.t.js [new file with mode: 0644]
test/webcrypto/sign.t.js [moved from test/webcrypto/sign.js with 81% similarity]
test/webcrypto/verify.t.js [moved from test/webcrypto/verify.js with 70% similarity]