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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 9325047: Add token index position to classes and types for more accurate error reporting. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 3925)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -1495,10 +1495,8 @@
// We expect the test script to fail finalization with the error below:
EXPECT(Dart_IsError(result));
Dart_Handle expected_error = Dart_Error(
- "'dart:test-lib': Error: class 'NativeFields' is trying to extend a "
- "native fields class, but library '%s' has no native resolvers",
- TestCase::url());
- EXPECT_STREQ(Dart_GetError(expected_error), Dart_GetError(result));
+ "'dart:test-lib': Error: line 1 pos 38: class 'NativeFields' is trying");
siva 2012/02/06 18:13:08 Why did you chop of the rest of the error regardin
regis 2012/02/06 19:43:16 The emitted error message is now much longer, sinc
regis 2012/02/06 20:07:48 As discussed, I will not chop off the error messag
+ EXPECT_SUBSTRING(Dart_GetError(expected_error), Dart_GetError(result));
}

Powered by Google App Engine
This is Rietveld 408576698