Chromium Code Reviews| Index: tests/html/audiobuffersourcenode_test.dart |
| =================================================================== |
| --- tests/html/audiobuffersourcenode_test.dart (revision 0) |
| +++ tests/html/audiobuffersourcenode_test.dart (working copy) |
| @@ -0,0 +1,17 @@ |
| +#library('AudioBufferSourceNodeTest'); |
| +#import('../../pkg/unittest/unittest.dart'); |
| +#import('../../pkg/unittest/html_config.dart'); |
| +#import('dart:html'); |
| + |
| +main() { |
| + |
| + useHtmlConfiguration(); |
| + |
| + test('createBuffer', () { |
| + var ctx = new AudioContext(); |
| + 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
|
| + node.start(ctx.currentTime, 0, 2); |
| + node.stop(ctx.currentTime + 2); |
| + expect(node is AudioBufferSourceNode); |
| + }); |
| +} |