use of com.gargoylesoftware.htmlunit.css.StyleAttributes.Definition in project htmlunit by HtmlUnit.
the class StyleAttributesTest method unique.
/**
* Test the uniqueness of the property names.
*/
@Test
public void unique() {
final List<String> nameList = new ArrayList<>();
for (final Definition definition : StyleAttributes.Definition.values()) {
final String propertyName = definition.getPropertyName();
if (nameList.contains(propertyName)) {
fail("StyleAttributes.Definition: the property name '" + propertyName + "' is defined more than once");
}
nameList.add(propertyName);
}
}
Aggregations