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

Unified Diff: pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart

Issue 2413073002: Start cleaning up the HTML tests. (Closed)
Patch Set: Unfork expect.dart. Created 4 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
Index: pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart
diff --git a/pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart b/pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart
index 68c2af9a9fdade2d3b71fbf0c6b56ea036c7a418..e8870c112710f7cbddb736a48fdda444ae771530 100644
--- a/pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart
+++ b/pkg/dev_compiler/test/codegen/lib/html/audiocontext_test.dart
@@ -1,15 +1,11 @@
-library AudioContextTest;
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_individual_config.dart';
+import 'dart:async';
import 'dart:html';
import 'dart:typed_data';
import 'dart:web_audio';
-import 'dart:async';
-
-main() {
- useHtmlIndividualConfiguration();
+import 'package:minitest/minitest.dart';
+main() {
var isAudioContext =
predicate((x) => x is AudioContext, 'is an AudioContext');
@@ -24,16 +20,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);

Powered by Google App Engine
This is Rietveld 408576698