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

Side by Side Diff: LayoutTests/fast/dom/Window/get-set-properties.html

Issue 243173004: Make window.screen property non replaceable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/get-set-properties-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <p>This page tests getting and setting window properties and functions.</p> 1 <p>This page tests getting and setting window properties and functions.</p>
2 <pre id="console"></pre> 2 <pre id="console"></pre>
3 3
4 <script> 4 <script>
5 function log(s) 5 function log(s)
6 { 6 {
7 document.getElementById("console").appendChild(document.createTextNode(s + " \n")); 7 document.getElementById("console").appendChild(document.createTextNode(s + " \n"));
8 } 8 }
9 9
10 function shouldBe(a, b) 10 function shouldBe(a, b)
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 "toolbar" 208 "toolbar"
209 ]; 209 ];
210 210
211 var windowReadOnlyProperties = [ 211 var windowReadOnlyProperties = [
212 "closed", 212 "closed",
213 "document", 213 "document",
214 "history", 214 "history",
215 "navigator", 215 "navigator",
216 "pageXOffset", 216 "pageXOffset",
217 "pageYOffset", 217 "pageYOffset",
218 "screen",
218 "window", 219 "window",
219 "top" 220 "top"
220 ]; 221 ];
221 222
222 var windowReadWriteStringProperties = [ 223 var windowReadWriteStringProperties = [
223 "defaultStatus", 224 "defaultStatus",
224 "defaultstatus", 225 "defaultstatus",
225 "name", 226 "name",
226 "status" 227 "status"
227 ]; 228 ];
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 320
320 log("\n----- tests for getting/setting event handlers -----\n"); 321 log("\n----- tests for getting/setting event handlers -----\n");
321 322
322 for (var i = 0; i < windowEventHandlers.length; i++) { 323 for (var i = 0; i < windowEventHandlers.length; i++) {
323 var property = windowEventHandlers[i]; 324 var property = windowEventHandlers[i];
324 shouldBeTrue("canGet('" + property + "')"); 325 shouldBeTrue("canGet('" + property + "')");
325 shouldBeTrue("canSetWithCallable('" + property + "')"); 326 shouldBeTrue("canSetWithCallable('" + property + "')");
326 } 327 }
327 } 328 }
328 </script> 329 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Window/get-set-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698