DOMOutputBuffer buffer = new DOMOutputBuffer();
buffer.initialise();
Element el = null;
Pane pane = null;
PaneAttributes attributes = null;
//=============================================================
// Styles defined = No
//=============================================================
pane = new Pane(null);
pane.setName(PANE_NAME);
attributes = new PaneAttributes();
attributes.setStyles(StylesBuilder.getDeprecatedStyles());
attributes.setPane(pane);
protocol.openPane(buffer, attributes);
// We expect absolutely no markup to be rendered for a pane that has
// no attributes and no styling
assertSame("The buffer current element should be the root element " +
"but was" + buffer.getCurrentElement(),
buffer.getRoot(),
buffer.getCurrentElement());
//=============================================================
// Styles defined = Yes
// @todo XDIME-CP pass in Styles and check they're correctly propagated through
//=============================================================
pane = new Pane(null);
pane.setName(PANE_NAME);
attributes = new PaneAttributes();
attributes.setStyles(StylesBuilder.getDeprecatedStyles());
// attributes.setStyleClass("fred");
// attributes.setBackgroundColour("#ff0000");