/**
* This exercises the checkPaneTableAttributes method when the pane has no
* style class, and a width value is set.
*/
public void notestCheckPaneTableAttributeWidth() throws Throwable {
PaneAttributes paneAttributes = new PaneAttributes();
paneAttributes.setStyles(StylesBuilder.getDeprecatedStyles());
// A table is not required if none of the appropriate attributes are
// set.
assertFalse("Table should not be required when there are no " +
"attributes set",
isTableRequired(null, paneAttributes));
paneAttributes = new PaneAttributes();
paneAttributes.setStyles(StylesBuilder.getDeprecatedStyles());
// A 100% width requires no table.
// paneAttributes.setWidth("100");
// paneAttributes.setWidthUnits(PaneAttributes.WIDTH_UNITS_VALUE_PERCENT);
assertFalse("Table should not be required for 100% width",
isTableRequired(null, paneAttributes));
paneAttributes = new PaneAttributes();
paneAttributes.setStyles(StylesBuilder.getDeprecatedStyles());
// A 0 width requires no table.
// paneAttributes.setWidth("0");
// paneAttributes.setWidthUnits(PaneAttributes.WIDTH_UNITS_VALUE_PERCENT);
assertFalse("Table should not be required for 0% width",
isTableRequired(null, paneAttributes));
paneAttributes = new PaneAttributes();
paneAttributes.setStyles(StylesBuilder.getDeprecatedStyles());
// A null width requires no table.
// paneAttributes.setWidth(null);
assertFalse("Table should not be required for null width",
isTableRequired(null, paneAttributes));
paneAttributes = new PaneAttributes();
paneAttributes.setStyles(StylesBuilder.getDeprecatedStyles());
// A width requires a table if there is no stylesheet.
// paneAttributes.setWidth("55");
// paneAttributes.setWidthUnits(PaneAttributes.WIDTH_UNITS_VALUE_PIXELS);
assertTrue("Table should be required for 55 pixels width",
isTableRequired(null, paneAttributes));