From eebce276b7fbc6dca796709a54d35f3a0f63f76c Mon Sep 17 00:00:00 2001 From: Doehyun Baek Date: Fri, 24 Nov 2023 13:48:31 +0900 Subject: [PATCH] add failing javascriptcore test Cannot access 'NaN' before initialization --- tests/online/javascriptcore/test.js | 8 ++++++++ tests/run-tests.cts | 5 +++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 tests/online/javascriptcore/test.js diff --git a/tests/online/javascriptcore/test.js b/tests/online/javascriptcore/test.js new file mode 100644 index 00000000..f47a14b3 --- /dev/null +++ b/tests/online/javascriptcore/test.js @@ -0,0 +1,8 @@ +import { delay } from '../../../dist/tests/test-utils.cjs' + +export default async function test(analyser) { + const url = 'https://mbbill.github.io/JSC.js/demo/index.html' + const page = await analyser.start(url) + await delay(10000) + return await analyser.stop() +} diff --git a/tests/run-tests.cts b/tests/run-tests.cts index 2171c527..82082c3d 100644 --- a/tests/run-tests.cts +++ b/tests/run-tests.cts @@ -178,7 +178,8 @@ async function runOnlineTests(names: string[]) { 'funky-kart', 'ffmpeg', 'sandspiel', - 'image-convolute' + 'image-convolute', + 'javascriptcore', ] names = names.filter((n) => !filter.includes(n)) for (let name of names) { @@ -370,4 +371,4 @@ async function testWebPage(testPath: string): Promise { await runOnlineTests(testNames) } // process.stdout.write(`done running ${nodeTestNames.length + webTestNames.length} tests\n`); -})() \ No newline at end of file +})()