Skip to content

Commit 69841d6

Browse files
committed
add test for HttpRequest load event
1 parent 47c7b63 commit 69841d6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/src/html/api/networking_http_request.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ void _testHttpRequest() {
125125
expect(onTimeout.eventsDispatched, 0);
126126
}, timeout: Timeout(Duration(seconds: 5)));
127127

128+
test('GET, using getString', () async {
129+
String testResponse = await HttpRequest.getString('http://localhost:$_httpServerPort/http_request/ok');
130+
expect(testResponse, 'hello');
131+
}, timeout: Timeout(Duration(seconds: 5)));
132+
128133
test('Failing request', () async {
129134
//
130135
// Declare HttpRequest

0 commit comments

Comments
 (0)