| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 6 | 2 | 6 | 0.953 | StatementList[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 7 | 312 | Closure/closure/goog/dom/dom_test.js |
| 2 | 6 | 376 | Closure/closure/goog/dom/dom_test.js |
| ||||
assertEquals('equal nodes should compare to 0', 0,
goog.dom.compareNodeOrder(b1, b1));
assertTrue('parent should come before child',
goog.dom.compareNodeOrder(p2, b1)< 0);
assertTrue('child should come after parent',
goog.dom.compareNodeOrder(b1, p2)> 0);
|
| ||||
assertEquals('Equal text nodes should compare to 0', 0,
goog.dom.compareNodeOrder(text1, text1));
assertTrue('First text node is before second',
goog.dom.compareNodeOrder(text1, text2)< 0);
assertTrue('Second text node is after first',
goog.dom.compareNodeOrder(text2, text1)> 0);
|
| |||
assertEquals( [[#variable572c8360]],0,goog.dom.compareNodeOrder( [[#variable572c82a0]], [[#variable572c82a0]])); assertTrue( [[#variable572c8240]],goog.dom.compareNodeOrder( [[#variable57161560]], [[#variable5ea3f580]])<0); assertTrue( [[#variable5ea3f5a0]],goog.dom.compareNodeOrder( [[#variable5ea3f580]], [[#variable57161560]])>0); |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#572c8360]] | 'Equal text nodes should compare to 0' |
| 1 | 2 | [[#572c8360]] | 'equal nodes should compare to 0' |
| 2 | 1 | [[#572c82a0]] | text1 |
| 2 | 2 | [[#572c82a0]] | b1 |
| 3 | 1 | [[#572c8240]] | 'First text node is before second' |
| 3 | 2 | [[#572c8240]] | 'parent should come before child' |
| 4 | 1 | [[#57161560]] | text1 |
| 4 | 2 | [[#57161560]] | p2 |
| 5 | 1 | [[#5ea3f580]] | text2 |
| 5 | 2 | [[#5ea3f580]] | b1 |
| 6 | 1 | [[#5ea3f5a0]] | 'Second text node is after first' |
| 6 | 2 | [[#5ea3f5a0]] | 'child should come after parent' |