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

Unified Diff: LayoutTests/inspector/profiler/heap-snapshot.html

Issue 206393004: Remove HeapSnapshotItemIterator.rewind (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/inspector/profiler/heap-snapshot.html
diff --git a/LayoutTests/inspector/profiler/heap-snapshot.html b/LayoutTests/inspector/profiler/heap-snapshot.html
index 89edf4fc6352d016d22c823be030b509df492ee1..5ac0e8e17a21496488968258b57a8f484857d605 100644
--- a/LayoutTests/inspector/profiler/heap-snapshot.html
+++ b/LayoutTests/inspector/profiler/heap-snapshot.html
@@ -49,7 +49,7 @@ function test()
var nodeRoot = snapshot.createNode(snapshot._rootNodeIndex);
var iterator = new WebInspector.HeapSnapshotNodeIterator(nodeRoot);
var names = [];
- for (iterator.rewind(); iterator.hasNext(); iterator.next())
+ for (; iterator.hasNext(); iterator.next())
names.push(iterator.item().name());
InspectorTest.assertEquals(",A,B,C,D,E", names.join(","), "node iterator");
},
@@ -71,8 +71,7 @@ function test()
var snapshot = InspectorTest.createJSHeapSnapshotMockObject();
var nodeRoot = snapshot.createNode(snapshot._rootNodeIndex);
var names = [];
- var iterator = nodeRoot.edges();
- for (iterator.rewind(); iterator.hasNext(); iterator.next())
+ for (var iterator = nodeRoot.edges(); iterator.hasNext(); iterator.next())
names.push(iterator.item().name());
InspectorTest.assertEquals("a,b", names.join(","), "edge iterator");
var nodeE = snapshot.createNode(15);
« no previous file with comments | « no previous file | Source/devtools/front_end/HeapSnapshot.js » ('j') | Source/devtools/front_end/JSHeapSnapshot.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698