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

Unified Diff: tests/html/audiocontext_test.dart

Issue 10544167: Some unit test fixes (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/unittest/unittest.dart ('k') | tests/html/audioelement_test.dart » ('j') | 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 8732)
+++ tests/html/audiocontext_test.dart (working copy)
@@ -9,8 +9,8 @@
test('constructorTest', () {
var ctx = new AudioContext();
- Expect.isNotNull(ctx);
- Expect.isTrue(ctx is AudioContext);
+ expect(ctx, isNotNull);
+ expect(ctx is AudioContext);
});
test('createBuffer', () {
var ctx = new AudioContext();
@@ -20,7 +20,7 @@
// should throw 'SYNTAX_ERR' DOMException because the buffer is empty.
AudioBuffer buffer = ctx.createBuffer(arrayBufferView.buffer, false);
} catch(var e) {
- Expect.equals(DOMException.SYNTAX_ERR, e.code);
+ expect(e.code, equals(DOMException.SYNTAX_ERR));
}
});
}
« no previous file with comments | « lib/unittest/unittest.dart ('k') | tests/html/audioelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698