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

Side by Side 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 unified diff | Download patch
OLDNEW
(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);
dgozman 2016/05/20 18:26:36 There is InspectorTest.evaluateInPage for this.
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698