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

Side by Side Diff: test/inspector/runtime/set-or-map-entries.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
« no previous file with comments | « test/inspector/runtime/runtime-restore-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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("Test that Runtime.getProperties doesn't truncate set and map entries in i nternalProperties.") 5 InspectorTest.log("Test that Runtime.getProperties doesn't truncate set and map entries in internalProperties.")
6 6
7 InspectorTest.addScript(` 7 InspectorTest.addScript(`
8 function createSet(size) { 8 function createSet(size) {
9 var s = new Set(); 9 var s = new Set();
10 var a = {}; 10 var a = {};
11 a.a = a; 11 a.a = a;
12 for (var i = 0; i < size; ++i) s.add({ wrapper: a}); 12 for (var i = 0; i < size; ++i) s.add({ wrapper: a});
13 return s; 13 return s;
14 } 14 }
15 15
(...skipping 27 matching lines...) Expand all
43 InspectorTest.log(`Entries for "${expression}"`); 43 InspectorTest.log(`Entries for "${expression}"`);
44 var properties = message.result.internalProperties; 44 var properties = message.result.internalProperties;
45 var property; 45 var property;
46 if (properties) 46 if (properties)
47 property = properties.find(property => property.name === "[[Entries]]"); 47 property = properties.find(property => property.name === "[[Entries]]");
48 if (!property) 48 if (!property)
49 InspectorTest.log("[[Entries]] not found"); 49 InspectorTest.log("[[Entries]] not found");
50 else 50 else
51 InspectorTest.log(property.value.description); 51 InspectorTest.log(property.value.description);
52 } 52 }
OLDNEW
« no previous file with comments | « test/inspector/runtime/runtime-restore-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698