* Test that all the add methods actually increase the specificity.
*/
public void testAddIncreasesSpecificity() {
// Get the empty specificity.
Specificity EMPTY = calculator.getSpecificity();
Specificity after;
calculator.reset();
calculator.addAttributeSelector();
after = calculator.getSpecificity();
assertTrue("addAttributeSelector should increase specificity.",
after.compareTo(EMPTY) > 0);
calculator.reset();
calculator.addClassSelector();
after = calculator.getSpecificity();
assertTrue("addClassSelector should increase specificity.",
after.compareTo(EMPTY) > 0);
calculator.reset();
calculator.addElementSelector();
after = calculator.getSpecificity();
assertTrue("addElementSelector should increase specificity.",
after.compareTo(EMPTY) > 0);
calculator.reset();
calculator.addIDSelector();
after = calculator.getSpecificity();
assertTrue("addIDSelector should increase specificity.",
after.compareTo(EMPTY) > 0);
calculator.reset();
calculator.addPseudoClassSelector();
after = calculator.getSpecificity();
assertTrue("addPseudoClassSelector should increase specificity.",
after.compareTo(EMPTY) > 0);
calculator.reset();
calculator.addPseudoElementSelector();
after = calculator.getSpecificity();
assertTrue("addPseudoElementSelector should increase specificity.",
after.compareTo(EMPTY) > 0);
}