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

Side by Side Diff: test/inspector/runtime/property-on-console-proto.js

Issue 2713023004: [inspector] added reconnect method for tests (Closed)
Patch Set: rebased Created 3 years, 9 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
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 print("Tests that property defined on console.__proto__ doesn't observable on ot her Objects."); 5 InspectorTest.log("Tests that property defined on console.__proto__ doesn't obse rvable on other Objects.");
6 6
7 InspectorTest.addScript(` 7 InspectorTest.addScript(`
8 function testFunction() 8 function testFunction()
9 { 9 {
10 var amountOfProperties = 0; 10 var amountOfProperties = 0;
11 for (var p in {}) 11 for (var p in {})
12 ++amountOfProperties; 12 ++amountOfProperties;
13 console.__proto__.debug = 239; 13 console.__proto__.debug = 239;
14 for (var p in {}) 14 for (var p in {})
15 --amountOfProperties; 15 --amountOfProperties;
16 return amountOfProperties; 16 return amountOfProperties;
17 }`); 17 }`);
18 18
19 Protocol.Runtime.evaluate({ "expression": "testFunction()" }).then(dumpResult); 19 Protocol.Runtime.evaluate({ "expression": "testFunction()" }).then(dumpResult);
20 20
21 function dumpResult(result) 21 function dumpResult(result)
22 { 22 {
23 InspectorTest.logMessage(result); 23 InspectorTest.logMessage(result);
24 InspectorTest.completeTest(); 24 InspectorTest.completeTest();
25 } 25 }
OLDNEW
« no previous file with comments | « test/inspector/runtime/length-or-size-description.js ('k') | test/inspector/runtime/protocol-works-with-different-locale.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698