| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
| 3 <title>Properties of the window object</title> | 3 <title>Properties 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="http://ecma-international.org/ecma-262/5.1/#sec-15.1"> | 5 <link rel="help" href="http://ecma-international.org/ecma-262/5.1/#sec-15.1"> |
| 6 <link rel="help" href="https://heycam.github.io/webidl/#interface-prototype-obje
ct"> | 6 <link rel="help" href="https://heycam.github.io/webidl/#interface-prototype-obje
ct"> |
| 7 <link rel="help" href="https://heycam.github.io/webidl/#es-attributes"> | 7 <link rel="help" href="https://heycam.github.io/webidl/#es-attributes"> |
| 8 <link rel="help" href="https://heycam.github.io/webidl/#es-operations"> | 8 <link rel="help" href="https://heycam.github.io/webidl/#es-operations"> |
| 9 <link rel="help" href="https://dom.spec.whatwg.org/#eventtarget"> | 9 <link rel="help" href="https://dom.spec.whatwg.org/#eventtarget"> |
| 10 <link rel="help" href="https://html.spec.whatwg.org/multipage/#window"> | 10 <link rel="help" href="https://html.spec.whatwg.org/multipage/#window"> |
| 11 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowtimers"> | 11 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowtimers"> |
| 12 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowbase64"> | 12 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowbase64"> |
| 13 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowsessionstor
age"> | 13 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowsessionstor
age"> |
| 14 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowlocalstorag
e"> | 14 <link rel="help" href="https://html.spec.whatwg.org/multipage/#windowlocalstorag
e"> |
| 15 <link rel="help" href="https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#
dom-window-getselection"> | 15 <link rel="help" href="https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#
dom-window-getselection"> |
| 16 <link rel="help" href="http://dev.w3.org/csswg/cssom/#widl-def-Window"> | 16 <link rel="help" href="http://dev.w3.org/csswg/cssom/#widl-def-Window"> |
| 17 <link rel="help" href="http://dev.w3.org/csswg/cssom-view/#widl-def-Window"> | 17 <link rel="help" href="http://dev.w3.org/csswg/cssom-view/#widl-def-Window"> |
| 18 <script src="../../../../../resources/testharness.js"></script> | 18 <script src="/resources/testharness.js"></script> |
| 19 <script src="../../../../../resources/testharnessreport.js"></script> | 19 <script src="/resources/testharnessreport.js"></script> |
| 20 <div id=log></div> | 20 <div id=log></div> |
| 21 <script> | 21 <script> |
| 22 function assert_data_propdesc(pd, Writable, Enumerable, Configurable) { | 22 function assert_data_propdesc(pd, Writable, Enumerable, Configurable) { |
| 23 assert_equals(typeof pd, "object"); | 23 assert_equals(typeof pd, "object"); |
| 24 assert_equals(pd.writable, Writable); | 24 assert_equals(pd.writable, Writable); |
| 25 assert_equals(pd.enumerable, Enumerable); | 25 assert_equals(pd.enumerable, Enumerable); |
| 26 assert_equals(pd.configurable, Configurable); | 26 assert_equals(pd.configurable, Configurable); |
| 27 } | 27 } |
| 28 function assert_accessor_propdesc(pd, hasSetter, Enumerable, Configurable) { | 28 function assert_accessor_propdesc(pd, hasSetter, Enumerable, Configurable) { |
| 29 assert_equals(typeof pd, "object"); | 29 assert_equals(typeof pd, "object"); |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 }, "Window replaceable attribute: " + id); | 313 }, "Window replaceable attribute: " + id); |
| 314 }); | 314 }); |
| 315 }, "Window interface"); | 315 }, "Window interface"); |
| 316 test(function() { | 316 test(function() { |
| 317 assert_equals(window.constructor, Window); | 317 assert_equals(window.constructor, Window); |
| 318 assert_false(window.hasOwnProperty("constructor"), "window.constructor should
not be an own property."); | 318 assert_false(window.hasOwnProperty("constructor"), "window.constructor should
not be an own property."); |
| 319 assert_data_propdesc(Object.getOwnPropertyDescriptor(Window.prototype, "constr
uctor"), | 319 assert_data_propdesc(Object.getOwnPropertyDescriptor(Window.prototype, "constr
uctor"), |
| 320 true, false, true); | 320 true, false, true); |
| 321 }, "constructor"); | 321 }, "constructor"); |
| 322 </script> | 322 </script> |
| OLD | NEW |