haikuwebkit/LayoutTests/js/script-tests/floating-point-denormalized.js

17 lines
267 B
JavaScript

description(
"This tests that floating point math supports for denormalized numbers."
);
var count = 0;
var value = 1;
while (value / 2) {
value /= 2;
++count;
}
if (count == 1074)
debug("PASS");
else
debug("FAIL: expected 1074, actual " + count);