Espruino/tests/test_settimeout_behaves_like_chromes.js
Michael Duerinckx 7f5308590b Rename numbered tests to something more descriptive - closes #16
test077 is the only one I really couldn't figure out what it was meant
to test.
2014-03-01 22:15:28 +00:00

10 lines
428 B
JavaScript

// Formerly test055.js - added so a search in directory can reveal this file
// test that setTimeout acts like jsConsole/Chrome's
// HOWEVER this is not always the case. See what is reported on this bug: https://github.com/espruino/Espruino/issues/134
// It does make a lot of sense for Espruino to do this though (see the comments in the bug)
var result=0;
function a() {result=0;}
setTimeout(a,10);
function a() {result=1;}