mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
|
@ -0,0 +1,28 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue