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

Unified Diff: tests/html/hidden_dom_1_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/hidden_dom_1_test.dart
===================================================================
--- tests/html/hidden_dom_1_test.dart (revision 14156)
+++ tests/html/hidden_dom_1_test.dart (working copy)
@@ -15,7 +15,7 @@
Hello World!
</div>'''));
Element e = document.query('#div1');
- Expect.isTrue(e != null);
+ expect(e, isNotNull);
checkNoSuchMethod(() { confuse(e).onfocus = null; });
});
@@ -39,7 +39,7 @@
ex = e;
}
if (ex === null)
- Expect.fail('Action should have thrown exception');
+ expect(false, isTrue, reason: 'Action should have thrown exception');
- Expect.isTrue(ex is NoSuchMethodError, 'ex is NoSuchMethodError');
+ expect(ex, isNoSuchMethodError);
}

Powered by Google App Engine
This is Rietveld 408576698