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

Unified Diff: vm/snapshot_test.cc

Issue 11412048: Change the library directive syntax in the VM unit tests, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: 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
« no previous file with comments | « vm/isolate_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot_test.cc
===================================================================
--- vm/snapshot_test.cc (revision 14923)
+++ vm/snapshot_test.cc (working copy)
@@ -1030,7 +1030,7 @@
UNIT_TEST_CASE(ScriptSnapshot) {
const char* kLibScriptChars =
- "#library('dart:import-lib');"
+ "library dart_import_lib;"
"class LibFields {"
" LibFields(int i, int j) : fld1 = i, fld2 = j {}"
" int fld1;"
@@ -1095,7 +1095,7 @@
Dart_EnterScope(); // Start a Dart API scope for invoking API functions.
// Load the library.
- Dart_Handle import_lib = Dart_LoadLibrary(NewString("dart:import-lib"),
+ Dart_Handle import_lib = Dart_LoadLibrary(NewString("dart_import_lib"),
NewString(kLibScriptChars));
EXPECT_VALID(import_lib);
@@ -1701,7 +1701,7 @@
UNIT_TEST_CASE(DartGeneratedListMessagesWithBackref) {
const int kArrayLength = 10;
static const char* kScriptChars =
- "#import('dart:scalarlist');\n"
+ "import 'dart:scalarlist';\n"
"final int kArrayLength = 10;\n"
"getStringList() {\n"
" var s = 'Hello, world!';\n"
@@ -1872,7 +1872,7 @@
UNIT_TEST_CASE(DartGeneratedArrayLiteralMessagesWithBackref) {
const int kArrayLength = 10;
static const char* kScriptChars =
- "#import('dart:scalarlist');\n"
+ "import 'dart:scalarlist';\n"
"final int kArrayLength = 10;\n"
"getStringList() {\n"
" var s = 'Hello, world!';\n"
@@ -2048,7 +2048,7 @@
// Create a native port for posting from C to Dart
TestIsolateScope __test_isolate__;
const char* kScriptChars =
- "#import('dart:isolate');\n"
+ "import 'dart:isolate';\n"
"main() {\n"
" var messageCount = 0;\n"
" var exception = '';\n"
« no previous file with comments | « vm/isolate_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698