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 |