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

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

Issue 16154017: Rename RuntimeError to CyclicIntializationError, as per spec. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bad merge in js_helper.dart Created 7 years, 6 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
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 "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_api_message.h" 10 #include "vm/dart_api_message.h"
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n" 913 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n"
914 " int fld1;\n" 914 " int fld1;\n"
915 " final int fld2;\n" 915 " final int fld2;\n"
916 " final int bigint_fld = 0xfffffffffff;\n" 916 " final int bigint_fld = 0xfffffffffff;\n"
917 " static int fld3;\n" 917 " static int fld3;\n"
918 " static const int smi_sfld = 10;\n" 918 " static const int smi_sfld = 10;\n"
919 " static const int bigint_sfld = 0xfffffffffff;\n" 919 " static const int bigint_sfld = 0xfffffffffff;\n"
920 "}\n" 920 "}\n"
921 "class Expect {\n" 921 "class Expect {\n"
922 " static void equals(x, y) {\n" 922 " static void equals(x, y) {\n"
923 " if (x != y) throw new RuntimeError('not equal');\n" 923 " if (x != y) throw new ArgumentError('not equal');\n"
924 " }\n" 924 " }\n"
925 "}\n" 925 "}\n"
926 "class FieldsTest {\n" 926 "class FieldsTest {\n"
927 " static Fields testMain() {\n" 927 " static Fields testMain() {\n"
928 " Expect.equals(true, Fields.bigint_sfld == 0xfffffffffff);\n" 928 " Expect.equals(true, Fields.bigint_sfld == 0xfffffffffff);\n"
929 " Fields obj = new Fields(10, 20);\n" 929 " Fields obj = new Fields(10, 20);\n"
930 " Expect.equals(true, obj.bigint_fld == 0xfffffffffff);\n" 930 " Expect.equals(true, obj.bigint_fld == 0xfffffffffff);\n"
931 " return obj;\n" 931 " return obj;\n"
932 " }\n" 932 " }\n"
933 "}\n"; 933 "}\n";
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
2488 result = Dart_RunLoop(); 2488 result = Dart_RunLoop();
2489 EXPECT(Dart_IsError(result)); 2489 EXPECT(Dart_IsError(result));
2490 EXPECT(Dart_ErrorHasException(result)); 2490 EXPECT(Dart_ErrorHasException(result));
2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", 2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n",
2492 Dart_GetError(result)); 2492 Dart_GetError(result));
2493 2493
2494 Dart_ExitScope(); 2494 Dart_ExitScope();
2495 } 2495 }
2496 2496
2497 } // namespace dart 2497 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698