blob: f4fc76ce52e4bb898141a6bcfea09def0c65a97d [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 factory HttpRequest()
/// General constructor for any type of request (GET, POST, etc).
/// @description Checks the state of newly created request.
import "dart:html";
import "../../../UtilsHtml/expect.dart";
main() {
var request = new HttpRequest();
Expect.equals(HttpRequest.UNSENT, request.readyState, "after creation");
}