// =====================================================================
// Test Expectations
// =====================================================================
ShorthandOptimizer optimizer = new HeterogeneousShorthandOptimizer(
StyleShorthands.BACKGROUND, checkerMock,
shorthandSetMock);
setPropertyValue(inputValues,
StylePropertyDetails.BACKGROUND_ATTACHMENT,
OptimizerHelper.ANY,
PropertyStatus.REQUIRED);
setPropertyValue(inputValues,
StylePropertyDetails.BACKGROUND_IMAGE,
BackgroundImageKeywords.NONE,
PropertyStatus.REQUIRED);
MutableStyleProperties outputValues =
ThemeFactory.getDefaultInstance().createMutableStyleProperties();
optimizer.optimize(TargetEntity.ELEMENT, inputValues, outputValues,
deviceValuesMock);
assertEquals("background-attachment:scroll;background-image:none",
outputValues.getStandardCSS());
}