DevicePolicyConstants.WML_IMAGE_NOSAVE).returns("none").any();
cssVersion = new CSSVersionMock("cssVersion", expectations);
if (supportsBlink) {
CSSPropertyMock blink = supportsCSS ?
new CSSPropertyMock("display", expectations): null;
cssVersion.expects.getProperty(
StylePropertyDetails.MCS_TEXT_BLINK).returns(blink).any();
}
if (supportsUnderline) {
CSSPropertyMock underline = supportsCSS ?
new CSSPropertyMock("display", expectations): null;
cssVersion.expects.getProperty(
StylePropertyDetails.MCS_TEXT_UNDERLINE_COLOR).
returns(null).any();
cssVersion.expects.getProperty(
StylePropertyDetails.MCS_TEXT_UNDERLINE_STYLE).
returns(underline).any();
}
if (supportsStrike) {
CSSPropertyMock strike = supportsCSS ?
new CSSPropertyMock("display", expectations): null;
cssVersion.expects.getProperty(
StylePropertyDetails.MCS_TEXT_LINE_THROUGH_COLOR).
returns(null).any();
cssVersion.expects.getProperty(
StylePropertyDetails.MCS_TEXT_LINE_THROUGH_STYLE).
returns(strike).any();
}
if (supportsMarquee) {
CSSPropertyMock display =
new CSSPropertyMock("display", expectations);
cssVersion.expects.getProperty(
StylePropertyDetails.DISPLAY).
returns(display).any();
boolean result = supportsCSS? true: false;
display.expects.supportsKeyword(DisplayKeywords.MCS_MARQUEE).
returns(result).any();
CSSPropertyMock property = supportsCSS?
new CSSPropertyMock("property", expectations): null;
cssVersion.expects.getProperty(
StylePropertyDetails.MCS_MARQUEE_STYLE).
returns(property).any();
cssVersion.expects.getProperty(