Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-land "Support multiple shells in a single process. (#4932)" #4998

Merged
merged 3 commits into from
Apr 13, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
blah
  • Loading branch information
chinmaygarde committed Apr 13, 2018
commit 9b5fe660382905ba50793354da92d86f40b73d9a
20 changes: 14 additions & 6 deletions shell/testing/observatory/test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,20 @@ Future testStartPaused(Uri uri) async {
}

// Grab the isolate.
Map isolate = await serviceClient.invokeRPC('getIsolate', {
'isolateId': isolateId,
});
Expect.equals(isolate['type'], 'Isolate');
// Verify that it is paused at start.
Expect.isNotNull(isolate['pauseEvent']);
Map isolate;
while(true) {
isolate = await serviceClient.invokeRPC('getIsolate', {
'isolateId': isolateId,
});
Expect.equals(isolate['type'], 'Isolate');
// Verify that it is paused at start.
Expect.isNotNull(isolate['pauseEvent']);
if (isolate['pauseEvent']['kind'] != 'None') {
break;
}
}

Expect.isNotNull(isolate);
Expect.equals(isolate['pauseEvent']['kind'], 'PauseStart');

// Resume the isolate.
Expand Down