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

Unified Diff: tests/html/audioelement_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 | « tests/html/audiocontext_test.dart ('k') | tests/html/cache_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/audioelement_test.dart
===================================================================
--- tests/html/audioelement_test.dart (revision 8732)
+++ tests/html/audioelement_test.dart (working copy)
@@ -8,14 +8,14 @@
test('constructorTest1', () {
var audio = new AudioElement();
- Expect.isTrue(audio != null);
- Expect.isTrue(audio is AudioElement);
+ expect(audio, isNotNull);
+ expect(audio is AudioElement);
});
test('constructorTest2', () {
var audio = new AudioElement('hahaURL');
- Expect.isTrue(audio != null);
- Expect.isTrue(audio is AudioElement);
- Expect.isTrue(audio.src.indexOf('hahaURL') >= 0);
+ expect(audio, isNotNull);
+ expect(audio is AudioElement);
+ expect(audio.src, contains('hahaURL'));
});
}
« no previous file with comments | « tests/html/audiocontext_test.dart ('k') | tests/html/cache_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698