Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.html |
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.html b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..eb11ffbb74bc7497eb5e8bfb3942a738765ae9ad |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.html |
| @@ -0,0 +1,33 @@ |
| +<html> |
| +<head> |
| +<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> |
| +<script> |
| + |
| +function testFunction() |
| +{ |
| + var amountOfProperties = 0; |
| + for (var p in {}) |
| + ++amountOfProperties; |
| + console.__proto__.debug = 239; |
| + for (var p in {}) |
| + --amountOfProperties; |
| + return amountOfProperties; |
| +} |
| + |
| +function test() |
| +{ |
| + InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testFunction()" }, dumpResult); |
|
dgozman
2016/05/20 18:26:36
There is InspectorTest.evaluateInPage for this.
|
| + |
| + function dumpResult(result) |
| + { |
| + result.id = 0; |
| + InspectorTest.logObject(result); |
| + InspectorTest.completeTest(); |
| + } |
| +} |
| +</script> |
| +</head> |
| +<body onLoad="runTest();"> |
| +Tests that property defined on console.__proto__ doesn't observable on other Objects. |
| +</body> |
| +</html> |