Skip to content

Commit 2a4e626

Browse files
committed
Simplified tests as they are not really working in console mode.
1 parent e7f0cdc commit 2a4e626

2 files changed

Lines changed: 2 additions & 22 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ bin/
66
.project
77
.settings/
88
*.sc
9+
.DS_Store

src/test/scala/hevs/graphics/BasicTest.scala

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,4 @@ class BasicTest {
4646
}
4747
}
4848

49-
@Test
50-
def testClick(): Unit = {
51-
assumeFalse(headless)
52-
val w = 200
53-
val h = 150
54-
val f = FunGraphics(w, h, 0, 0, "hello", true)
55-
var clicked = false
56-
f.addMouseListener(new MouseAdapter() {
57-
override def mouseClicked(x: MouseEvent) : Unit = {
58-
println(f"mouseClicked x:${x.getX} y:${x.getY}")
59-
clicked = true
60-
}
61-
})
62-
63-
val x = new FrameFixture(f.mainFrame)
64-
x.robot().click(f.mainFrame.getContentPane, new Point(w / 2, h / 2))
65-
x.robot().click(f.mainFrame.getContentPane, new Point(0, 0))
66-
67-
println(s"clicked:$clicked")
68-
assertTrue(clicked)
69-
}
70-
}
49+
}

0 commit comments

Comments
 (0)