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

Unified Diff: tests/html/audiocontext_test.dart

Issue 11345038: Fix for audiogainnode/gain node naming in current Chrome and Safari. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « lib/compiler/implementation/lib/native_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/audiocontext_test.dart
===================================================================
--- tests/html/audiocontext_test.dart (revision 14303)
+++ tests/html/audiocontext_test.dart (working copy)
@@ -26,4 +26,18 @@
expect(e.code, equals(DOMException.SYNTAX_ERR));
}
});
+
+ test('audioRenames', () {
+ AudioContext context = new AudioContext();
+ GainNode gainNode = context.createGainNode();
+ gainNode.connect(context.destination, 0, 0);
+ expect(gainNode is GainNode, isTrue);
+
+ expect(context.createAnalyser() is AnalyserNode, isTrue);
+ expect(context.createChannelMerger() is ChannelMergerNode, isTrue);
+ expect(context.createChannelSplitter() is ChannelSplitterNode, isTrue);
+ expect(context.createOscillator() is OscillatorNode, isTrue);
+ expect(context.createPanner() is PannerNode, isTrue);
+ expect(context.createJavaScriptNode(4096) is ScriptProcessorNode, isTrue);
+ });
}
« no previous file with comments | « lib/compiler/implementation/lib/native_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698