Chromium Code Reviews

Side by Side Diff: lib/src/runner/browser/browser_manager.dart

Issue 1384213003: Fix a type-o in browser_manager. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4
5 library test.runner.browser.browser_manager; 5 library test.runner.browser.browser_manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:async/async.dart'; 10 import 'package:async/async.dart';
(...skipping 236 matching lines...)
247 await _environment, 247 await _environment,
248 _deserializeEntries(suiteChannel, mapper, response["entries"]), 248 _deserializeEntries(suiteChannel, mapper, response["entries"]),
249 platform: _platform, 249 platform: _platform,
250 metadata: metadata, 250 metadata: metadata,
251 path: path, 251 path: path,
252 onClose: () => closeIframe()); 252 onClose: () => closeIframe());
253 } 253 }
254 254
255 /// Deserializes [entries] into concrete [SuiteEntry] subclasses. 255 /// Deserializes [entries] into concrete [SuiteEntry] subclasses.
256 Iterable<SuiteEntry> _deserializeEntries(MultiChannel suiteChannel, 256 Iterable<SuiteEntry> _deserializeEntries(MultiChannel suiteChannel,
257 Mapper mapper, List<Map> entries) { 257 StackTraceMapper mapper, List<Map> entries) {
258 return entries.map((entry) { 258 return entries.map((entry) {
259 var metadata = new Metadata.deserialize(entry['metadata']); 259 var metadata = new Metadata.deserialize(entry['metadata']);
260 if (entry['type'] == 'group') { 260 if (entry['type'] == 'group') {
261 return new Group( 261 return new Group(
262 entry['name'], 262 entry['name'],
263 metadata, 263 metadata,
264 _deserializeEntries(suiteChannel, mapper, entry['entries'])); 264 _deserializeEntries(suiteChannel, mapper, entry['entries']));
265 } else { 265 } else {
266 var testChannel = suiteChannel.virtualChannel(entry['channel']); 266 var testChannel = suiteChannel.virtualChannel(entry['channel']);
267 return new IframeTest(entry['name'], metadata, testChannel, 267 return new IframeTest(entry['name'], metadata, testChannel,
(...skipping 43 matching lines...)
311 311
312 final Uri observatoryUrl; 312 final Uri observatoryUrl;
313 313
314 final Uri remoteDebuggerUrl; 314 final Uri remoteDebuggerUrl;
315 315
316 _BrowserEnvironment(this._manager, this.observatoryUrl, 316 _BrowserEnvironment(this._manager, this.observatoryUrl,
317 this.remoteDebuggerUrl); 317 this.remoteDebuggerUrl);
318 318
319 CancelableFuture displayPause() => _manager._displayPause(); 319 CancelableFuture displayPause() => _manager._displayPause();
320 } 320 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine