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

Side by Side Diff: runtime/vm/debugger_api_impl_test.cc

Issue 730543002: Remove use of IterableMixinWorkaround from _List, _ImmutableList and _GrowableList. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed comments Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "include/dart_mirrors_api.h" 6 #include "include/dart_mirrors_api.h"
7 #include "platform/assert.h" 7 #include "platform/assert.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/lockers.h" 9 #include "vm/lockers.h"
10 #include "vm/unit_test.h" 10 #include "vm/unit_test.h"
(...skipping 2238 matching lines...) Expand 10 before | Expand all | Expand 10 after
2249 result = Dart_Invoke(lib, NewString("testMain"), 0, NULL); 2249 result = Dart_Invoke(lib, NewString("testMain"), 0, NULL);
2250 EXPECT_VALID(result); 2250 EXPECT_VALID(result);
2251 2251
2252 // First ensure that the returned object is a list. 2252 // First ensure that the returned object is a list.
2253 Dart_Handle list_access_test_obj = result; 2253 Dart_Handle list_access_test_obj = result;
2254 EXPECT(Dart_IsList(list_access_test_obj)); 2254 EXPECT(Dart_IsList(list_access_test_obj));
2255 2255
2256 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); 2256 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj);
2257 Dart_Handle super_type = Dart_GetSupertype(list_type); 2257 Dart_Handle super_type = Dart_GetSupertype(list_type);
2258 EXPECT(!Dart_IsError(super_type)); 2258 EXPECT(!Dart_IsError(super_type));
2259 super_type = Dart_GetSupertype(super_type);
2260 EXPECT(!Dart_IsError(super_type));
2261 EXPECT(super_type == Dart_Null());
2262 } 2259 }
2263 2260
2264 TEST_CASE(Debug_ScriptGetTokenInfo_Basic) { 2261 TEST_CASE(Debug_ScriptGetTokenInfo_Basic) {
2265 const char* kScriptChars = 2262 const char* kScriptChars =
2266 "var foo;\n" 2263 "var foo;\n"
2267 "\n" 2264 "\n"
2268 "main() {\n" 2265 "main() {\n"
2269 "}"; 2266 "}";
2270 2267
2271 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); 2268 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2315 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13," 2312 " null, 3, 7, 1, 8, 6, 9, 10, 10, 11, 11, 13,"
2316 " null, 4, 13, 3, 14, 10," 2313 " null, 4, 13, 3, 14, 10,"
2317 " null, 5, 17, 5, 18, 9, 19, 12," 2314 " null, 5, 17, 5, 18, 9, 19, 12,"
2318 " null, 6, 21, 1," 2315 " null, 6, 21, 1,"
2319 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8," 2316 " null, 8, 24, 1, 25, 5, 26, 6, 27, 8,"
2320 " null, 9, 29, 1]", 2317 " null, 9, 29, 1]",
2321 tokens_cstr); 2318 tokens_cstr);
2322 } 2319 }
2323 2320
2324 } // namespace dart 2321 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698