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

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

Issue 270503007: Eliminate unused url mapping parameter in dartutils (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/debugger_test.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // TODO(zra): Remove when tests are ready to enable. 5 // TODO(zra): Remove when tests are ready to enable.
6 #include "platform/globals.h" 6 #include "platform/globals.h"
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/class_finalizer.h" 10 #include "vm/class_finalizer.h"
(...skipping 3024 matching lines...) Expand 10 before | Expand all | Expand 10 after
3035 "main() {\n" 3035 "main() {\n"
3036 " (() => new MyClass())();\n" 3036 " (() => new MyClass())();\n"
3037 "}\n"; 3037 "}\n";
3038 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL); 3038 Dart_Handle lib = TestCase::LoadTestScript(kScriptChars, NULL);
3039 EXPECT_VALID(lib); 3039 EXPECT_VALID(lib);
3040 Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); 3040 Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL);
3041 EXPECT_ERROR( 3041 EXPECT_ERROR(
3042 result, 3042 result,
3043 "Unhandled exception:\n" 3043 "Unhandled exception:\n"
3044 "MyException\n" 3044 "MyException\n"
3045 "#0 baz (dart:test-lib:2:3)\n" 3045 "#0 baz (test-lib:2:3)\n"
3046 "#1 globalVar= (dart:test-lib:12:7)\n" 3046 "#1 _OtherClass._OtherClass._named (test-lib:7:8)\n"
3047 "#2 _bar (dart:test-lib:16:3)\n" 3047 "#2 globalVar= (test-lib:12:7)\n"
3048 "#3 MyClass.field (dart:test-lib:25:9)\n" 3048 "#3 _bar (test-lib:16:3)\n"
3049 "#4 MyClass.foo.fooHelper (dart:test-lib:30:7)\n" 3049 "#4 MyClass.field (test-lib:25:9)\n"
3050 "#5 MyClass.foo (dart:test-lib:32:14)\n" 3050 "#5 MyClass.foo.fooHelper (test-lib:30:7)\n"
3051 "#6 MyClass.MyClass.<anonymous closure> (dart:test-lib:21:15)\n" 3051 "#6 MyClass.foo (test-lib:32:14)\n"
3052 "#7 MyClass.MyClass (dart:test-lib:21:18)\n" 3052 "#7 MyClass.MyClass.<anonymous closure> (test-lib:21:15)\n"
3053 "#8 main.<anonymous closure> (dart:test-lib:37:14)\n" 3053 "#8 MyClass.MyClass (test-lib:21:18)\n"
3054 "#9 main (dart:test-lib:37:24)"); 3054 "#9 main.<anonymous closure> (test-lib:37:14)\n"
3055 "#10 main (test-lib:37:24)");
3055 } 3056 }
3056 3057
3057 3058
3058 TEST_CASE(WeakProperty_PreserveCrossGen) { 3059 TEST_CASE(WeakProperty_PreserveCrossGen) {
3059 Isolate* isolate = Isolate::Current(); 3060 Isolate* isolate = Isolate::Current();
3060 WeakProperty& weak = WeakProperty::Handle(); 3061 WeakProperty& weak = WeakProperty::Handle();
3061 { 3062 {
3062 // Weak property and value in new. Key in old. 3063 // Weak property and value in new. Key in old.
3063 HANDLESCOPE(isolate); 3064 HANDLESCOPE(isolate);
3064 String& key = String::Handle(); 3065 String& key = String::Handle();
(...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
4012 4013
4013 4014
4014 TEST_CASE(PrintJSON) { 4015 TEST_CASE(PrintJSON) {
4015 Heap* heap = Isolate::Current()->heap(); 4016 Heap* heap = Isolate::Current()->heap();
4016 heap->CollectAllGarbage(); 4017 heap->CollectAllGarbage();
4017 JSONTypeVerifier verifier; 4018 JSONTypeVerifier verifier;
4018 heap->IterateObjects(&verifier); 4019 heap->IterateObjects(&verifier);
4019 } 4020 }
4020 4021
4021 } // namespace dart 4022 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger_test.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698