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

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

Issue 1239693002: Pass actual TestPlatform and OperatingSystem values to Suite. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Update pubspec. 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 unified diff | Download patch
« no previous file with comments | « lib/src/runner/browser/iframe_listener.dart ('k') | lib/src/runner/browser/server.dart » ('j') | 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.iframe_test; 5 library test.runner.browser.iframe_test;
6 6
7 import '../../backend/live_test.dart'; 7 import '../../backend/live_test.dart';
8 import '../../backend/live_test_controller.dart'; 8 import '../../backend/live_test_controller.dart';
9 import '../../backend/metadata.dart'; 9 import '../../backend/metadata.dart';
10 import '../../backend/state.dart'; 10 import '../../backend/state.dart';
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // Ignore all future messages from the test and complete it immediately. 65 // Ignore all future messages from the test and complete it immediately.
66 // We don't need to tell it to run its tear-down because there's nothing a 66 // We don't need to tell it to run its tear-down because there's nothing a
67 // browser test needs to clean up on the file system anyway. 67 // browser test needs to clean up on the file system anyway.
68 testChannel.sink.close(); 68 testChannel.sink.close();
69 if (!controller.completer.isCompleted) controller.completer.complete(); 69 if (!controller.completer.isCompleted) controller.completer.complete();
70 }); 70 });
71 return controller.liveTest; 71 return controller.liveTest;
72 } 72 }
73 73
74 Test change({String name, Metadata metadata}) { 74 Test change({String name, Metadata metadata}) {
75 if (name == name && metadata == this.metadata) return this;
75 if (name == null) name = this.name; 76 if (name == null) name = this.name;
76 if (metadata == null) metadata = this.metadata; 77 if (metadata == null) metadata = this.metadata;
77 return new IframeTest(name, metadata, _channel); 78 return new IframeTest(name, metadata, _channel);
78 } 79 }
79 } 80 }
OLDNEW
« no previous file with comments | « lib/src/runner/browser/iframe_listener.dart ('k') | lib/src/runner/browser/server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698