blob: a3207b47ee99ea4eb53dd50fd8bcdcee7b1e9b3e [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.
* @description This test checks that Page Visibility state values are correct
* when a document has no defaultView.
import "dart:html";
import "../../testcommon.dart";
import "../../../Utils/async_utils.dart";
main() {
var subdocument = document.implementation.createDocument('', 'html', null);
//shouldBeTrue(subdocument.defaultView == null);
shouldBeEqualToString(subdocument.visibilityState, "hidden");