bug 1187785 bind frequencyIndex by value instead of reference

to test all indices, not the last one several times.

--HG--
extra : rebase_source : 8176094474ddfefcc4e021f772a211577b5ec3f8
This commit is contained in:
Karl Tomlinson 2015-10-30 10:07:14 +13:00
Родитель 08b9621b96
Коммит 6f17ae280f
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -10,7 +10,7 @@ const epsilon = 0.01;
// "All implementations must support arrays up to at least 8192", but the
// linear interpolation of the current implementation distorts the higher
// frequency components too much to pass this test.
const frequencyIndexMax = 100;
const frequencyIndexMax = 200;
// A set of oscillators are created near the Nyquist frequency.
// These are factors giving each oscillator frequency relative to the Nyquist.
@ -80,7 +80,7 @@ function test_frequency_index(frequencyIndex) {
for (var frequencyIndex = 1;
frequencyIndex < frequencyIndexMax;
frequencyIndex = Math.floor((5 * frequencyIndex + 3) / 4)) {
promise_test(() => test_frequency_index(frequencyIndex),
promise_test(test_frequency_index.bind(null, frequencyIndex),
"Frequency " + frequencyIndex);
}
</script>