Home
last modified time | relevance | path

Searched refs:oldTree (Results 1 – 2 of 2) sorted by relevance

/development/tools/winscope/spec/
DDiffSpec.js4 function checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree) { argument
6 .compareWith(oldTree)
15 const oldTree = new Node({ id: 1 }, [ constant
30 .compareWith(oldTree)
45 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
49 const oldTree = new Node({ id: 1 }, [ constant
73 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
77 const oldTree = new Node({ id: 1 }, [ constant
105 checkDiffTreeWithNoModifiedCheck(oldTree, newTree, expectedDiffTree);
109 const oldTree = new Node({ id: 1, data: "xyz" }, [ constant
[all …]
/development/tools/winscope/src/utils/
Ddiff.js156 _generateDiffTree(newTree, oldTree, newTreeSiblings, oldTreeSiblings) { argument
161 const oldId = oldTree ? this.getNodeId(oldTree) : null;
202 if (oldTree && !newTreeSiblingIds.includes(oldId)) {
203 const deletedTreeDiff = this._cloneNodeWithoutChildren(oldTree);
215 deletedTreeDiff.children = this._visitChildren(null, oldTree);
221 oldTree = nextOldTree;
226 if (this.isModified && this.isModified(newTree, oldTree)) {
231 diffTree.children = this._visitChildren(newTree, oldTree);
233 } else if (oldTree) {
236 const diffTree = this._cloneNodeWithoutChildren(oldTree);
[all …]