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

Side by Side Diff: LayoutTests/fast/dom/Window/window-property-shadowing.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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script type="text/javascript"> 4 <script type="text/javascript">
5 function log(msg) 5 function log(msg)
6 { 6 {
7 document.getElementById('console').appendChild(document.createTextNo de(msg + '\n')); 7 document.getElementById('console').appendChild(document.createTextNo de(msg + '\n'));
8 } 8 }
9 </script> 9 </script>
10 </head> 10 </head>
(...skipping 29 matching lines...) Expand all
40 var innerHeight = 1; 40 var innerHeight = 1;
41 log(innerHeight == 1 ? "PASS: innerHeight successfully shadowed" : "FAIL : innerHeight was not shadowed"); 41 log(innerHeight == 1 ? "PASS: innerHeight successfully shadowed" : "FAIL : innerHeight was not shadowed");
42 var innerWidth = 1; 42 var innerWidth = 1;
43 log(innerWidth == 1 ? "PASS: innerWidth successfully shadowed" : "FAIL: innerWidth was not shadowed"); 43 log(innerWidth == 1 ? "PASS: innerWidth successfully shadowed" : "FAIL: innerWidth was not shadowed");
44 var length = 1; 44 var length = 1;
45 log(length == 1 ? "PASS: length successfully shadowed" : "FAIL: length w as not shadowed"); 45 log(length == 1 ? "PASS: length successfully shadowed" : "FAIL: length w as not shadowed");
46 var name = 1; 46 var name = 1;
47 log(name == 1 ? "PASS: name successfully shadowed" : "FAIL: name was not shadowed"); 47 log(name == 1 ? "PASS: name successfully shadowed" : "FAIL: name was not shadowed");
48 var clientInformation = 1; 48 var clientInformation = 1;
49 log(clientInformation == 1 ? "PASS: clientInformation successfully shado wed" : "FAIL: clientInformation was not shadowed"); 49 log(clientInformation == 1 ? "PASS: clientInformation successfully shado wed" : "FAIL: clientInformation was not shadowed");
50 var screen = 1;
51 log(screen == 1 ? "PASS: screen successfully shadowed" : "FAIL: screen w as not shadowed");
52 var offscreenBuffering = 2; 50 var offscreenBuffering = 2;
53 log(offscreenBuffering == 2 ? "PASS: offscreenBuffering successfully sha dowed" : "FAIL: offscreenBuffering was not shadowed"); 51 log(offscreenBuffering == 2 ? "PASS: offscreenBuffering successfully sha dowed" : "FAIL: offscreenBuffering was not shadowed");
54 var opener = 1; 52 var opener = 1;
55 log(opener == 1 ? "PASS: opener successfully shadowed" : "FAIL: opener w as not shadowed"); 53 log(opener == 1 ? "PASS: opener successfully shadowed" : "FAIL: opener w as not shadowed");
56 var outerHeight = 1; 54 var outerHeight = 1;
57 log(outerHeight == 1 ? "PASS: outerHeight successfully shadowed" : "FAIL : outerHeight was not shadowed"); 55 log(outerHeight == 1 ? "PASS: outerHeight successfully shadowed" : "FAIL : outerHeight was not shadowed");
58 var outerWidth = 1; 56 var outerWidth = 1;
59 log(outerWidth == 1 ? "PASS: outerWidth successfully shadowed" : "FAIL: outerWidth was not shadowed"); 57 log(outerWidth == 1 ? "PASS: outerWidth successfully shadowed" : "FAIL: outerWidth was not shadowed");
60 var parent = 1; 58 var parent = 1;
61 log(parent == 1 ? "PASS: parent successfully shadowed" : "FAIL: parent w as not shadowed"); 59 log(parent == 1 ? "PASS: parent successfully shadowed" : "FAIL: parent w as not shadowed");
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 log(Range == 1 ? "PASS: Range successfully shadowed" : "FAIL: Range was not shadowed"); 335 log(Range == 1 ? "PASS: Range successfully shadowed" : "FAIL: Range was not shadowed");
338 var XMLDocument = 1; 336 var XMLDocument = 1;
339 log(XMLDocument == 1 ? "PASS: XMLDocument successfully shadowed" : "FAIL : XMLDocument was not shadowed"); 337 log(XMLDocument == 1 ? "PASS: XMLDocument successfully shadowed" : "FAIL : XMLDocument was not shadowed");
340 var DOMParser = 1; 338 var DOMParser = 1;
341 log(DOMParser == 1 ? "PASS: DOMParser successfully shadowed" : "FAIL: DO MParser was not shadowed"); 339 log(DOMParser == 1 ? "PASS: DOMParser successfully shadowed" : "FAIL: DO MParser was not shadowed");
342 var XMLSerializer = 1; 340 var XMLSerializer = 1;
343 log(XMLSerializer == 1 ? "PASS: XMLSerializer successfully shadowed" : " FAIL: XMLSerializer was not shadowed"); 341 log(XMLSerializer == 1 ? "PASS: XMLSerializer successfully shadowed" : " FAIL: XMLSerializer was not shadowed");
344 </script> 342 </script>
345 </body> 343 </body>
346 </html> 344 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698