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

Unified Diff: tests/language/src/CallThroughGetterTest.dart

Issue 9664052: - Fix use of String operator + in language and corelib tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/corelib/src/RegExpAllMatchesTest.dart ('k') | tests/language/src/Constructor2Test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/CallThroughGetterTest.dart
===================================================================
--- tests/language/src/CallThroughGetterTest.dart (revision 6413)
+++ tests/language/src/CallThroughGetterTest.dart (working copy)
@@ -111,7 +111,7 @@
var exception = catchException(fn);
if (!(exception is ObjectNotClosureException)) {
Expect.fail("Wrong exception. Expected: ObjectNotClosureException"
- + " got: ${exception}");
+ " got: ${exception}");
}
}
@@ -144,7 +144,7 @@
class B {
- B() : _order = "" { }
+ B() : _order = new StringBuffer("") { }
get g0() { _mark('g'); return f0() { return _mark('f'); }; }
get g1() { _mark('g'); return f1(x) { return _mark('f'); }; }
@@ -155,8 +155,8 @@
get y() { _mark('y'); return 1; }
get z() { _mark('z'); return 2; }
- _mark(m) { _order += m; return _order; }
- String _order;
+ _mark(m) { _order.add(m); return _order.toString(); }
+ StringBuffer _order;
}
« no previous file with comments | « tests/corelib/src/RegExpAllMatchesTest.dart ('k') | tests/language/src/Constructor2Test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698