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

Unified Diff: tests/html/measurement_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/html.status ('k') | tests/isolate/v2_spawn_uri_vm_negative_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/measurement_test.dart
===================================================================
--- tests/html/measurement_test.dart (revision 8732)
+++ tests/html/measurement_test.dart (working copy)
@@ -18,10 +18,10 @@
window.setTimeout(() { timeout0 = true; }, 0);
final computedStyle = element.computedStyle;
computedStyle.then(expectAsync1((style) {
- Expect.equals(style.getPropertyValue('left'), 'auto');
- Expect.isTrue(fnComplete);
- Expect.isFalse(timeout0);
- Expect.isFalse(animationFrame);
+ expect(style.getPropertyValue('left'), equals('auto'));
+ expect(fnComplete);
+ expect(timeout0, isFalse);
+ expect(animationFrame, isFalse);
}));
Expect.isFalse(computedStyle.isComplete);
fnComplete = true;
@@ -31,15 +31,15 @@
var rect;
var computedStyle;
window.requestLayoutFrame(expectAsync0(() {
- Expect.isTrue(rect.isComplete);
- Expect.isTrue(computedStyle.isComplete);
+ expect(rect.isComplete);
+ expect(computedStyle.isComplete);
}));
final element = document.body;
rect = element.rect;
computedStyle = element.computedStyle;
- Expect.isFalse(rect.isComplete);
- Expect.isFalse(computedStyle.isComplete);
+ expect(rect.isComplete, isFalse);
+ expect(computedStyle.isComplete, isFalse);
});
// TODO(jacobr): add more tests that the results return by measurement
« no previous file with comments | « tests/html/html.status ('k') | tests/isolate/v2_spawn_uri_vm_negative_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698