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

Side by Side Diff: LayoutTests/fast/dom/Window/window-property-shadowing.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
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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 var screenLeft = 1; 64 var screenLeft = 1;
65 log(screenLeft == 1 ? "PASS: screenLeft successfully shadowed" : "FAIL: screenLeft was not shadowed"); 65 log(screenLeft == 1 ? "PASS: screenLeft successfully shadowed" : "FAIL: screenLeft was not shadowed");
66 var screenTop = 1; 66 var screenTop = 1;
67 log(screenTop == 1 ? "PASS: screenTop successfully shadowed" : "FAIL: sc reenTop was not shadowed"); 67 log(screenTop == 1 ? "PASS: screenTop successfully shadowed" : "FAIL: sc reenTop was not shadowed");
68 var scrollX = 1; 68 var scrollX = 1;
69 log(scrollX == 1 ? "PASS: scrollX successfully shadowed" : "FAIL: scroll X was not shadowed"); 69 log(scrollX == 1 ? "PASS: scrollX successfully shadowed" : "FAIL: scroll X was not shadowed");
70 var scrollY = 1; 70 var scrollY = 1;
71 log(scrollY == 1 ? "PASS: scrollY successfully shadowed" : "FAIL: scroll Y was not shadowed"); 71 log(scrollY == 1 ? "PASS: scrollY successfully shadowed" : "FAIL: scroll Y was not shadowed");
72 var self = 1; 72 var self = 1;
73 log(self == 1 ? "PASS: self successfully shadowed" : "FAIL: self was not shadowed"); 73 log(self == 1 ? "PASS: self successfully shadowed" : "FAIL: self was not shadowed");
74 var history = 1;
75 log(history == 1 ? "PASS: history successfully shadowed" : "FAIL: histor y was not shadowed");
76 74
77 // Window functions 75 // Window functions
78 var getSelection = 1; 76 var getSelection = 1;
79 log(getSelection == 1 ? "PASS: getSelection successfully shadowed" : "FA IL: getSelection was not shadowed"); 77 log(getSelection == 1 ? "PASS: getSelection successfully shadowed" : "FA IL: getSelection was not shadowed");
80 var getComputedStyle = 1; 78 var getComputedStyle = 1;
81 log(getComputedStyle == 1 ? "PASS: getComputedStyle successfully shadowe d" : "FAIL: getComputedStyle was not shadowed"); 79 log(getComputedStyle == 1 ? "PASS: getComputedStyle successfully shadowe d" : "FAIL: getComputedStyle was not shadowed");
82 var getMatchedCSSRules = 1; 80 var getMatchedCSSRules = 1;
83 log(getMatchedCSSRules == 1 ? "PASS: getMatchedCSSRules successfully sha dowed" : "FAIL: getMatchedCSSRules was not shadowed"); 81 log(getMatchedCSSRules == 1 ? "PASS: getMatchedCSSRules successfully sha dowed" : "FAIL: getMatchedCSSRules was not shadowed");
84 var atob = 1; 82 var atob = 1;
85 log(atob == 1 ? "PASS: atob successfully shadowed" : "FAIL: atob was not shadowed"); 83 log(atob == 1 ? "PASS: atob successfully shadowed" : "FAIL: atob was not shadowed");
(...skipping 251 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