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

Unified Diff: pkg/intl/test/date_time_format_http_request_test.dart

Issue 11800002: "Reverting 16675-16676, 71-73" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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
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 fc8774b221fe052cf5a27be24cdcfa0f029de560..fb147b44097fc1f2bb7a777219bac7e9ea285275 100644
--- a/pkg/intl/test/date_time_format_http_request_test.dart
+++ b/pkg/intl/test/date_time_format_http_request_test.dart
@@ -9,18 +9,15 @@
library date_time_format_http_request_test;
-import 'package:intl/intl.dart';
-import 'package:intl/date_symbol_data_http_request.dart';
+import '../lib/intl.dart';
+import '../lib/date_symbol_data_http_request.dart';
import 'date_time_format_test_core.dart';
import 'dart:html';
-import 'package:unittest/unittest.dart';
-import 'package:unittest/html_config.dart';
+import '../../../pkg/unittest/lib/unittest.dart';
-var url = '';
+var url = "http://localhost:9876/pkg/intl/lib/src/data/dates/";
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));});
@@ -32,5 +29,11 @@ void runEverything(_) {
(locale) => initializeDateFormatting(locale, url));
Futures.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, (_) {});
}
« no previous file with comments | « pkg/intl/test/date_time_format_file_test_stub.dart ('k') | pkg/intl/test/date_time_format_local_test_stub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698