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

Unified Diff: dart/tests/try/end_to_end_test.dart

Issue 355953004: Change end_to_end_test so it doesn't time out due to V8 bug. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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 | « dart/site/try/src/interaction_manager.dart ('k') | dart/tests/try/try.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/try/end_to_end_test.dart
diff --git a/dart/tests/try/end_to_end_test.dart b/dart/tests/try/end_to_end_test.dart
index ae2d14e85f1d59cab1fc2a5a7f2084a8aadb1a51..22e45733e13d6ed84f6fc7b905ffe2156ce57b00 100644
--- a/dart/tests/try/end_to_end_test.dart
+++ b/dart/tests/try/end_to_end_test.dart
@@ -71,14 +71,27 @@ void onIframeLoaded(Event event) {
void main() {
asyncStart();
window.onMessage.listen((MessageEvent e) {
- if (e.data == 'Hello, World!\n') {
- // Clear the DOM to work around a bug in test.dart.
- document.body.nodes.clear();
+ switch (e.data) {
+ case 'Hello, World!\n':
+ // Clear the DOM to work around a bug in test.dart.
+ document.body.nodes.clear();
- // Clean up after ourselves.
- window.localStorage.clear();
+ // Clean up after ourselves.
+ window.localStorage.clear();
- asyncEnd();
+ asyncEnd();
+ break;
+
+ case 'dart-calling-main':
+ case 'dart-main-done':
+ case 'unittest-suite-done':
+ case 'unittest-suite-fail':
+ case 'unittest-suite-success':
+ case 'unittest-suite-wait-for-done':
+ break;
+
+ default:
+ throw 'Unexpected message: ${e.data}';
}
});
« no previous file with comments | « dart/site/try/src/interaction_manager.dart ('k') | dart/tests/try/try.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698