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

Side by Side Diff: dart/tools/testing/dart/browser_controller.dart

Issue 36913002: test.py: Sending JSON between test_controller.js <-> browser_controller (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/tests/html/html.status ('k') | dart/tools/testing/dart/browser_test.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library browser; 4 library browser;
5 5
6 import "dart:async"; 6 import "dart:async";
7 import "dart:convert" show LineSplitter, UTF8; 7 import "dart:convert" show LineSplitter, UTF8;
8 import "dart:core"; 8 import "dart:core";
9 import "dart:io"; 9 import "dart:io";
10 10
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 int id; 666 int id;
667 static int _idCounter = 0; 667 static int _idCounter = 0;
668 668
669 BrowserTest(this.url, this.doneCallback, this.timeout) { 669 BrowserTest(this.url, this.doneCallback, this.timeout) {
670 id = _idCounter++; 670 id = _idCounter++;
671 } 671 }
672 } 672 }
673 673
674 /* Describes the output of running the test in a browser */ 674 /* Describes the output of running the test in a browser */
675 class BrowserTestOutput { 675 class BrowserTestOutput {
676 final bool didTimeout;
677 final Duration delayUntilTestStarted; 676 final Duration delayUntilTestStarted;
678 final Duration duration; 677 final Duration duration;
678
679 final String lastKnownMessage;
680
679 final BrowserOutput browserOutput; 681 final BrowserOutput browserOutput;
680 final String dom; 682 final bool didTimeout;
681 683
682 BrowserTestOutput( 684 BrowserTestOutput(
683 this.delayUntilTestStarted, this.duration, this.dom, 685 this.delayUntilTestStarted, this.duration, this.lastKnownMessage,
684 this.browserOutput, {this.didTimeout: false}); 686 this.browserOutput, {this.didTimeout: false});
685 } 687 }
686 688
687 /** 689 /**
688 * Encapsulates all the functionality for running tests in browsers. 690 * Encapsulates all the functionality for running tests in browsers.
689 * The interface is rather simple. After starting, the runner tests 691 * The interface is rather simple. After starting, the runner tests
690 * are simply added to the queue and a the supplied callbacks are called 692 * are simply added to the queue and a the supplied callbacks are called
691 * whenever a test completes. 693 * whenever a test completes.
692 */ 694 */
693 class BrowserTestRunner { 695 class BrowserTestRunner {
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
1324 Dart test driver, number of tests: <div id="number"></div><br> 1326 Dart test driver, number of tests: <div id="number"></div><br>
1325 Currently executing: <div id="currently_executing"></div><br> 1327 Currently executing: <div id="currently_executing"></div><br>
1326 Unhandled error: <div id="unhandled_error"></div> 1328 Unhandled error: <div id="unhandled_error"></div>
1327 <iframe id="embedded_iframe"></iframe> 1329 <iframe id="embedded_iframe"></iframe>
1328 </body> 1330 </body>
1329 </html> 1331 </html>
1330 """; 1332 """;
1331 return driverContent; 1333 return driverContent;
1332 } 1334 }
1333 } 1335 }
OLDNEW
« no previous file with comments | « dart/tests/html/html.status ('k') | dart/tools/testing/dart/browser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698