| Index: pkg/intl/test/date_time_format_http_request_test.dart
|
| diff --git a/pkg/intl/test/date_time_format_http_request_test.dart b/pkg/intl/test/date_time_format_http_request_test.dart
|
| index 7d75a6349917d6563f3d5dc06cec2c6fb503f722..e74448d9ae1766fac94012c7dcbc921bf01b6392 100644
|
| --- a/pkg/intl/test/date_time_format_http_request_test.dart
|
| +++ b/pkg/intl/test/date_time_format_http_request_test.dart
|
| @@ -10,15 +10,18 @@
|
| library date_time_format_http_request_test;
|
|
|
| import 'dart:async';
|
| -import '../lib/intl.dart';
|
| -import '../lib/date_symbol_data_http_request.dart';
|
| +import 'package:intl/intl.dart';
|
| +import 'package:intl/date_symbol_data_http_request.dart';
|
| import 'date_time_format_test_core.dart';
|
| import 'dart:html';
|
| -import '../../../pkg/unittest/lib/unittest.dart';
|
| +import 'package:unittest/unittest.dart';
|
| +import 'package:unittest/html_config.dart';
|
|
|
| -var url = "http://localhost:9876/pkg/intl/lib/src/data/dates/";
|
| +var url = '';
|
|
|
| main() {
|
| + useHtmlConfiguration();
|
| + url = "http://localhost:${window.location.port}/pkg/intl/lib/src/data/dates/";
|
| // Initialize one locale just so we know what the list is.
|
| test('Run everything', () {
|
| initializeDateFormatting("en_US", url).then(expectAsync1(runEverything));});
|
| @@ -31,11 +34,5 @@ void runEverything(_) {
|
| .toList();
|
| Future.wait(futures).then(expectAsync1((_) {
|
| runDateTests(smallSetOfLocales());
|
| - shutDown();}));
|
| -}
|
| -
|
| -void shutDown() {
|
| - // The tiny web server knows to use this request as a cue to terminate.
|
| - var source = '${url}terminate';
|
| - var request = new HttpRequest.get(source, (_) {});
|
| + }));
|
| }
|
|
|