File tree Expand file tree Collapse file tree
src/test/scala/org/nlogo/models Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments