| OLD | NEW |
| 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/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
| 8 #include "vm/thread.h" | 8 #include "vm/thread.h" |
| 9 #include "vm/unit_test.h" | 9 #include "vm/unit_test.h" |
| 10 | 10 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 Dart_SetStepInto(); | 390 Dart_SetStepInto(); |
| 391 } | 391 } |
| 392 | 392 |
| 393 | 393 |
| 394 TEST_CASE(Debug_StepInto) { | 394 TEST_CASE(Debug_StepInto) { |
| 395 const char* kScriptChars = | 395 const char* kScriptChars = |
| 396 "f1() { return 1; } \n" | 396 "f1() { return 1; } \n" |
| 397 "f2() { return 2; } \n" | 397 "f2() { return 2; } \n" |
| 398 " \n" | 398 " \n" |
| 399 "class X { \n" | 399 "class X { \n" |
| 400 " kvmk(a, [b, c]) { \n" | 400 " kvmk(a, {b, c}) { \n" |
| 401 " return c + f2(); \n" | 401 " return c + f2(); \n" |
| 402 " } \n" | 402 " } \n" |
| 403 "} \n" | 403 "} \n" |
| 404 " \n" | 404 " \n" |
| 405 "foo() { \n" | 405 "foo() { \n" |
| 406 " f1(); \n" | 406 " f1(); \n" |
| 407 " var o = new X(); \n" | 407 " var o = new X(); \n" |
| 408 " return o.kvmk(3, c:5); \n" | 408 " return o.kvmk(3, c:5); \n" |
| 409 "} \n" | 409 "} \n" |
| 410 " \n" | 410 " \n" |
| (...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1220 while (interrupt_isolate_id != ILLEGAL_ISOLATE_ID) { | 1220 while (interrupt_isolate_id != ILLEGAL_ISOLATE_ID) { |
| 1221 ml.Wait(); | 1221 ml.Wait(); |
| 1222 } | 1222 } |
| 1223 } | 1223 } |
| 1224 EXPECT(interrupt_isolate_id == ILLEGAL_ISOLATE_ID); | 1224 EXPECT(interrupt_isolate_id == ILLEGAL_ISOLATE_ID); |
| 1225 } | 1225 } |
| 1226 | 1226 |
| 1227 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). | 1227 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). |
| 1228 | 1228 |
| 1229 } // namespace dart | 1229 } // namespace dart |
| OLD | NEW |