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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/browsers/the-window-object/window-indexed-properties-strict.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>Indexed properties of the window object (strict mode)</title> 3 <title>Indexed properties of the window object (strict mode)</title>
4 <link rel="author" title="Ms2ger" href="ms2ger@gmail.com"> 4 <link rel="author" title="Ms2ger" href="ms2ger@gmail.com">
5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#window"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/#window">
6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window-item"> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-window-item">
7 <link rel="help" href="https://heycam.github.io/webidl/#getownproperty"> 7 <link rel="help" href="https://heycam.github.io/webidl/#getownproperty">
8 <link rel="help" href="https://heycam.github.io/webidl/#defineownproperty"> 8 <link rel="help" href="https://heycam.github.io/webidl/#defineownproperty">
9 <script src="../../../../../resources/testharness.js"></script> 9 <script src="../../../../../resources/testharness.js"></script>
10 <script src="../../../../../resources/testharnessreport.js"></script> 10 <script src="../../../../../resources/testharnessreport.js"></script>
(...skipping 23 matching lines...) Expand all
34 assert_equals(window[1], undefined); 34 assert_equals(window[1], undefined);
35 }); 35 });
36 test(function() { 36 test(function() {
37 "use strict"; 37 "use strict";
38 var proto = Window.prototype; 38 var proto = Window.prototype;
39 [-1, 0, 1].forEach(function(idx) { 39 [-1, 0, 1].forEach(function(idx) {
40 assert_false(idx in proto, idx + " in proto"); 40 assert_false(idx in proto, idx + " in proto");
41 }); 41 });
42 }); 42 });
43 </script> 43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698