OLD | NEW |
---|---|
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, JSON; | 7 import "dart:convert" show LineSplitter, UTF8, JSON; |
8 import "dart:core"; | 8 import "dart:core"; |
9 import "dart:io"; | 9 import "dart:io"; |
10 import "dart:math" show max, min; | 10 import "dart:math" show max, min; |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
760 }; | 760 }; |
761 var args = [ | 761 var args = [ |
762 "-profile", | 762 "-profile", |
763 "${userDir.path}", | 763 "${userDir.path}", |
764 "-no-remote", | 764 "-no-remote", |
765 "-new-instance", | 765 "-new-instance", |
766 url | 766 url |
767 ]; | 767 ]; |
768 var environment = new Map<String, String>.from(Platform.environment); | 768 var environment = new Map<String, String>.from(Platform.environment); |
769 environment["MOZ_CRASHREPORTER_DISABLE"] = "1"; | 769 environment["MOZ_CRASHREPORTER_DISABLE"] = "1"; |
770 return startBrowserProcess(_binary, args, environment: environment); | 770 // TODO(26060): Remove delay when dart2js stops hanging under load. |
771 return new Future.delayed(new Duration(seconds: 10)).then((_) { | |
Siggi Cherem (dart-lang)
2016/04/25 18:21:41
since this is only causing issues in windows, can
Bill Hesse
2016/04/26 19:25:08
We only test on linux and windows, and this delay
| |
772 return startBrowserProcess(_binary, args, environment: environment); | |
773 }); | |
771 }); | 774 }); |
772 }).catchError((e) { | 775 }).catchError((e) { |
773 _logEvent("Running $_binary --version failed with $e"); | 776 _logEvent("Running $_binary --version failed with $e"); |
774 return false; | 777 return false; |
775 }); | 778 }); |
776 } | 779 } |
777 | 780 |
778 String toString() => "Firefox"; | 781 String toString() => "Firefox"; |
779 } | 782 } |
780 | 783 |
(...skipping 1001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1782 </div> | 1785 </div> |
1783 <div id="embedded_iframe_div" class="test box"> | 1786 <div id="embedded_iframe_div" class="test box"> |
1784 <iframe style="width:100%;height:100%;" id="embedded_iframe"></iframe> | 1787 <iframe style="width:100%;height:100%;" id="embedded_iframe"></iframe> |
1785 </div> | 1788 </div> |
1786 </body> | 1789 </body> |
1787 </html> | 1790 </html> |
1788 """; | 1791 """; |
1789 return driverContent; | 1792 return driverContent; |
1790 } | 1793 } |
1791 } | 1794 } |
OLD | NEW |