for (Panel p : selectedPanels) {
panel = (TestPanel) p;
Assert.assertEquals(panel.getTitleFontStyle().intValue(), Font.BOLD);
MCTViewManifestationInfo info = CanvasManifestation.getManifestationInfo(panel.getWrappedManifestation());
Assert.assertEquals(info.getPanelTitleFontStyle().intValue(), Font.BOLD);
}
CanvasFormattingController.notifyTitleBarFontStyleSelected(Font.ITALIC, selectedPanels);
for (Panel p : selectedPanels) {
panel = (TestPanel) p;
Assert.assertEquals(panel.getTitleFontStyle().intValue(), Font.ITALIC);
MCTViewManifestationInfo info = CanvasManifestation.getManifestationInfo(panel.getWrappedManifestation());
Assert.assertEquals(info.getPanelTitleFontStyle().intValue(), Font.ITALIC);
}
CanvasFormattingController.notifyTitleBarFontStyleSelected(Font.BOLD + Font.ITALIC, selectedPanels);
for (Panel p : selectedPanels) {
panel = (TestPanel) p;
Assert.assertEquals(panel.getTitleFontStyle().intValue(), Font.BOLD+ Font.ITALIC);
MCTViewManifestationInfo info = CanvasManifestation.getManifestationInfo(panel.getWrappedManifestation());
Assert.assertEquals(info.getPanelTitleFontStyle().intValue(), Font.BOLD+ Font.ITALIC);
}
}