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

Unified Diff: tests/language/type_cast_vm_test.dart

Issue 10800002: Hide names of internal classes from the user by mapping them to the documented (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/parser.cc ('k') | tests/language/type_vm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_cast_vm_test.dart
===================================================================
--- tests/language/type_cast_vm_test.dart (revision 9747)
+++ tests/language/type_cast_vm_test.dart (working copy)
@@ -1,6 +1,7 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+// VMOptions=--no_show_internal_names
//
// Dart test program testing type casts.
@@ -21,7 +22,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(11, error.line);
+ Expect.equals(12, error.line);
Expect.equals(23, error.column);
}
return result;
@@ -37,7 +38,7 @@
var a = new List<int>(1) as List<int>;
a[0] = 0;
a[index()]++; // Type check succeeds, but does not create side effects.
- assert(a[0] == 1);
+ Expect.equals(1, a[0]);
} catch (TypeError error) {
result = 100;
}
@@ -63,7 +64,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(53, error.line);
+ Expect.equals(54, error.line);
Expect.equals(25, error.column);
}
return result;
@@ -88,7 +89,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(75, error.line);
+ Expect.equals(76, error.line);
Expect.equals(16, error.column);
}
return result;
@@ -111,7 +112,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(102, error.line);
+ Expect.equals(103, error.line);
Expect.equals(13, error.column);
}
return result;
@@ -136,7 +137,7 @@
}
String subs = error.url.substring(pos + 1, error.url.length);
Expect.equals("type_cast_vm_test.dart", subs);
- Expect.equals(127, error.line);
+ Expect.equals(128, error.line);
Expect.equals(17, error.column);
}
return result;
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/type_vm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698