< prev index next >
modules/javafx.controls/src/test/java/test/javafx/scene/control/skin/ColorPickerSkinTest.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 78,91 ****
Scene paletteScene = ColorPickerPaletteShim.getPopup(colorPicker).getScene();
paletteScene.getWindow().requestFocus();
SceneHelper.processMouseEvent(paletteScene,
! generator.generateMouseEvent(MouseEvent.MOUSE_PRESSED, xval+85, yval+40));
SceneHelper.processMouseEvent(paletteScene,
! generator.generateMouseEvent(MouseEvent.MOUSE_RELEASED, xval+85, yval+40));
tk.firePulse();
assertEquals(colorPicker.getValue().toString(), "0x330033ff");
}
--- 78,91 ----
Scene paletteScene = ColorPickerPaletteShim.getPopup(colorPicker).getScene();
paletteScene.getWindow().requestFocus();
SceneHelper.processMouseEvent(paletteScene,
! generator.generateMouseEvent(MouseEvent.MOUSE_PRESSED, xval+85, yval+65));
SceneHelper.processMouseEvent(paletteScene,
! generator.generateMouseEvent(MouseEvent.MOUSE_RELEASED, xval+85, yval+65));
tk.firePulse();
assertEquals(colorPicker.getValue().toString(), "0x330033ff");
}
< prev index next >