public void test9(TestHarness harness)
{
// This test is taken from Intel's test suite
// (test.java.awt.ScrollbarTest). It passes on Sun
// but fails on Classpath.
Scrollbar bar = new Scrollbar();
bar.setValues(0, 10, -100, 100);
harness.check(bar.getValue(), 0);
harness.check(bar.getVisibleAmount(), 10);
harness.check(bar.getMinimum(), -100);
harness.check(bar.getMaximum(), 100);
bar.setMinimum(Integer.MIN_VALUE);
harness.check(bar.getValue(), -11);
harness.check(bar.getVisibleAmount(), 10);
harness.check(bar.getMinimum(), Integer.MIN_VALUE);
harness.check(bar.getMaximum(), -1);
}