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

Unified Diff: tests/html/audiocontext_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
Index: tests/html/audiocontext_test.dart
diff --git a/tests/html/audiocontext_test.dart b/tests/html/audiocontext_test.dart
index 68c2af9a9fdade2d3b71fbf0c6b56ea036c7a418..3f84f8e29ca4767d558b03db7e21696b0acdaff6 100644
--- a/tests/html/audiocontext_test.dart
+++ b/tests/html/audiocontext_test.dart
@@ -1,4 +1,5 @@
library AudioContextTest;
+
import 'package:unittest/unittest.dart';
import 'package:unittest/html_individual_config.dart';
import 'dart:html';
@@ -7,7 +8,6 @@ import 'dart:web_audio';
import 'dart:async';
main() {
-
useHtmlIndividualConfiguration();
var isAudioContext =
@@ -24,16 +24,16 @@ main() {
if (AudioContext.supported) {
context = new AudioContext();
}
-
+
test('constructorTest', () {
- if(AudioContext.supported) {
+ if (AudioContext.supported) {
expect(context, isNotNull);
expect(context, isAudioContext);
}
});
test('audioRenames', () {
- if(AudioContext.supported) {
+ if (AudioContext.supported) {
GainNode gainNode = context.createGain();
gainNode.connectNode(context.destination);
expect(gainNode is GainNode, isTrue);
@@ -43,8 +43,8 @@ main() {
expect(context.createChannelSplitter() is AudioNode, isTrue);
expect(context.createOscillator() is OscillatorNode, isTrue);
expect(context.createPanner() is PannerNode, isTrue);
- expect(context.createScriptProcessor(4096) is ScriptProcessorNode,
- isTrue);
+ expect(
+ context.createScriptProcessor(4096) is ScriptProcessorNode, isTrue);
}
});
@@ -69,7 +69,7 @@ main() {
*/
test('oscillatorTypes', () {
- if(AudioContext.supported) {
+ if (AudioContext.supported) {
OscillatorNode oscillator = context.createOscillator();
oscillator.connectNode(context.destination);

Powered by Google App Engine
This is Rietveld 408576698