Index: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.js |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.js b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..415acb0dc040cd631ad7d3e5a085399ad4bc455b |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.js |
@@ -0,0 +1,13 @@ |
+(async function(testRunner) { |
+ let {page, session, dp} = await testRunner.startBlank(`Tests that property defined on console.__proto__ doesn't observable on other Objects.`); |
+ testRunner.logMessage(await dp.Runtime.evaluate({expression: ` |
+ var amountOfProperties = 0; |
+ for (var p in {}) |
+ ++amountOfProperties; |
+ console.__proto__.debug = 239; |
+ for (var p in {}) |
+ --amountOfProperties; |
+ amountOfProperties |
+ `})); |
+ testRunner.completeTest(); |
+}) |