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

Side by Side Diff: test/inspector/runtime/get-properties-on-proxy.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("Check that while Runtime.getProperties call on proxy object no user defin ed trap will be executed."); 5 InspectorTest.log("Check that while Runtime.getProperties call on proxy object n o user defined trap will be executed.");
6 6
7 InspectorTest.addScript(` 7 InspectorTest.addScript(`
8 var self = this; 8 var self = this;
9 function testFunction() 9 function testFunction()
10 { 10 {
11 self.counter = 0; 11 self.counter = 0;
12 var handler = { 12 var handler = {
13 get: function(target, name){ 13 get: function(target, name){
14 self.counter++; 14 self.counter++;
15 return Reflect.get.apply(this, arguments); 15 return Reflect.get.apply(this, arguments);
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 function checkCounter(result) 92 function checkCounter(result)
93 { 93 {
94 Protocol.Runtime.evaluate({ expression: "self.counter" }).then(dumpCounter); 94 Protocol.Runtime.evaluate({ expression: "self.counter" }).then(dumpCounter);
95 } 95 }
96 96
97 function dumpCounter(result) 97 function dumpCounter(result)
98 { 98 {
99 InspectorTest.logMessage(result); 99 InspectorTest.logMessage(result);
100 InspectorTest.completeTest(); 100 InspectorTest.completeTest();
101 } 101 }
OLDNEW
« no previous file with comments | « test/inspector/runtime/exception-thrown.js ('k') | test/inspector/runtime/internal-properties.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698