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

Unified Diff: tests/compiler/dart2js/mirrors_test.dart

Issue 11275097: Merge SourceLocation and Source (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: RegExp used for line numbers Created 8 years, 1 month 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: tests/compiler/dart2js/mirrors_test.dart
diff --git a/tests/compiler/dart2js/mirrors_test.dart b/tests/compiler/dart2js/mirrors_test.dart
index cec75b4e1e69d717dd6dff41d261f7e0cf76274d..758566b1b9b0e81f4f50945c0d390034a7467528 100644
--- a/tests/compiler/dart2js/mirrors_test.dart
+++ b/tests/compiler/dart2js/mirrors_test.dart
@@ -55,6 +55,14 @@ main() {
Expect.stringEquals("mirrors_helper", helperLibrary.qualifiedName,
"Unexpected library qualified name");
+ var helperLibraryLocation = helperLibrary.location;
+ Expect.isNotNull(helperLibraryLocation);
+ Expect.equals(271, helperLibraryLocation.offset, "Unexpected offset");
+ Expect.equals(23, helperLibraryLocation.length, "Unexpected length");
+ Expect.equals(9, helperLibraryLocation.line, "Unexpected line");
+ Expect.equals(1, helperLibraryLocation.column, "Unexpected column");
+
+
var classes = helperLibrary.classes;
Expect.isNotNull(classes, "No classes map returned");
Expect.isFalse(classes.isEmpty, "Empty classes map returned");
« lib/compiler/implementation/source_file.dart ('K') | « tests/compiler/dart2js/mirrors_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698