Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(372)

Unified Diff: tests/html/audiobuffersourcenode_test.dart

Issue 11510013: Making ScriptProcessorNode not an EventTarget. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tests/html/audiocontext_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/audiobuffersourcenode_test.dart
diff --git a/tests/html/audiobuffersourcenode_test.dart b/tests/html/audiobuffersourcenode_test.dart
index 3e19ba6d6e3408ea73908533f8d21feeff9b8433..10fecc9af1861cef9f714ac717ef0b306c837a7c 100644
--- a/tests/html/audiobuffersourcenode_test.dart
+++ b/tests/html/audiobuffersourcenode_test.dart
@@ -1,17 +1,27 @@
library AudioBufferSourceNodeTest;
import '../../pkg/unittest/lib/unittest.dart';
-import '../../pkg/unittest/lib/html_config.dart';
+import '../../pkg/unittest/lib/html_individual_config.dart';
import 'dart:web_audio';
main() {
- useHtmlConfiguration();
+ useHtmlIndividualConfiguration();
- test('createBuffer', () {
- var ctx = new AudioContext();
- AudioBufferSourceNode node = ctx.createBufferSource();
- node.start(ctx.currentTime, 0, 2);
- node.stop(ctx.currentTime + 2);
- expect(node is AudioBufferSourceNode, isTrue);
+ group('supported', () {
+ test('supported', () {
+ expect(AudioContext.supported, true);
+ });
+ });
+
+ group('functional', () {
+ test('createBuffer', () {
+ if(AudioContext.supported) {
+ var ctx = new AudioContext();
+ AudioBufferSourceNode node = ctx.createBufferSource();
+ node.start(ctx.currentTime, 0, 2);
+ node.stop(ctx.currentTime + 2);
+ expect(node is AudioBufferSourceNode, isTrue);
+ }
+ });
});
}
« no previous file with comments | « sdk/lib/web_audio/dartium/web_audio_dartium.dart ('k') | tests/html/audiocontext_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698