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

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

Issue 242613009: Make window.history 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 "atob", 178 "atob",
179 "btoa", 179 "btoa",
180 "captureEvents", 180 "captureEvents",
181 "clearInterval", 181 "clearInterval",
182 "clearTimeout", 182 "clearTimeout",
183 "clientInformation", 183 "clientInformation",
184 "console", 184 "console",
185 "devicePixelRatio", 185 "devicePixelRatio",
186 "event", 186 "event",
187 "frames", 187 "frames",
188 "history",
189 "innerHeight", 188 "innerHeight",
190 "innerWidth", 189 "innerWidth",
191 "length", 190 "length",
192 "locationbar", 191 "locationbar",
193 "menubar", 192 "menubar",
194 "offscreenBuffering", 193 "offscreenBuffering",
195 "opener", 194 "opener",
196 "outerHeight", 195 "outerHeight",
197 "outerWidth", 196 "outerWidth",
198 "parent", 197 "parent",
199 "personalbar", 198 "personalbar",
200 "screenLeft", 199 "screenLeft",
201 "screenTop", 200 "screenTop",
202 "screenX", 201 "screenX",
203 "screenY", 202 "screenY",
204 "scrollX", 203 "scrollX",
205 "scrollY", 204 "scrollY",
206 "scrollbars", 205 "scrollbars",
207 "self", 206 "self",
208 "statusbar", 207 "statusbar",
209 "toolbar" 208 "toolbar"
210 ]; 209 ];
211 210
212 var windowReadOnlyProperties = [ 211 var windowReadOnlyProperties = [
213 "closed", 212 "closed",
214 "document", 213 "document",
214 "history",
215 "navigator", 215 "navigator",
216 "pageXOffset", 216 "pageXOffset",
217 "pageYOffset", 217 "pageYOffset",
218 "screen", 218 "screen",
219 "window", 219 "window",
220 "top" 220 "top"
221 ]; 221 ];
222 222
223 var windowReadWriteStringProperties = [ 223 var windowReadWriteStringProperties = [
224 "defaultStatus", 224 "defaultStatus",
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 log("\n----- tests for getting/setting event handlers -----\n"); 321 log("\n----- tests for getting/setting event handlers -----\n");
322 322
323 for (var i = 0; i < windowEventHandlers.length; i++) { 323 for (var i = 0; i < windowEventHandlers.length; i++) {
324 var property = windowEventHandlers[i]; 324 var property = windowEventHandlers[i];
325 shouldBeTrue("canGet('" + property + "')"); 325 shouldBeTrue("canGet('" + property + "')");
326 shouldBeTrue("canSetWithCallable('" + property + "')"); 326 shouldBeTrue("canSetWithCallable('" + property + "')");
327 } 327 }
328 } 328 }
329 </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