]> git.kaiwu.me - njs.git/commitdiff
Test262: reporting name of the testsuite for a failed test.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 9 Oct 2024 23:05:26 +0000 (16:05 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Thu, 10 Oct 2024 16:43:41 +0000 (09:43 -0700)
test/harness/runTsuite.js

index aa3f5c0fba1f576f49717782a809121f880b6ec2..8103f6614df14108eba5246b973664196696ed2d 100644 (file)
@@ -30,7 +30,7 @@ async function run(tlist) {
         let r = results.map((r, i) => validate(ts.tests, r, i));
 
         r.forEach((v, i) => {
-            assert.sameValue(v, true, `FAILED ${i}: ${JSON.stringify(ts.tests[i])}\n    with reason: ${results[i].reason}`);
+            assert.sameValue(v, true, `FAILED ${ts.name}: ${JSON.stringify(ts.tests[i])}\n    with reason: ${results[i].reason}`);
         })
     }
 }