OLD | NEW |
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 Loading... |
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 Loading... |
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> |
OLD | NEW |