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

Unified Diff: runtime/vm/dart_api_impl_test.cc

Issue 14791005: BREAKING CHANGE: enforce part of directive (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « runtime/vm/compiler_test.cc ('k') | runtime/vm/find_code_object_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl_test.cc
===================================================================
--- runtime/vm/dart_api_impl_test.cc (revision 22269)
+++ runtime/vm/dart_api_impl_test.cc (working copy)
@@ -5653,7 +5653,7 @@
const char* kLibrary1Chars =
"library library1_name;";
const char* kSourceChars =
- "// Something innocuous";
+ "part of library1_name;\n// Something innocuous";
const char* kBadSourceChars =
")";
Dart_Handle error = Dart_Error("incoming error");
@@ -5739,6 +5739,7 @@
" foo() => 'foo';\n"
"}\n";
const char* kSourceChars =
+ "part of library1_name;\n"
"class NewClass extends OldClass{\n"
" bar() => 'bar';\n"
"}\n";
@@ -5781,6 +5782,7 @@
const char* kLibrary1Chars =
"library library1_name;";
const char* kSourceChars =
+ "part of library1_name;\n"
"external int foo();";
const char* kPatchChars =
"patch int foo() => 42;";
@@ -7515,6 +7517,7 @@
TEST_CASE(LazyLoadDeoptimizes) {
const char* kLoadFirst =
+ "library L;\n"
"start(a) {\n"
" var obj = (a == 1) ? createB() : new A();\n"
" for (int i = 0; i < 4000; i++) {\n"
@@ -7531,6 +7534,7 @@
" goo() => 2;\n"
"}\n";
const char* kLoadSecond =
+ "part of L;"
"class B extends A {\n"
" goo() => 1;\n"
"}\n";
« no previous file with comments | « runtime/vm/compiler_test.cc ('k') | runtime/vm/find_code_object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698