| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 3 | 0.957 | FunctionDeclaration |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 5 | 975 | Closure/closure/goog/dom/dom_test.js |
| 2 | 6 | 982 | 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'));
}
|
| ||||
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'));
}
|
| |||
function [[#variable62f11920]]( )
{ var elem=goog.dom.getElement('nestedElement');
var expected=goog.dom.getElement( [[#variable62f10de0]]);
assertEquals(expected,goog.dom.getAncestorByTagNameAndClass(elem, [[#variable62f11880]],'testAncestor'));
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62f11920]] | testGetAncestorByTagNameAndClass |
| 1 | 2 | [[#62f11920]] | testGetAncestorByClassName |
| 2 | 1 | [[#62f10de0]] | 'testAncestorDiv' |
| 2 | 2 | [[#62f10de0]] | 'testAncestorP' |
| 3 | 1 | [[#62f11880]] | goog.dom.TagName.DIV |
| 3 | 2 | [[#62f11880]] | null |