testing/web-platform/tests/html/browsers/the-window-object/window-aliases.html
author Tyler Kabaker <kabakert@msu.edu>
Sun, 16 Jan 2022 21:09:07 +0000
changeset 604640 fd384d84f3d05d364a74fa6967e416767c8e8759
parent 216659 f642698590301f923237de6d2479429096b61edd
permissions -rw-r--r--
Bug 1747402 - Added check for when time value is less than zero in getFormattedTimeStatus. r=mtigley Differential Revision: https://phabricator.services.mozilla.com/D136065

<!doctype html>
<meta charset=utf-8>
<title>Aliases of the window object</title>
<link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-frames">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-self">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id=log></div>
<script>
var global = this;

test(function() {
  assert_equals(window, global);
  assert_equals(window.window, global);
}, "window should be the global object");

test(function() {
  assert_equals(frames, global);
  assert_equals(window.frames, global);
}, "frames should be the global object");

test(function() {
  assert_equals(self, global);
  assert_equals(window.self, global);
}, "self should be the global object");
</script>