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

Unified Diff: tests/html/measurement_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/measurement_test.dart
===================================================================
--- tests/html/measurement_test.dart (revision 14156)
+++ tests/html/measurement_test.dart (working copy)
@@ -18,10 +18,10 @@
final computedStyle = element.computedStyle;
computedStyle.then(expectAsync1((style) {
expect(style.getPropertyValue('left'), equals('auto'));
- expect(fnComplete);
+ expect(fnComplete, isTrue);
expect(timeout0, isFalse);
}));
- Expect.isFalse(computedStyle.isComplete);
+ expect(computedStyle.isComplete, isFalse);
fnComplete = true;
});
@@ -29,8 +29,8 @@
var rect;
var computedStyle;
window.requestLayoutFrame(expectAsync0(() {
- expect(rect.isComplete);
- expect(computedStyle.isComplete);
+ expect(rect.isComplete, isTrue);
+ expect(computedStyle.isComplete, isTrue);
}));
final element = document.body;

Powered by Google App Engine
This is Rietveld 408576698