public void testDoMenuWithCSSEmulationStyle() throws Exception {
final DOMOutputBuffer buffer = new DOMOutputBuffer();
buffer.initialise();
testable.setCurrentBuffer(null, buffer);
TestMarinerPageContext context = new TestMarinerPageContext();
PaneInstance paneInstance = new TestPaneInstance() {
public OutputBuffer getCurrentBuffer() {
return buffer;
}
};
context.setFormatInstance(paneInstance);
TestDeviceLayoutContext layoutContext = new TestDeviceLayoutContext();
context.pushDeviceLayoutContext(layoutContext);
protocol.setMarinerPageContext(context);
MenuAttributes menuAttrs = new MenuAttributes();
menuAttrs.setStyles(StylesBuilder.getCompleteStyles(