Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #library('AudioBufferSourceNodeTest'); | |
| 2 #import('../../pkg/unittest/unittest.dart'); | |
| 3 #import('../../pkg/unittest/html_config.dart'); | |
| 4 #import('dart:html'); | |
| 5 | |
| 6 main() { | |
| 7 | |
| 8 useHtmlConfiguration(); | |
| 9 | |
| 10 test('createBuffer', () { | |
| 11 var ctx = new AudioContext(); | |
| 12 AudioBufferSourceNode node = ctx.createBufferSource(); | |
|
blois
2012/10/02 23:43:25
I don't think this test works on all (many?) platf
Emily Fortuna
2012/10/02 23:59:43
It works on Chrome and Safari 6, but I had forgott
| |
| 13 node.start(ctx.currentTime, 0, 2); | |
| 14 node.stop(ctx.currentTime + 2); | |
| 15 expect(node is AudioBufferSourceNode); | |
| 16 }); | |
| 17 } | |
| OLD | NEW |