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

Unified Diff: lib/src/backend/test_platform.dart

Issue 1258363003: Expose the Observatory URL when debugging. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 4 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 | « no previous file | lib/src/runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/test_platform.dart
diff --git a/lib/src/backend/test_platform.dart b/lib/src/backend/test_platform.dart
index e304821a3f82829a21cd383451ceafb2c39be3ae..731bbd5ee68453f498eb805aee42aeea1c2a7e43 100644
--- a/lib/src/backend/test_platform.dart
+++ b/lib/src/backend/test_platform.dart
@@ -21,7 +21,7 @@ class TestPlatform {
/// Dartium content shell.
static const TestPlatform contentShell = const TestPlatform._(
"Dartium Content Shell", "content-shell",
- isBrowser: true, isBlink: true, isDartVM: true);
+ isBrowser: true, isBlink: true, isDartVM: true, isHeadless: true);
/// Google Chrome.
static const TestPlatform chrome = const TestPlatform._("Chrome", "chrome",
@@ -30,7 +30,7 @@ class TestPlatform {
/// PhantomJS.
static const TestPlatform phantomJS = const TestPlatform._(
"PhantomJS", "phantomjs",
- isBrowser: true, isJS: true, isBlink: true);
+ isBrowser: true, isJS: true, isBlink: true, isHeadless: true);
/// Mozilla Firefox.
static const TestPlatform firefox = const TestPlatform._("Firefox", "firefox",
@@ -82,8 +82,12 @@ class TestPlatform {
/// Whether this platform uses the Blink rendering engine.
final bool isBlink;
+ /// Whether this platform has no visible window.
+ final bool isHeadless;
+
const TestPlatform._(this.name, this.identifier, {this.isDartVM: false,
- this.isBrowser: false, this.isJS: false, this.isBlink: false});
+ this.isBrowser: false, this.isJS: false, this.isBlink: false,
+ this.isHeadless: false});
String toString() => name;
}
« no previous file with comments | « no previous file | lib/src/runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698