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

Side by Side Diff: runtime/observatory/tests/service/debugger_location_test.dart

Issue 1312763010: Support column-based breakpoints in the VM and Observatory. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: hausner review Created 5 years, 3 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 // VMOptions=--error_on_bad_type --error_on_bad_override 4 // VMOptions=--error_on_bad_type --error_on_bad_override
5 5
6 import 'package:observatory/service_io.dart'; 6 import 'package:observatory/service_io.dart';
7 import 'package:observatory/debugger.dart'; 7 import 'package:observatory/debugger.dart';
8 import 'package:unittest/unittest.dart'; 8 import 'package:unittest/unittest.dart';
9 import 'test_helper.dart'; 9 import 'test_helper.dart';
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 var tests = [ 53 var tests = [
54 54
55 hasStoppedAtBreakpoint, 55 hasStoppedAtBreakpoint,
56 56
57 // Parse '' => current position 57 // Parse '' => current position
58 (Isolate isolate) { 58 (Isolate isolate) {
59 return initDebugger(isolate).then((debugger) { 59 return initDebugger(isolate).then((debugger) {
60 return DebuggerLocation.parse(debugger, '').then((DebuggerLocation loc) { 60 return DebuggerLocation.parse(debugger, '').then((DebuggerLocation loc) {
61 expect(loc.valid, isTrue); 61 expect(loc.valid, isTrue);
62 expect(loc.toString(), equals('debugger_location_test.dart:17')); 62 expect(loc.toString(), equals('debugger_location_test.dart:17:5'));
63 }); 63 });
64 }); 64 });
65 }, 65 },
66 66
67 // Parse line 67 // Parse line
68 (Isolate isolate) { 68 (Isolate isolate) {
69 return initDebugger(isolate).then((debugger) { 69 return initDebugger(isolate).then((debugger) {
70 return DebuggerLocation.parse(debugger, '18').then((DebuggerLocation loc) { 70 return DebuggerLocation.parse(debugger, '18').then((DebuggerLocation loc) {
71 expect(loc.valid, isTrue); 71 expect(loc.valid, isTrue);
72 expect(loc.toString(), equals('debugger_location_test.dart:18')); 72 expect(loc.toString(), equals('debugger_location_test.dart:18'));
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 return DebuggerLocation.complete(debugger, 'DebuggerLocationTestFoo.q') 256 return DebuggerLocation.complete(debugger, 'DebuggerLocationTestFoo.q')
257 .then((List<String> completions) { 257 .then((List<String> completions) {
258 expect(completions.toString(), equals('[]')); 258 expect(completions.toString(), equals('[]'));
259 }); 259 });
260 }); 260 });
261 }, 261 },
262 262
263 ]; 263 ];
264 264
265 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction); 265 main(args) => runIsolateTests(args, tests, testeeConcurrent: testFunction);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698