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

Unified Diff: vm/dart_api_impl_test.cc

Issue 9447041: Allow Dart_Null to be passed in for the import map in Dart_LoadLibrary and Dart_LoadScript. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 | « vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_impl_test.cc
===================================================================
--- vm/dart_api_impl_test.cc (revision 4552)
+++ vm/dart_api_impl_test.cc (working copy)
@@ -2799,8 +2799,7 @@
"#library('library1_name');";
Dart_Handle url = Dart_NewString("library1_url");
Dart_Handle source = Dart_NewString(kLibrary1Chars);
- Dart_Handle import_map = Dart_NewList(0);
- Dart_Handle lib = Dart_LoadLibrary(url, source, import_map);
+ Dart_Handle lib = Dart_LoadLibrary(url, source, Dart_Null());
Dart_Handle error = Dart_Error("incoming error");
EXPECT_VALID(lib);
@@ -3174,16 +3173,15 @@
// Create a test library and Load up a test script in it.
Dart_Handle url = Dart_NewString(TestCase::url());
Dart_Handle source = Dart_NewString(kScriptChars);
- Dart_Handle import_map = Dart_NewList(0);
- result = Dart_LoadScript(url, source, library_handler, import_map);
+ result = Dart_LoadScript(url, source, library_handler, Dart_Null());
url = Dart_NewString("library1.dart");
source = Dart_NewString(kLibrary1Chars);
- Dart_LoadLibrary(url, source, import_map);
+ Dart_LoadLibrary(url, source, Dart_Null());
url = Dart_NewString("library2.dart");
source = Dart_NewString(kLibrary2Chars);
- Dart_LoadLibrary(url, source, import_map);
+ Dart_LoadLibrary(url, source, Dart_Null());
result = Dart_InvokeStatic(result,
Dart_NewString(""),
« no previous file with comments | « vm/dart_api_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698