Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto.html

Issue 1995423002: [DevTools] Set vanilla object as console prototype (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+
+ 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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/runtime/runtime-property-on-console-proto-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698