* Test closing a pane where a div has been used to surround the pane's
* content.
*/
public void testClosePaneUseDiv() throws Exception {
PaneAttributes attributes = new PaneAttributes();
DOMOutputBuffer dom = setupForPaneTests(
PaneRendering.CREATE_ENCLOSING_ELEMENT, attributes);
// This does not effect the outcome of the test.
// context.setStyleClassName(PANE_CLASS);
final Element expected;
// @todo 2005060816 annotate child with style information if it's not inherited from the parent
expected = dom.openStyledElement("body", attributes);
dom.openElement("div");
dom.appendEncoded("Example");
protocol.closePane(dom, attributes);
assertSame("The DOM's current element isn't the body element",
dom.getCurrentElement(),
expected);
}