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

Unified Diff: tests/corelib/format_exception_test.dart

Issue 396603003: Change "FormatException.position" to be named "offset". (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reapply change, with necessary fixes in span_execption.dart Created 6 years, 5 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 | « sdk/lib/core/exceptions.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/format_exception_test.dart
diff --git a/tests/corelib/format_exception_test.dart b/tests/corelib/format_exception_test.dart
index f17bcdc74ea2c7d651245ca73bf56db8e4f5a445..121494cadbf8edce916ece58ea7577df4c26d0be 100644
--- a/tests/corelib/format_exception_test.dart
+++ b/tests/corelib/format_exception_test.dart
@@ -5,10 +5,10 @@
library format_exception_test;
import "package:expect/expect.dart";
-test(exn, message, source, position, toString) {
+test(exn, message, source, offset, toString) {
Expect.equals(message, exn.message);
Expect.equals(source, exn.source);
- Expect.equals(position, exn.position);
+ Expect.equals(offset, exn.offset);
Expect.equals(toString, exn.toString());
}
@@ -39,7 +39,7 @@ main() {
var o = new Object();
e = new FormatException("message", o, 10);
- test(e, "message", o, 10, "FormatException: message (at position 10)");
+ test(e, "message", o, 10, "FormatException: message (at offset 10)");
e = new FormatException("message", "source", 3);
test(e, "message", "source", 3,
« no previous file with comments | « sdk/lib/core/exceptions.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698