buffer.initialise();
Element el = null;
Pane pane = null;
PaneAttributes attributes = null;
//=============================================================
// Styles defined = No
//=============================================================
pane = new Pane(null);
attributes = new PaneAttributes();
attributes.setStyles(StylesBuilder.getDeprecatedStyles());
attributes.setPane(pane);
protocol.openPane(buffer, attributes);
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);
attributes = new PaneAttributes();
attributes.setStyles(StylesBuilder.getDeprecatedStyles());
// attributes.setStyleClass("fred");
// attributes.setBackgroundColour("#ff0000");
// attributes.setBorderWidth("1");
// attributes.setCellPadding("2");
// attributes.setCellSpacing("3");
attributes.setPane(pane);
protocol.openPane(buffer, attributes);
try {
// A div will have been opened to render styles because:
// 1. This protocol supports stylesheets.