CloneSet688


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6230.957FunctionDeclaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
15975
Closure/closure/goog/dom/dom_test.js
26982
Closure/closure/goog/dom/dom_test.js
Clone Instance
1
Line Count
5
Source Line
975
Source File
Closure/closure/goog/dom/dom_test.js

function testGetAncestorByClassName( ){
  var elem=  goog.dom.getElement('nestedElement');
  var expected=  goog.dom.getElement('testAncestorP');
  assertEquals(expected,
      goog.dom.getAncestorByTagNameAndClass(elem, null, 'testAncestor'));
                                      }


Clone Instance
2
Line Count
6
Source Line
982
Source File
Closure/closure/goog/dom/dom_test.js

function testGetAncestorByTagNameAndClass( ){
  var elem=  goog.dom.getElement('nestedElement');
  var expected=  goog.dom.getElement('testAncestorDiv');
  assertEquals(expected,
      goog.dom.getAncestorByTagNameAndClass(elem, goog.dom.TagName.DIV,
          'testAncestor'));
                                            }


Clone AbstractionParameter Count: 3Parameter Bindings

function [[#variable62f11920]]( )
{ var elem=goog.dom.getElement('nestedElement');
  var expected=goog.dom.getElement( [[#variable62f10de0]]);
  assertEquals(expected,goog.dom.getAncestorByTagNameAndClass(elem, [[#variable62f11880]],'testAncestor'));
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62f11920]]
testGetAncestorByTagNameAndClass 
12[[#62f11920]]
testGetAncestorByClassName 
21[[#62f10de0]]
'testAncestorDiv' 
22[[#62f10de0]]
'testAncestorP' 
31[[#62f11880]]
goog.dom.TagName.DIV 
32[[#62f11880]]
null