Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/window-aliases.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Aliases of the window object</title> 3 <title>Aliases of the window object</title>
4 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> 4 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window">
6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-frames"> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-frames">
7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-self"> 7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-self">
8 <script src="../../../../../resources/testharness.js"></script> 8 <script src="../../../../../resources/testharness.js"></script>
9 <script src="../../../../../resources/testharnessreport.js"></script> 9 <script src="../../../../../resources/testharnessreport.js"></script>
10 <div id=log></div> 10 <div id=log></div>
11 <script> 11 <script>
12 var global = this; 12 var global = this;
13 13
14 test(function() { 14 test(function() {
15 assert_equals(window, global); 15 assert_equals(window, global);
16 assert_equals(window.window, global); 16 assert_equals(window.window, global);
17 }, "window should be the global object"); 17 }, "window should be the global object");
18 18
19 test(function() { 19 test(function() {
20 assert_equals(frames, global); 20 assert_equals(frames, global);
21 assert_equals(window.frames, global); 21 assert_equals(window.frames, global);
22 }, "frames should be the global object"); 22 }, "frames should be the global object");
23 23
24 test(function() { 24 test(function() {
25 assert_equals(self, global); 25 assert_equals(self, global);
26 assert_equals(window.self, global); 26 assert_equals(window.self, global);
27 }, "self should be the global object"); 27 }, "self should be the global object");
28 </script> 28 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698