Skip to content

Commit d2195be

Browse files
committed
Removed unnecessary test
1 parent e50945a commit d2195be

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/test/scala/org/nlogo/models/BadInterfacesTests.scala

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,4 @@ class BadInterfacesTests extends TestModels {
1515
if output.fontSize < 8 || output.fontSize > 14
1616
} yield s"OUTPUT has font size ${output.fontSize}"
1717
}
18-
19-
testModels("Textboxes (i.e., notes) should be tall enough to fit their content") { model =>
20-
for {
21-
note <- model.widgets.collect { case w: TextBox=> w }
22-
text <- note.display.toSeq
23-
noteHeight = note.height
24-
dummyLabel = new JLabel(s"<html>$text</html>") {
25-
setFont(getFont.deriveFont(note.fontSize.toFloat))
26-
}
27-
desiredHeight = dummyLabel.getPreferredSize.height
28-
if noteHeight < desiredHeight
29-
} yield s"Content height is $desiredHeight px but note height is $noteHeight px. " +
30-
s"It should be $desiredHeight px to properly fit the content:\n$text"
31-
}
3218
}

0 commit comments

Comments
 (0)