/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
* @test
* @bug 4726194 7124209
* @summary Tests for 4726194
* @author Phil Milne
*/
public class bug4726194 {
private static String[] hConstraints = {SpringLayout.WEST, "Width", SpringLayout.EAST, SpringLayout.HORIZONTAL_CENTER};
private static String[] vConstraints = {SpringLayout.NORTH, "Height", SpringLayout.SOUTH, SpringLayout.VERTICAL_CENTER, SpringLayout.BASELINE};
private static boolean TEST_DUPLICATES = false;
try {
public void run() {
int minLevel = 2;
int maxLevel = 2;
test(i, true);
test(i, false);
}
}
});
throw new RuntimeException("FAILED: SwingUtilities.invokeAndWait method failed!");
}
}
}
}
}
}
throw new RuntimeException("Values are wrong!!! ");
}
}
if (horizontal) {
throw new RuntimeException("WEST + WIDTH != EAST!!! ");
}
int[] a2 = getValues(c, new String[]{SpringLayout.WEST, SpringLayout.WIDTH, SpringLayout.HORIZONTAL_CENTER});
throw new RuntimeException("WEST + WIDTH/2 != HORIZONTAL_CENTER!!! ");
}
} else {
throw new RuntimeException("NORTH + HEIGHT != SOUTH!!! ");
}
int[] a4 = getValues(c, new String[]{SpringLayout.NORTH, SpringLayout.HEIGHT, SpringLayout.VERTICAL_CENTER});
if (vcDiff > 1) {
throw new RuntimeException("NORTH + HEIGHT/2 != VERTICAL_CENTER!!! ");
}
int[] a5 = getValues(c, new String[]{SpringLayout.NORTH, SpringLayout.BASELINE, SpringLayout.SOUTH});
throw new RuntimeException("BASELINE is not in the range: [NORTH, SOUTH]!!!");
}
}
}
}
if (s == null) {
return FAIL;
}
}
return result;
}
if (level == 0) {
return;
}
continue;
}
}
}
}