equal
deleted
inserted
replaced
365 checkTranslucentShape(); |
365 checkTranslucentShape(); |
366 |
366 |
367 // Drag |
367 // Drag |
368 Point location = window.getLocationOnScreen(); |
368 Point location = window.getLocationOnScreen(); |
369 robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl)); |
369 robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl)); |
370 robot.waitForIdle(delay); |
370 robot.waitForIdle(2*delay); |
371 checkTranslucentShape(); |
371 checkTranslucentShape(); |
372 |
372 |
373 // Resize |
373 // Resize |
374 location = window.getLocationOnScreen(); |
374 location = window.getLocationOnScreen(); |
375 robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl); |
375 robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl); |
376 robot.waitForIdle(delay); |
376 robot.waitForIdle(2*delay); |
377 checkTranslucentShape(); |
377 checkTranslucentShape(); |
378 |
378 |
379 EventQueue.invokeAndWait(this::dispose); |
379 EventQueue.invokeAndWait(this::dispose); |
380 } |
380 } |
381 |
381 |
383 checkDynamicShape(); |
383 checkDynamicShape(); |
384 |
384 |
385 // Drag |
385 // Drag |
386 Point location = window.getLocationOnScreen(); |
386 Point location = window.getLocationOnScreen(); |
387 robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl)); |
387 robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl)); |
388 robot.waitForIdle(delay); |
388 robot.waitForIdle(2*delay); |
389 checkDynamicShape(); |
389 checkDynamicShape(); |
390 |
390 |
391 // Resize |
391 // Resize |
392 location = window.getLocationOnScreen(); |
392 location = window.getLocationOnScreen(); |
393 robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl); |
393 robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl); |
394 robot.waitForIdle(delay); |
394 robot.waitForIdle(2*delay); |
395 checkDynamicShape(); |
395 checkDynamicShape(); |
396 |
396 |
397 EventQueue.invokeAndWait(this::dispose); |
397 EventQueue.invokeAndWait(this::dispose); |
398 } |
398 } |
399 |
399 |