Search in sources :

Example 11 with WCollapsible

use of com.github.bordertech.wcomponents.WCollapsible in project wcomponents by BorderTech.

the class WCollapsibleRenderer_Test method testDoRenderClientSideCollapse.

@Test
public void testDoRenderClientSideCollapse() throws IOException, SAXException, XpathException {
    WCollapsible collapsible = new WCollapsible(new WText(COLLAPSIBLE_CONTENT), COLLAPSIBLE_HEADING, WCollapsible.CollapsibleMode.CLIENT);
    assertSchemaMatch(collapsible);
    assertXpathEvaluatesTo("client", "//ui:collapsible/@mode", collapsible);
    assertRenderContentCorrectly(collapsible, true, true);
}
Also used : WCollapsible(com.github.bordertech.wcomponents.WCollapsible) WText(com.github.bordertech.wcomponents.WText) Test(org.junit.Test)

Aggregations

WCollapsible (com.github.bordertech.wcomponents.WCollapsible)11 WText (com.github.bordertech.wcomponents.WText)10 Test (org.junit.Test)9 HeadingLevel (com.github.bordertech.wcomponents.HeadingLevel)1 Margin (com.github.bordertech.wcomponents.Margin)1 WComponent (com.github.bordertech.wcomponents.WComponent)1 XmlStringBuilder (com.github.bordertech.wcomponents.XmlStringBuilder)1 SystemException (com.github.bordertech.wcomponents.util.SystemException)1 Date (java.util.Date)1