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

Unified Diff: tests/html/url_test.dart

Issue 11275054: Modified unittest to use new argument syntax. (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
Index: tests/html/url_test.dart
===================================================================
--- tests/html/url_test.dart (revision 14156)
+++ tests/html/url_test.dart (working copy)
@@ -38,7 +38,7 @@
var blob = createImageBlob();
var url = window.createObjectUrl(blob);
expect(url.length, greaterThan(0));
- expect(url.startsWith('blob:'));
+ expect(url, startsWith('blob:'));
var img = new ImageElement();
img.on.load.add(expectAsync1((_) {
@@ -46,7 +46,7 @@
}));
img.on.error.add((_) {
guardAsync(() {
- expect(true, isFalse, 'URL failed to load.');
+ expect(true, isFalse, reason: 'URL failed to load.');
});
});
img.src = url;
@@ -55,7 +55,7 @@
test('revokeObjectUrl', () {
var blob = createImageBlob();
var url = window.createObjectUrl(blob);
- expect(url.startsWith('blob:'));
+ expect(url, startsWith('blob:'));
window.revokeObjectUrl(url);
var img = new ImageElement();
@@ -64,7 +64,7 @@
}));
img.on.load.add((_) {
guardAsync(() {
- expect(true, isFalse, 'URL should not have loaded.');
+ expect(true, isFalse, reason: 'URL should not have loaded.');
});
});
img.src = url;

Powered by Google App Engine
This is Rietveld 408576698