Commit graph

195 commits

Author SHA1 Message Date
Yotam Mann
a57ac25187 returning promise to OfflineTest defers the callback of 'render' 2018-01-03 12:03:41 -05:00
Yotam Mann
55c3474849 adding get getRmsAtTime to BufferTests 2018-01-03 12:02:41 -05:00
Yotam Mann
92454266f7 sync/unsync triggerAttack/Release to the Transport 2018-01-02 16:49:41 -05:00
Yotam Mann
15229d7c7e linting 2017-12-30 11:26:29 -05:00
Yotam Mann
a6f9ca49bd fixing AudioContext.close promise resolution support 2017-12-30 11:23:02 -05:00
Yotam Mann
2b896fad0c don't run Context tests when close isn't supported 2017-12-30 01:19:04 -05:00
Yotam Mann
c8ac0e7d40 Revert "using babel-polyfill"
This reverts commit aed806032c.
2017-12-29 23:34:44 -05:00
Yotam Mann
aed806032c using babel-polyfill
for older browsers testing
2017-12-29 23:23:28 -05:00
Yotam Mann
919de12cfa don't run example tests on older safari 2017-12-29 23:15:40 -05:00
Yotam Mann
f129e5d726 removing the polyfill from the tests 2017-12-29 22:06:39 -05:00
Yotam Mann
658d2f201f adding babel-polyfill for testing older browsers 2017-12-29 21:44:10 -05:00
Yotam Mann
acf3768120 setting rotation in another way 2017-12-29 13:50:57 -05:00
Yotam Mann
c4abd54719 ignoring UserMedia tests on Safari 2017-12-28 18:44:14 -05:00
Yotam Mann
30f118fd55 silence version logging in tests 2017-11-29 15:23:20 -05:00
Yotam Mann
f02a46f0c0 skip tests which rely on AudioContext.close promise resolving on unsupported platforms 2017-11-29 15:22:30 -05:00
Yotam Mann
2068fc3613 don't log on tests 2017-11-29 15:05:28 -05:00
Yotam Mann
1c13b893de flag for online/focused testing
trying to fix failing tests on headless FF on Travis CI
2017-11-29 15:05:12 -05:00
Yotam Mann
0906faea56 putting window in focus 2017-11-21 09:40:32 -08:00
Yotam Mann
69dd348eaa simplifying APITest 2017-10-26 00:51:43 -04:00
Yotam Mann
c634624fab Revert "simplifying the API tests"
This reverts commit 6af9f28c50.
2017-10-26 00:42:51 -04:00
Yotam Mann
6af9f28c50 simplifying the API tests 2017-10-25 23:08:16 -04:00
Yotam Mann
d153fc86cf removing 'let' from test code 2017-10-24 11:57:23 -04:00
Yotam Mann
d9d7e4edcf silencing warnings in API Tests 2017-09-15 17:46:22 -04:00
Yotam Mann
892668b01e linearRampToValue -> linearRampTo 2017-08-31 12:45:25 -04:00
Yotam Mann
f687bb8a11 ability to get buffer values at a given time 2017-08-27 19:41:47 -04:00
Yotam Mann
62d1f5c9b1 resetting transport state between tests
addresses #250
2017-08-13 21:34:26 -04:00
Yotam Mann
8a270a22b2 increasing timeout length
CPU limited Travis CI containers are having a hard time keeping up with
the tests
2017-06-30 14:34:01 -04:00
Yotam Mann
7cd7bb1536 source shouldn't be muted
otherwise it’s not testing the right thing
2017-05-21 20:16:32 -07:00
Yotam Mann
f534e13a7e optionally pass in the options object in the second argument 2017-05-13 22:08:55 -04:00
Yotam Mann
79a0e22fd7 fixed timing error in Meter
was always passing in NaN
2017-05-01 17:44:25 -04:00
Yotam Mann
ce2005193d testing triggerRelease and triggerAttackRelease
testing in all instruments that have that method
2017-04-30 14:18:50 -04:00
Yotam Mann
d5253b6fce testing static type queries 2017-04-26 00:27:49 -04:00
Yotam Mann
2030034494 sources to new defaults api
and es6 classes prep
2017-04-26 00:00:01 -04:00
Yotam Mann
e1b7fbd3f9 removing unused tests 2017-02-20 16:45:32 -05:00
Yotam Mann
ff7f384192 instrument tests use updated Offline API 2017-02-20 16:40:56 -05:00
Yotam Mann
6253db7250 signal tests use updated Offline API 2017-02-20 16:40:41 -05:00
Yotam Mann
fc0a26027f migrating tests to new Offline API 2017-02-20 14:06:44 -05:00
Yotam Mann
15dd8107de meter measures and returns RMS 2017-02-20 14:05:33 -05:00
Yotam Mann
bd9b42d5bc additional buffer checks 2017-02-20 14:05:11 -05:00
Yotam Mann
47325729b2 updating EffectsTests to new Offline API 2017-02-20 00:04:45 -05:00
Yotam Mann
4399793d8d converting components to new Offline test API 2017-02-19 23:55:55 -05:00
Yotam Mann
b3fa0edf9a FF passes all signal scheduling tests 2017-02-19 22:51:10 -05:00
Yotam Mann
d5fa72f447 shim buffer tests into offline return 2017-02-19 22:50:39 -05:00
Yotam Mann
06913fa2cc invokes a callback online a specific time 2017-02-19 20:49:58 -05:00
Yotam Mann
931524407c simplified PassAudioStereo 2017-02-19 20:49:47 -05:00
Yotam Mann
23e07013c9 allowing for sound to slowly ramp in 2017-02-19 20:49:35 -05:00
Yotam Mann
f26f4d42aa evaluates to true if the input produces silence 2017-02-19 20:48:57 -05:00
Yotam Mann
2b33efa77f new Offline test API 2017-02-19 15:32:00 -05:00
Yotam Mann
99955515ea reinit test on new Context 2017-02-19 15:31:03 -05:00
Yotam Mann
25b79e0108 updating to new PassAudio Test API 2017-02-19 15:29:01 -05:00
Yotam Mann
89d92b78bc converting to new Offline test API
and new test helpers
2017-02-19 11:54:29 -05:00
Yotam Mann
c0b16757e5 Offline test uses new Offline method 2017-02-19 11:52:33 -05:00
Yotam Mann
27739ca795 changing name of private lookAhead member and adding 'lag' member
‘lag’ is the amount that the clock is falling behind the desired update
interval
2016-12-25 19:38:19 -05:00
Yotam Mann
273c2f3b51 updating to new Clock API
includes updateInterval
2016-12-20 22:38:07 -05:00
Yotam Mann
eb4242b780 using meter to test if buffer is playing 2016-12-15 12:49:51 -05:00
Yotam Mann
84c1affe83 Clock uses static lookahead
lookAhead is more conservatively computed and adjusts to the largest
value.
2016-11-21 00:05:19 -08:00
Yotam Mann
c700caed7f member api test 2016-10-05 00:18:41 -04:00
Yotam Mann
f37e188acd adding type primitives to APITest 2016-09-26 14:58:04 -04:00
Yotam Mann
2474312a4e updating API tests 2016-09-25 21:58:48 -04:00
Yotam Mann
e4abe75851 validating constructor/method inputs 2016-09-25 21:36:32 -04:00
Yotam Mann
99d7d2f8bd disconnects from a specific node
(tests this feature only when supported)
2016-07-06 23:39:06 -04:00
Yotam Mann
408f142be3 increasing timeout time
for very slow TravisCI server instances
2016-07-06 22:47:30 -04:00
Yotam Mann
3a7e51793e sampler tests
also allowing a constructor argument to be passed into the Instrument
tests
2016-07-06 22:33:07 -04:00
Yotam Mann
607656f276 increasing default timeout time 2016-05-14 19:22:25 -04:00
Yotam Mann
07184385f9 testing muting 2016-05-14 17:21:36 -04:00
Yotam Mann
a0d066032e Transport unnecessary dependency 2016-04-18 00:15:46 -04:00
Yotam Mann
ee39eb3ce7 wasDisposed ignores objects that are on the prototype 2016-04-18 00:15:26 -04:00
Yotam Mann
2285e6feb4 making clock tick more often in offline mode 2016-03-18 11:01:06 -04:00
Yotam Mann
d98915ac38 increasing tick update rate for offline tests
makes the clock’s lookahead time come less in into play
2016-03-18 10:23:28 -04:00
Yotam Mann
96897c6a28 COMPLEX->ACCURATE
should be fixed with
https://bugzilla.mozilla.org/show_bug.cgi?id=1257718
2016-03-18 09:51:41 -04:00
Yotam Mann
9c3398da49 noting which parts of the spec are supported in which browsers 2016-03-16 13:12:40 -04:00
Yotam Mann
26db6d9377 testing envelope canceling 2016-03-04 15:54:39 -05:00
Yotam Mann
cea06ca26c moving event classes to Offline testing 2016-03-04 15:31:48 -05:00
Yotam Mann
dd3b35b430 testing if stopping before starting will cancel the sound
addresses #121
2016-03-03 13:04:36 -05:00
Yotam Mann
b29c297398 using new Offline testing 2016-03-03 01:37:44 -05:00
Yotam Mann
0ed5591338 slicker syntax than other Offline test 2016-03-03 01:36:46 -05:00
Yotam Mann
ac9c4a3360 offline test adjusts 'now' method to allow for offline testing
previously these things needed to be tested in real-time. now can be
tested faster than real time
2016-03-03 01:36:31 -05:00
Yotam Mann
4fe2304edd test that the instrument is silent before being triggered. 2016-01-18 22:47:09 -05:00
Yotam Mann
e0a8e98554 testing that audio doesn't clip in any oscillator 2016-01-18 00:27:30 -05:00
Yotam Mann
cd3ae4f860 Timeline signal using new Tone.Param 2015-10-21 10:53:43 -04:00
Yotam Mann
aa692f2214 adjusting test tolerence
now more tests pass on FF
2015-10-09 10:58:08 -04:00
Yotam Mann
1601c1f4ac set original context even after test failure 2015-10-09 10:57:37 -04:00
Yotam Mann
cff363fb1a testing instruments 2015-08-31 11:37:10 -04:00
Yotam Mann
b254e9ced5 returns this to allow for chaining 2015-08-28 18:33:50 -04:00
Yotam Mann
4aecd555b6 default duration is shorter and sample-aligned 2015-08-27 23:02:29 -04:00
Yotam Mann
df9ca3a39b invokes callback before test for additional args 2015-08-27 23:01:56 -04:00
Yotam Mann
a118b44416 effects tests 2015-08-26 10:29:35 -04:00
Yotam Mann
2ac2ca7bd3 tests if stereo audio passes through 2015-08-26 10:01:51 -04:00
Yotam Mann
e333168dbc removed unnecessary RMS parameter 2015-08-24 17:33:28 -04:00
Yotam Mann
57578a482b can pass in args to Basic Test 2015-08-24 17:28:23 -04:00
Yotam Mann
0a3a34fd0a using Meter in sources tests 2015-08-24 11:14:10 -04:00
Yotam Mann
96935a6d48 Offline handles any number of channels 2015-08-24 11:13:56 -04:00
Yotam Mann
287d76ec7e tests rms of the incoming signal 2015-08-24 11:13:35 -04:00
Yotam Mann
3b9049e2e9 Source tests 2015-08-21 17:03:48 -04:00
Yotam Mann
cf712101bb Moving tests to "helper" folder 2015-08-21 17:03:14 -04:00