repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
regress
/
script-tests
/
constant-test.js
blob
089681a157edbae2b4bd8e70762624069b24d1a8
1
function foo(a, b, c) {
2
return a * b / c + a - b * c / a % b + c;
3
}
4
5
var result = 0;
6
7
for (var i = 0; i < 1000000; ++i)
8
result += foo(1.5, 2.4, 3.3);
9
10
if (result != 5410909.091033336)
11
throw "Bad result: " + result;
12
13