assertEquals("onclick not as",
ON_CLICK,
label.getEventHandler(EventType.ON_CLICK).getScript());
ElementDetails menuElementDetails = menu.getElementDetails();
// if element details are not null, styles should be non null
assertNotNull("Menu ElementDetails should not be null",
menuElementDetails);
assertNotNull("Menu Styles should not be null",
menuElementDetails.getStyles());
ElementDetails elementDetails = label.getElementDetails();
assertNotNull("Label ElementDetails should not be null",
elementDetails);
assertNotNull("Styles should not be null after " +
"LabelElement#elementStart",
elementDetails.getStyles());
}
});
}