| OLD | NEW | 
|    1 // Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file |    1 // Copyright (c) 2013, 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. | 
 |    6 #include "platform/globals.h" | 
 |    7 #if !defined(TARGET_ARCH_ARM64) | 
 |    8  | 
|    5 #include "vm/debugger.h" |    9 #include "vm/debugger.h" | 
|    6 #include "vm/unit_test.h" |   10 #include "vm/unit_test.h" | 
|    7  |   11  | 
|    8 namespace dart { |   12 namespace dart { | 
|    9  |   13  | 
|   10 TEST_CASE(Debugger_PrintBreakpointsToJSONArray) { |   14 TEST_CASE(Debugger_PrintBreakpointsToJSONArray) { | 
|   11   const char* kScriptChars = |   15   const char* kScriptChars = | 
|   12       "main() {\n" |   16       "main() {\n" | 
|   13       "  var x = new StringBuffer();\n" |   17       "  var x = new StringBuffer();\n" | 
|   14       "  x.add('won');\n" |   18       "  x.add('won');\n" | 
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   97   // Set a breakpoint and run. |  101   // Set a breakpoint and run. | 
|   98   debugger->SetBreakpointAtLine(url, 2); |  102   debugger->SetBreakpointAtLine(url, 2); | 
|   99   Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); |  103   Dart_Handle result = Dart_Invoke(lib, NewString("main"), 0, NULL); | 
|  100   EXPECT_VALID(result); |  104   EXPECT_VALID(result); | 
|  101   EXPECT(Dart_IsString(result)); |  105   EXPECT(Dart_IsString(result)); | 
|  102  |  106  | 
|  103   // We ran the code in InspectPausedEvent. |  107   // We ran the code in InspectPausedEvent. | 
|  104   EXPECT(saw_paused_event); |  108   EXPECT(saw_paused_event); | 
|  105 } |  109 } | 
|  106  |  110  | 
 |  111 }  // namespace dart | 
|  107  |  112  | 
|  108  |  113 #endif  // !defined(TARGET_ARCH_ARM64) | 
|  109 }  // namespace dart |  | 
| OLD | NEW |