mirror of
				https://github.com/mozilla/gecko-dev.git
				synced 2025-11-04 02:09:05 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			573 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			573 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// Helper file for test_selection_cross_shadow_boundary_* related tests
 | 
						|
 | 
						|
function drag(
 | 
						|
  fromTarget,
 | 
						|
  fromX,
 | 
						|
  fromY,
 | 
						|
  toTarget,
 | 
						|
  toX,
 | 
						|
  toY,
 | 
						|
  withAccelKey = false
 | 
						|
) {
 | 
						|
  synthesizeMouse(fromTarget, fromX, fromY, {
 | 
						|
    type: "mousemove",
 | 
						|
    accelKey: withAccelKey,
 | 
						|
  });
 | 
						|
  synthesizeMouse(fromTarget, fromX, fromY, {
 | 
						|
    type: "mousedown",
 | 
						|
    accelKey: withAccelKey,
 | 
						|
  });
 | 
						|
  synthesizeMouse(toTarget, toX, toY, {
 | 
						|
    type: "mousemove",
 | 
						|
    accelKey: withAccelKey,
 | 
						|
  });
 | 
						|
  synthesizeMouse(toTarget, toX, toY, {
 | 
						|
    type: "mouseup",
 | 
						|
    accelKey: withAccelKey,
 | 
						|
  });
 | 
						|
}
 |