CloneSet303


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8220.991ExpressionStatement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
19284
Closure/closure/goog/testing/events/events.js
28307
Closure/closure/goog/testing/events/events.js
Clone Instance
1
Line Count
9
Source Line
284
Source File
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);
                                                                  } ;


Clone Instance
2
Line Count
8
Source Line
307
Source File
Closure/closure/goog/testing/events/events.js

/**
 * 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);
                                                                  } ;


Clone AbstractionParameter Count: 2Parameter Bindings

/**
 * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5de1db60]]
fireMouseUpEvent 
12[[#5de1db60]]
fireMouseDownEvent 
21[[#60d18640]]
MOUSEUP 
22[[#60d18640]]
MOUSEDOWN