blob: 6ac955961d4fbec03414e21de15ed9bc881a3c47 [file] [log] [blame]
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// @dart = 2.9
/// @assertion ffinal String statusText
/// The request response string (such as \"200 OK\").
/// @description Checks that status text is "200 OK" for successful request.
import "dart:html";
import "dart:async";
import "../../../UtilsHtml/expect.dart";
main() {
Future<HttpRequest> f = HttpRequest.request("test.dart");
f.then((HttpRequest r) {
Expect.equals("200 OK", r.statusText);