OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:shelf/shelf.dart' as shelf; | 7 import 'package:shelf/shelf.dart' as shelf; |
8 import 'package:unittest/src/util/one_off_handler.dart'; | 8 import 'package:unittest/src/util/one_off_handler.dart'; |
9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 expect(response.readAsString(), completion(equals("one"))); | 75 expect(response.readAsString(), completion(equals("one"))); |
76 | 76 |
77 request = new shelf.Request("GET", Uri.parse("http://localhost/$path3")); | 77 request = new shelf.Request("GET", Uri.parse("http://localhost/$path3")); |
78 return _handle(request); | 78 return _handle(request); |
79 }).then((response) { | 79 }).then((response) { |
80 expect(response.statusCode, equals(200)); | 80 expect(response.statusCode, equals(200)); |
81 expect(response.readAsString(), completion(equals("three"))); | 81 expect(response.readAsString(), completion(equals("three"))); |
82 }); | 82 }); |
83 }); | 83 }); |
84 } | 84 } |
OLD | NEW |