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

Side by Side Diff: LayoutTests/fast/js/var-declarations-shadowing.html

Issue 243203002: Make window.navigator property non replaceable (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Only keep window.navigator change 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 <p> 1 <p>
2 This page tests var declarations that attempt to shadow interesting global prope rties in 2 This page tests var declarations that attempt to shadow interesting global prope rties in
3 interesting ways. <a href="http://bugs.webkit.org/show_bug.cgi?id=16644">Bug 166 44</a>. 3 interesting ways. <a href="http://bugs.webkit.org/show_bug.cgi?id=16644">Bug 166 44</a>.
4 </p> 4 </p>
5 5
6 <p> 6 <p>
7 If the test passes, you'll see a series of PASS messages below. 7 If the test passes, you'll see a series of PASS messages below.
8 </p> 8 </p>
9 9
10 <pre id="console"></pre> 10 <pre id="console"></pre>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 try { 214 try {
215 eval("var devicePixelRatio = marker"); 215 eval("var devicePixelRatio = marker");
216 } catch(e) { } 216 } catch(e) { }
217 shouldBe(devicePixelRatio == marker, "devicePixelRatio == marker", true); 217 shouldBe(devicePixelRatio == marker, "devicePixelRatio == marker", true);
218 shouldBe(eval('devicePixelRatio == marker'), "eval('devicePixelRatio == marker') ", true); 218 shouldBe(eval('devicePixelRatio == marker'), "eval('devicePixelRatio == marker') ", true);
219 219
220 try { 220 try {
221 eval("var navigator = marker"); 221 eval("var navigator = marker");
222 } catch(e) { } 222 } catch(e) { }
223 shouldBe(navigator == marker, "navigator == marker", true); 223 shouldBe(navigator == marker, "navigator == marker", false);
224 shouldBe(eval('navigator == marker'), "eval('navigator == marker')", true); 224 shouldBe(eval('navigator == marker'), "eval('navigator == marker')", false);
225 225
226 try { 226 try {
227 eval("var clientInformation = marker"); 227 eval("var clientInformation = marker");
228 } catch(e) { } 228 } catch(e) { }
229 shouldBe(clientInformation == marker, "clientInformation == marker", true); 229 shouldBe(clientInformation == marker, "clientInformation == marker", true);
230 shouldBe(eval('clientInformation == marker'), "eval('clientInformation == marker ')", true); 230 shouldBe(eval('clientInformation == marker'), "eval('clientInformation == marker ')", true);
231 231
232 try { 232 try {
233 eval("var status = marker"); 233 eval("var status = marker");
234 } catch(e) { } 234 } catch(e) { }
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 shouldBe(crypto == marker, "crypto == marker", false); 303 shouldBe(crypto == marker, "crypto == marker", false);
304 shouldBe(eval('crypto == marker'), "eval('crypto == marker')", false); 304 shouldBe(eval('crypto == marker'), "eval('crypto == marker')", false);
305 305
306 try { 306 try {
307 eval("var top = marker"); 307 eval("var top = marker");
308 } catch(e) { } 308 } catch(e) { }
309 shouldBe(top == marker, "top == marker", false); 309 shouldBe(top == marker, "top == marker", false);
310 shouldBe(eval('top == marker'), "eval('top == marker')", false); 310 shouldBe(eval('top == marker'), "eval('top == marker')", false);
311 311
312 </script> 312 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698