blob: 385f8a757a8b66ec3e628d1eb6c457976ab45d59 [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.
/// @assertion final String readyState
/// Returns loading status of the document
/// MDN: Returns "loading" while the document is loading,
/// "interactive" once it is finished parsing but still loading sub-resources,
/// and "complete" once it has loaded.
/// @description Checks that readyState is at least "interactive".
import "dart:html";
import "../../../Utils/expect.dart";
main() {
var readyState = document.readyState;
Expect.isTrue(("interactive" == readyState) || ("complete" == readyState));
}