use of elemental2.dom.DOMTokenList in project kie-wb-common by kiegroup.
the class DecisionNavigatorViewTest method testHideDecisionComponentsContainer.
@Test
public void testHideDecisionComponentsContainer() {
final DOMTokenList classList = mock(DOMTokenList.class);
decisionComponentsContainer.classList = classList;
view.hideDecisionComponentsContainer();
verify(classList).add(HIDDEN_CSS_CLASS);
}
use of elemental2.dom.DOMTokenList in project kie-wb-common by kiegroup.
the class DecisionNavigatorViewTest method testShowDecisionComponentsContainer.
@Test
public void testShowDecisionComponentsContainer() {
final DOMTokenList classList = mock(DOMTokenList.class);
decisionComponentsContainer.classList = classList;
view.showDecisionComponentsContainer();
verify(classList).remove(HIDDEN_CSS_CLASS);
}
use of elemental2.dom.DOMTokenList in project kie-wb-common by kiegroup.
the class ListItemViewCssHelperTest method testAsNonFocusedDataType.
@Test
public void testAsNonFocusedDataType() {
final Element element = mock(Element.class);
final DOMTokenList classList = mock(DOMTokenList.class);
element.classList = classList;
ListItemViewCssHelper.asNonFocusedDataType(element);
verify(classList).remove(FOCUSED_CSS_CLASS);
}
use of elemental2.dom.DOMTokenList in project kie-wb-common by kiegroup.
the class ListItemViewCssHelperTest method testIsFocusedDataTypeWhenItIsFocused.
@Test
public void testIsFocusedDataTypeWhenItIsFocused() {
final Element element = mock(Element.class);
final DOMTokenList classList = mock(DOMTokenList.class);
element.classList = classList;
when(classList.contains(FOCUSED_CSS_CLASS)).thenReturn(true);
assertTrue(ListItemViewCssHelper.isFocusedDataType(element));
}
use of elemental2.dom.DOMTokenList in project kie-wb-common by kiegroup.
the class ListItemViewCssHelperTest method testIsRightArrowWhenItIsRightArrow.
@Test
public void testIsRightArrowWhenItIsRightArrow() {
final Element element = mock(Element.class);
final DOMTokenList classList = mock(DOMTokenList.class);
element.classList = classList;
when(classList.contains(RIGHT_ARROW_CSS_CLASS)).thenReturn(true);
assertTrue(ListItemViewCssHelper.isRightArrow(element));
}
Aggregations