Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
9 | 2 | 2 | 0.974 | StatementList[4] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 146 | Closure/closure/goog/testing/style/layoutasserts.js |
2 | 9 | 193 | Closure/closure/goog/testing/style/layoutasserts.js |
| ||||
var tolerance= nonCommentArg(3, 3, arguments); var size= goog.style.getSize(element); var elementWidth= size.width; _assert(commentArg(1, arguments), goog.testing.style.layoutasserts.isWithinThreshold_( width, elementWidth, tolerance), 'Element width('+ elementWidth+ ') should be within given width('+ width+ ') with tolerance value of '+ tolerance+ '.'); |
| ||||
var tolerance= nonCommentArg(3, 3, arguments); var size= goog.style.getSize(element); var elementHeight= size.height; _assert(commentArg(1, arguments), goog.testing.style.layoutasserts.isWithinThreshold_( height, elementHeight, tolerance), 'Element width('+ elementHeight+ ') should be within given width('+ height+ ') with tolerance value of '+ tolerance+ '.'); |
| |||
var tolerance=nonCommentArg(3,3,arguments); var size=goog.style.getSize(element); var [[#variable5c78de20]]=size. [[#variable583c1a00]]; _assert(commentArg(1,arguments),goog.testing.style.layoutasserts.isWithinThreshold_( [[#variable583c1a00]], [[#variable5c78de20]],tolerance),'Element width('+ [[#variable5c78de20]]+') should be within given width('+ [[#variable583c1a00]]+') with tolerance value of '+tolerance+'.'); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5c78de20]] | elementWidth |
1 | 2 | [[#5c78de20]] | elementHeight |
2 | 1 | [[#583c1a00]] | width |
2 | 2 | [[#583c1a00]] | height |