CloneSet392


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8260.958Block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18485
Closure/closure/goog/dom/dom_test.js
28515
Closure/closure/goog/dom/dom_test.js
Clone Instance
1
Line Count
8
Source Line
485
Source File
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);
                                    }


Clone Instance
2
Line Count
8
Source Line
515
Source File
Closure/closure/goog/dom/dom_test.js

                                         {
  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);
                                         }


Clone AbstractionParameter Count: 6Parameter Bindings

{ 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#62b31fe0]]
p2 
12[[#62b31fe0]]
b2 
21[[#62b31f80]]
'p2' 
22[[#62b31f80]]
'b2' 
31[[#62b31ec0]]
getFirstElementChild 
32[[#62b31ec0]]
getPreviousElementSibling 
41[[#62b31e40]]
'First element child of p2 should not be null' 
42[[#62b31e40]]
'Previous element sibling of b2 should not be null' 
51[[#62b31d80]]
'First element child is b1' 
52[[#62b31d80]]
'Previous element sibling is b1' 
61[[#62b31cc0]]
'First element child of b1 should be null' 
62[[#62b31cc0]]
'Previous element sibling of b1 should be null'