Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 2 | 0.991 | ExpressionStatement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 9 | 284 | Closure/closure/goog/testing/events/events.js |
2 | 8 | 307 | Closure/closure/goog/testing/events/events.js |
| ||||
/** * Simulates a mousedown event on the given target. * @param {EventTarget} target The target for the event. * @param {goog.events.BrowserEvent.MouseButton=} opt_button Mouse button; * defaults to {@code goog.events.BrowserEvent.MouseButton.LEFT}. * @param {goog.math.Coordinate=} opt_coords Mouse position. Defaults to (0, 0). * @param {Object=} opt_eventProperties Event properties to be mixed into the * BrowserEvent. * @return {boolean} The returnValue of the event: false if preventDefault() was * called on it, true otherwise. */ goog.testing.events.fireMouseDownEvent= function (target, opt_button, opt_coords, opt_eventProperties){ var button= opt_button || goog.events.BrowserEvent.MouseButton.LEFT; button= goog.userAgent.IE ?goog.events.BrowserEvent.IEButtonMap_[button] : button; return goog.testing.events.fireMouseButtonEvent_( goog.events.EventType.MOUSEDOWN, target, button, opt_coords, opt_eventProperties); } ; |
| ||||
/** * Simulates a mouseup event on the given target. * @param {EventTarget} target The target for the event. * @param {goog.events.BrowserEvent.MouseButton=} opt_button Mouse button; * defaults to {@code goog.events.BrowserEvent.MouseButton.LEFT}. * @param {goog.math.Coordinate=} opt_coords Mouse position. Defaults to (0, 0). * @param {Object=} opt_eventProperties Event properties to be mixed into the * BrowserEvent. * @return {boolean} The returnValue of the event: false if preventDefault() was * called on it, true otherwise. */ goog.testing.events.fireMouseUpEvent= function (target, opt_button, opt_coords, opt_eventProperties){ var button= opt_button || goog.events.BrowserEvent.MouseButton.LEFT; button= goog.userAgent.IE ?goog.events.BrowserEvent.IEButtonMap_[button] : button; return goog.testing.events.fireMouseButtonEvent_( goog.events.EventType.MOUSEUP, target, button, opt_coords, opt_eventProperties); } ; |
| |||
/** * Simulates a mouseup event on the given target. * @param {EventTarget} target The target for the event. * @param {goog.events.BrowserEvent.MouseButton=} opt_button Mouse button; * defaults to {@code goog.events.BrowserEvent.MouseButton.LEFT}. * @param {goog.math.Coordinate=} opt_coords Mouse position. Defaults to (0, 0). * @param {Object=} opt_eventProperties Event properties to be mixed into the * BrowserEvent. * @return {boolean} The returnValue of the event: false if preventDefault() was * called on it, true otherwise. */ /** * Simulates a mousedown event on the given target. * @param {EventTarget} target The target for the event. * @param {goog.events.BrowserEvent.MouseButton=} opt_button Mouse button; * defaults to {@code goog.events.BrowserEvent.MouseButton.LEFT}. * @param {goog.math.Coordinate=} opt_coords Mouse position. Defaults to (0, 0). * @param {Object=} opt_eventProperties Event properties to be mixed into the * BrowserEvent. * @return {boolean} The returnValue of the event: false if preventDefault() was * called on it, true otherwise. */ goog.testing.events. [[#variable5de1db60]]= function (target,opt_button,opt_coords,opt_eventProperties) { var button=opt_button || goog.events.BrowserEvent.MouseButton.LEFT; button=goog.userAgent.IE ?goog.events.BrowserEvent.IEButtonMap_[button] :button; return goog.testing.events.fireMouseButtonEvent_(goog.events.EventType. [[#variable60d18640]],target,button,opt_coords,opt_eventProperties); } ; |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5de1db60]] | fireMouseUpEvent |
1 | 2 | [[#5de1db60]] | fireMouseDownEvent |
2 | 1 | [[#60d18640]] | MOUSEUP |
2 | 2 | [[#60d18640]] | MOUSEDOWN |