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

Unified Diff: test/runner/pause_after_load_test.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 | « lib/src/utils.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/runner/pause_after_load_test.dart
diff --git a/test/runner/pause_after_load_test.dart b/test/runner/pause_after_load_test.dart
index 7b4f184da03065a52ae96194c90b5d95c4fd08e9..04a7481d1b3ac1749f76f8ffaf3779a9e1679903 100644
--- a/test/runner/pause_after_load_test.dart
+++ b/test/runner/pause_after_load_test.dart
@@ -41,9 +41,10 @@ void main() {
["--pause-after-load", "-p", "dartium", "test1.dart", "test2.dart"]);
test.stdout.expect(consumeThrough("loaded test 1!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
schedule(() async {
@@ -63,9 +64,10 @@ void main() {
test.stdout.expect(consumeThrough("loaded test 2!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
schedule(() async {
@@ -102,9 +104,10 @@ void main() {
["--pause-after-load", "-p", "dartium", "-p", "chrome", "test.dart"]);
test.stdout.expect(consumeThrough("loaded test!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
schedule(() async {
@@ -157,10 +160,10 @@ void main() {
""").create();
var test = runTest(
- ["--pause-after-load", "-p", "vm", "-p", "content-shell", "test.dart"]);
+ ["--pause-after-load", "-p", "vm", "-p", "phantomjs", "test.dart"]);
test.stderr.expect(
"Warning: Debugging is currently unsupported on the Dart VM and "
- "Dartium Content Shell.");
+ "PhantomJS.");
test.stdout.expect(consumeThrough(contains("+2: All tests passed!")));
test.shouldExit(0);
});
@@ -183,9 +186,10 @@ void main() {
test.stdout.expect(consumeThrough("loaded test!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
schedule(() async {
@@ -225,9 +229,10 @@ void main() {
var test = runTest(["--pause-after-load", "-p", "dartium", "test.dart"]);
test.stdout.expect(consumeThrough("loaded test!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
test.signal(ProcessSignal.SIGTERM);
@@ -250,9 +255,10 @@ void main() {
["--pause-after-load", "-p", "dartium", "-n", "success", "test.dart"]);
test.stdout.expect(consumeThrough("loaded test 1!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
schedule(() async {
@@ -291,9 +297,10 @@ void main() {
["--pause-after-load", "-p", "dartium", "-n", "success", "test.dart"]);
test.stdout.expect(consumeThrough("loaded test 1!"));
test.stdout.expect(consumeThrough(inOrder([
- "The test runner is paused. Open the dev console in Dartium and set "
- "breakpoints. Once you're",
- "finished, return to this terminal and press Enter."
+ startsWith("Observatory URL: "),
+ "The test runner is paused. Open the dev console in Dartium or the "
+ "Observatory and set breakpoints.",
+ "Once you're finished, return to this terminal and press Enter."
])));
schedule(() async {
« no previous file with comments | « lib/src/utils.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698