6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.sun.glass.ui.monocle;
27
28 import com.sun.glass.ui.monocle.input.devices.TestTouchDevice;
29 import com.sun.glass.ui.monocle.input.devices.TestTouchDevices;
30 import javafx.geometry.Rectangle2D;
31 import javafx.scene.input.TouchEvent;
32 import org.junit.*;
33 import org.junit.runners.Parameterized;
34 import java.util.ArrayList;
35 import java.util.Collection;
36 import java.util.List;
37
38 public class SingleTouchNonFullScreenTest extends ParameterizedTestBase {
39
40 private static final TestCase[] TEST_CASES = {
41 new TestCase(200, 100, 400, 300, 200, 100, 599, 399),
42 new TestCase(100, 200, 400, 300, 100, 200, 499, 499),
43 };
44
45 private TestCase testCase;
46
47 static class TestCase {
48 Rectangle2D stageBounds;
49 int x1, y1, x2, y2;
|
6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this
8 * particular file as subject to the "Classpath" exception as provided
9 * by Oracle in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package test.robot.com.sun.glass.ui.monocle;
27
28 import com.sun.glass.ui.monocle.TestLog;
29 import test.robot.com.sun.glass.ui.monocle.TestApplication;
30 import test.robot.com.sun.glass.ui.monocle.input.devices.TestTouchDevice;
31 import test.robot.com.sun.glass.ui.monocle.input.devices.TestTouchDevices;
32 import javafx.geometry.Rectangle2D;
33 import javafx.scene.input.TouchEvent;
34 import org.junit.*;
35 import org.junit.runners.Parameterized;
36 import java.util.ArrayList;
37 import java.util.Collection;
38 import java.util.List;
39
40 public class SingleTouchNonFullScreenTest extends ParameterizedTestBase {
41
42 private static final TestCase[] TEST_CASES = {
43 new TestCase(200, 100, 400, 300, 200, 100, 599, 399),
44 new TestCase(100, 200, 400, 300, 100, 200, 499, 499),
45 };
46
47 private TestCase testCase;
48
49 static class TestCase {
50 Rectangle2D stageBounds;
51 int x1, y1, x2, y2;
|