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

Unified Diff: tests/html/history_test.dart

Issue 12036060: Fixing tests after event constructor change. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 | « no previous file | tests/html/serialized_script_value_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/history_test.dart
diff --git a/tests/html/history_test.dart b/tests/html/history_test.dart
index 271b4fc7ba10f58c7e7d700f2eae13c96f2d5c84..211b950ee742922e44ba5913245703c05a132ff2 100644
--- a/tests/html/history_test.dart
+++ b/tests/html/history_test.dart
@@ -68,10 +68,12 @@ main() {
});
test('hashchangeevent', () {
- var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new');
- expect(event is HashChangeEvent, true);
- expect(event.oldUrl, 'old');
- expect(event.newUrl, 'new');
+ expect(() {
+ var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new');
+ expect(event is HashChangeEvent, true);
+ expect(event.oldUrl, 'old');
+ expect(event.newUrl, 'new');
+ }, expectation);
});
});
}
« no previous file with comments | « no previous file | tests/html/serialized_script_value_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698