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

Unified Diff: test/utils.dart

Issue 1031063003: Fix tests that were broken in Chrome. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Created 5 years, 9 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 | « test/frontend/matcher/throws_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/utils.dart
diff --git a/test/utils.dart b/test/utils.dart
index 0bdeee1297cb1c246b43d053bec1f4320be309b5..b02b5868cbcb58736e12b5082617f239e1754bc0 100644
--- a/test/utils.dart
+++ b/test/utils.dart
@@ -15,6 +15,11 @@ import 'package:unittest/src/runner/load_exception.dart';
import 'package:unittest/src/util/remote_exception.dart';
import 'package:unittest/unittest.dart';
+/// The string representation of an untyped closure with no arguments.
+///
+/// This differs between dart2js and the VM.
+final String closureString = (() {}).toString();
+
// The last state change detected via [expectStates].
State lastState;
« no previous file with comments | « test/frontend/matcher/throws_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698