You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.
var fs = require('fs');
var stats = fs.statSync('timer.js');
if (stats && (stats.isFile() || stats.isDirectory())) {
console.log("This file is exist ---- ");
runJS('timer.js');
} else {
console.log("This file is not exist ---- ");
}
Simple test2: runJS('timer.js');
Steps to Reproduction
Copy /modules/Assert.js to a101 board as assert.js
Copy /tests/test-timers.js to a101 board as timer.js
Build simple test1 and flash it to a101 board.
Check console log.
Build simple test2 and flash it to a101 board.
Check console log.
Actual Result
Logs of simple test1:
This file is exist ----
PASS - clearInterval: intervalID does not exist
PASS - clearTimeout: timeoutID does not exist
PASS - setInterval: set delay
PASS - clearInterval: intervalID
PASS - setInterval: set delay and optional arg
PASS - setTimeout: set delay
PASS - setTimeout: set delay and optional arg
PASS - setTimeout: set 20 arg for timeout
PASS - clearTimeout: timeoutID
TOTAL: 9 of 9 passed
Logs of simple test2 (throw out error and repeats in an endless loop):
288:(ERROR) Error running JS
Error: console is not defined
288:(ERROR) Error running JS
Error: console is not defined
288:(ERROR) Error running JS
Error: console is not defined
Description
When testing
dynamic
target, throw out error.Test Code
/modules/Assert.js
/tests/test-timers.js
Simple test1:
Simple test2:
runJS('timer.js');
Steps to Reproduction
/modules/Assert.js
to a101 board asassert.js
/tests/test-timers.js
to a101 board astimer.js
Actual Result
Logs of simple test1:
Logs of simple test2 (throw out error and repeats in an endless loop):
Expected Result
No error.
Test Builds
Additional Information
The text was updated successfully, but these errors were encountered: