Espruino/tests/test_object_access_1.js
Michael Duerinckx d4146da2b6 Rename test077
2014-03-04 07:17:40 +00:00

20 lines
347 B
JavaScript

var history = [324,64,6473,3754,7543];
function draw() {
var lastx = 0;
var lasty = 240;
for (idx in history) {
var thisx = idx*LCD.WIDTH/history.length;
var thisy = 240 - history[idx]*2;
// ...
lastx = thisx. // this would have caused an assert fail
lasty = thisy;
}
}
setTimeout("result = 1;",10);
draw();