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

Unified Diff: runtime/observatory/tests/service/async_scope_test.dart

Issue 1267033002: Make Observatory analyzer clean (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/observatory/tests/service/async_next_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/observatory/tests/service/async_scope_test.dart
diff --git a/runtime/observatory/tests/service/async_scope_test.dart b/runtime/observatory/tests/service/async_scope_test.dart
index 3150b504e88dce432521d922b8ecdb2dc3c3cfc8..981ea260cee785a234922935aa64c1dbe4bdfc16 100644
--- a/runtime/observatory/tests/service/async_scope_test.dart
+++ b/runtime/observatory/tests/service/async_scope_test.dart
@@ -3,7 +3,6 @@
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--compile_all --error_on_bad_type --error_on_bad_override
-import 'dart:async';
import 'dart:developer';
import 'package:observatory/service_io.dart';
import 'package:unittest/unittest.dart';
@@ -13,14 +12,14 @@ foo() {}
doAsync(param1) async {
var local1 = param1 + 1;
- foo(); // Line 16
- await null;
+ foo(); // Line 15
+ await local1;
}
doAsyncStar(param2) async* {
var local2 = param2 + 1;
- foo(); // Line 22
- yield null;
+ foo(); // Line 21
+ yield local2;
}
testeeDo() {
@@ -54,17 +53,17 @@ checkAsyncStarVarDescriptors(Isolate isolate) async {
var tests = [
hasStoppedAtBreakpoint, // debugger()
- setBreakpointAtLine(16),
- setBreakpointAtLine(22),
+ setBreakpointAtLine(15),
+ setBreakpointAtLine(21),
resumeIsolate,
hasStoppedAtBreakpoint,
- stoppedAtLine(16),
+ stoppedAtLine(15),
checkAsyncVarDescriptors,
resumeIsolate,
hasStoppedAtBreakpoint,
- stoppedAtLine(22),
+ stoppedAtLine(21),
checkAsyncStarVarDescriptors,
resumeIsolate,
];
« no previous file with comments | « runtime/observatory/tests/service/async_next_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698