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

Unified Diff: dart/tools/testing/dart/test_runner.dart

Issue 77763004: Implement a periodic timer which sends the current state of a browser test back to the browser cont… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 | « dart/tools/testing/dart/test_controller.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_runner.dart
diff --git a/dart/tools/testing/dart/test_runner.dart b/dart/tools/testing/dart/test_runner.dart
index 528cccae277fa384d4ac535860380a18e5863d2e..34346289161501adffe8a467f8ea6de3bdd88444 100644
--- a/dart/tools/testing/dart/test_runner.dart
+++ b/dart/tools/testing/dart/test_runner.dart
@@ -888,9 +888,7 @@ class BrowserTestJsonResult {
final String htmlDom;
final List events;
- BrowserTestJsonResult(this.outcome,
- this.htmlDom,
- this.events);
+ BrowserTestJsonResult(this.outcome, this.htmlDom, this.events);
static BrowserTestJsonResult parseFromString(String content) {
void validate(String assertion, bool value) {
@@ -928,8 +926,13 @@ class BrowserTestJsonResult {
validate("The message must have exactly one 'dom' entry.",
messagesByType['dom'].length == 1);
+ var dom = messagesByType['dom'][0];
+ if (dom.endsWith('\n')) {
+ dom = '$dom\n';
+ }
+
return new BrowserTestJsonResult(
- _getOutcome(messagesByType), messagesByType['dom'][0], events);
+ _getOutcome(messagesByType), dom, events);
}
} catch(error) {
// If something goes wrong, we know the content was not in the correct
« no previous file with comments | « dart/tools/testing/dart/test_controller.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698