Skip to content

Commit

Permalink
8234189: [TEST_BUG] Remove ignored and invalid graphics unit tests
Browse files Browse the repository at this point in the history
Reviewed-by: kcr
  • Loading branch information
arapte committed Nov 15, 2019
1 parent dc01309 commit 3d0cb49
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 167 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2019, 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
Expand Down Expand Up @@ -33,7 +33,6 @@
import java.io.IOException;
import java.io.InputStream;
import static org.junit.Assert.*;
import org.junit.Ignore;
import org.junit.Test;

public class ImageLoaderScalingTest {
Expand Down Expand Up @@ -154,12 +153,6 @@ public void testAllTheScalesBMP() throws Exception {
testAllTheScales("bmp");
}

@Ignore // libjpeg can scale the image itself and results are unpredictable
@Test
public void testAllTheScalesJPG() throws Exception {
testAllTheScales("jpg");
}

@Test
public void testAllTheScalesGIF() throws Exception {
testAllTheScales("gif");
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2016, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2019, 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
Expand Down Expand Up @@ -1532,27 +1532,6 @@ public void shouldThrowREOnLostRelease() {
((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventEnd();
}

// Reenable once indirect events are used
@Ignore("For now we've decided to ingore indirect events completely.")
@Test(expected=RuntimeException.class)
public void shouldThrowREOnLostIndirectRelease() {
Scene scene = createScene();
Rectangle rect =
(Rectangle) scene.getRoot().getChildrenUnmodifiable().get(0);

((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventBegin(
System.currentTimeMillis(), 1, false, false, false, false, false);
((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventNext(
TouchPoint.State.PRESSED, 1368, 110, 110, 110, 110);
((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventEnd();

((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventBegin(
System.currentTimeMillis(), 1, false, false, false, false, false);
((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventNext(
TouchPoint.State.PRESSED, 1, 110, 110, 110, 110);
((StubScene) SceneHelper.getPeer(scene)).getListener().touchEventEnd();
}

private Scene createScene() {
final Group root = new Group();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2019, 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
Expand Down Expand Up @@ -74,12 +74,6 @@ public void negativeWidthThrowsException2() {
new BackgroundSize(-2, 1, true, true, false, false);
}

@Ignore("Surprised that MIN_VALUE is not < 0")
@Test(expected = IllegalArgumentException.class)
public void negativeWidthThrowsException3() {
new BackgroundSize(Double.MIN_VALUE, 1, true, true, false, false);
}

@Ignore("Not handling positive infinity")
@Test(expected = IllegalArgumentException.class)
public void positiveInfinityWidthThrowsException() {
Expand Down Expand Up @@ -118,12 +112,6 @@ public void negativeHeightThrowsException2() {
new BackgroundSize(1, -2, true, true, false, false);
}

@Ignore("Surprised that MIN_VALUE is not < 0")
@Test(expected = IllegalArgumentException.class)
public void negativeHeightThrowsException3() {
new BackgroundSize(1, Double.MIN_VALUE, true, true, false, false);
}

@Ignore("Not handling positive infinity")
@Test(expected = IllegalArgumentException.class)
public void positiveInfinityHeightThrowsException() {
Expand Down

0 comments on commit 3d0cb49

Please sign in to comment.