| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 // Used to interfere into InjectedScript._propertyDescriptors() | 7 // Used to interfere into InjectedScript._propertyDescriptors() |
| 8 Object.prototype.get = function() { return "FAIL"; }; | 8 Object.prototype.get = function() { return "FAIL"; }; |
| 9 Object.prototype.set = function() { return "FAIL"; }; | 9 Object.prototype.set = function() { return "FAIL"; }; |
| 10 Object.prototype.value = "FAIL"; | 10 Object.prototype.value = "FAIL"; |
| 11 Object.prototype.getter = "FAIL"; | 11 Object.prototype.getter = "FAIL"; |
| 12 Object.prototype.setter = "FAIL"; | 12 Object.prototype.setter = "FAIL"; |
| 13 Object.prototype.isOwn = true; | 13 Object.prototype.isOwn = true; |
| 14 // Used to interfere into InjectedScript.primitiveTypes | 14 // Used to interfere into InjectedScript.primitiveTypes |
| 15 Object.prototype.object = true; | 15 Object.prototype.object = true; |
| 16 // Used to interfere into InjectedScript.getEventListeners() | 16 // Used to interfere into InjectedScript.getEventListeners() |
| 17 Object.prototype.nullValue = null; | 17 Object.prototype.nullValue = null; |
| 18 Object.prototype.undefValue = undefined; | 18 Object.prototype.undefValue = undefined; |
| 19 | 19 |
| 20 var foo = "bar"; | 20 var foo = "bar"; |
| 21 var testObj = { | 21 var testObj = { |
| 22 get getter() { }, | 22 get getter() { }, |
| 23 set setter() { }, | 23 set setter(_) { }, |
| 24 baz: "baz" | 24 baz: "baz" |
| 25 }; | 25 }; |
| 26 | 26 |
| 27 function test() | 27 function test() |
| 28 { | 28 { |
| 29 function snippet1() { | 29 function snippet1() { |
| 30 (function (obj) { | 30 (function (obj) { |
| 31 with (obj) { | 31 with (obj) { |
| 32 console.log('with: ' + a); | 32 console.log('with: ' + a); |
| 33 eval("console.log('eval in with: ' + a)"); | 33 eval("console.log('eval in with: ' + a)"); |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 </script> | 97 </script> |
| 98 </head> | 98 </head> |
| 99 <body onload="runTest()"> | 99 <body onload="runTest()"> |
| 100 <p> | 100 <p> |
| 101 Tests that evaluating 'console.log()' in the console will have access to its out
er scope variables. | 101 Tests that evaluating 'console.log()' in the console will have access to its out
er scope variables. |
| 102 <a href="https://bugs.webkit.org/show_bug.cgi?id=60547">Bug 60547.</a> | 102 <a href="https://bugs.webkit.org/show_bug.cgi?id=60547">Bug 60547.</a> |
| 103 </p> | 103 </p> |
| 104 </body> | 104 </body> |
| 105 </html> | 105 </html> |
| OLD | NEW |