| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 8 | 2 | 6 | 0.958 | Block |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 8 | 485 | Closure/closure/goog/dom/dom_test.js |
| 2 | 8 | 515 | Closure/closure/goog/dom/dom_test.js |
| ||||
{
var p2= $('p2');
var b1= goog.dom.getFirstElementChild(p2);
assertNotNull('First element child of p2 should not be null', b1);
assertEquals('First element child is b1', 'b1', b1.id);
var c= goog.dom.getFirstElementChild(b1);
assertNull('First element child of b1 should be null', c);
}
|
| ||||
{
var b2= $('b2');
var b1= goog.dom.getPreviousElementSibling(b2);
assertNotNull('Previous element sibling of b2 should not be null', b1);
assertEquals('Previous element sibling is b1', 'b1', b1.id);
var c= goog.dom.getPreviousElementSibling(b1);
assertNull('Previous element sibling of b1 should be null', c);
}
|
| |||
{ var [[#variable62b31fe0]]=$( [[#variable62b31f80]]);
var b1=goog.dom. [[#variable62b31ec0]]( [[#variable62b31fe0]]);
assertNotNull( [[#variable62b31e40]],b1);
assertEquals( [[#variable62b31d80]],'b1',b1.id);
var c=goog.dom. [[#variable62b31ec0]](b1);
assertNull( [[#variable62b31cc0]],c);
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#62b31fe0]] | p2 |
| 1 | 2 | [[#62b31fe0]] | b2 |
| 2 | 1 | [[#62b31f80]] | 'p2' |
| 2 | 2 | [[#62b31f80]] | 'b2' |
| 3 | 1 | [[#62b31ec0]] | getFirstElementChild |
| 3 | 2 | [[#62b31ec0]] | getPreviousElementSibling |
| 4 | 1 | [[#62b31e40]] | 'First element child of p2 should not be null' |
| 4 | 2 | [[#62b31e40]] | 'Previous element sibling of b2 should not be null' |
| 5 | 1 | [[#62b31d80]] | 'First element child is b1' |
| 5 | 2 | [[#62b31d80]] | 'Previous element sibling is b1' |
| 6 | 1 | [[#62b31cc0]] | 'First element child of b1 should be null' |
| 6 | 2 | [[#62b31cc0]] | 'Previous element sibling of b1 should be null' |