OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
| 4 <script> |
| 5 |
| 6 function testFunction() |
| 7 { |
| 8 var amountOfProperties = 0; |
| 9 for (var p in {}) |
| 10 ++amountOfProperties; |
| 11 console.__proto__.debug = 239; |
| 12 for (var p in {}) |
| 13 --amountOfProperties; |
| 14 return amountOfProperties; |
| 15 } |
| 16 |
| 17 function test() |
| 18 { |
| 19 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testFunction(
)" }, dumpResult); |
| 20 |
| 21 function dumpResult(result) |
| 22 { |
| 23 result.id = 0; |
| 24 InspectorTest.logObject(result); |
| 25 InspectorTest.completeTest(); |
| 26 } |
| 27 } |
| 28 </script> |
| 29 </head> |
| 30 <body onLoad="runTest();"> |
| 31 Tests that property defined on console.__proto__ doesn't observable on other Obj
ects. |
| 32 </body> |
| 33 </html> |
OLD | NEW |