зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
08b9621b96
Коммит
6f17ae280f
|
@ -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>
|
||||
|
|
Загрузка…
Ссылка в новой задаче