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

Side by Side Diff: test/inspector/runtime/evaluate-with-generate-preview.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 Runtime.evaluate will generate correct previews."); 5 InspectorTest.log("Tests that Runtime.evaluate will generate correct previews.") ;
6 6
7 InspectorTest.addScript( 7 InspectorTest.addScript(
8 ` 8 `
9 var f1 = function(){}; 9 var f1 = function(){};
10 10
11 Object.prototype[0] = 'default-first'; 11 Object.prototype[0] = 'default-first';
12 var obj = {p1: {a:1}, p2: {b:'foo'}, p3: f1}; 12 var obj = {p1: {a:1}, p2: {b:'foo'}, p3: f1};
13 Object.defineProperties(obj, { 13 Object.defineProperties(obj, {
14 p4: { 14 p4: {
15 get() { return 2 } 15 get() { return 2 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 .then(next); 67 .then(next);
68 }, 68 },
69 69
70 function testInheritingArrayPropertiesPreview(next) 70 function testInheritingArrayPropertiesPreview(next)
71 { 71 {
72 Protocol.Runtime.evaluate({ "expression": "inheritingArr", "generatePreview" : true }) 72 Protocol.Runtime.evaluate({ "expression": "inheritingArr", "generatePreview" : true })
73 .then(result => InspectorTest.logMessage(result.result.result.preview)) 73 .then(result => InspectorTest.logMessage(result.result.result.preview))
74 .then(next); 74 .then(next);
75 } 75 }
76 ]); 76 ]);
OLDNEW
« no previous file with comments | « test/inspector/runtime/evaluate-with-context-id-equal-zero.js ('k') | test/inspector/runtime/exception-thrown.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698