"<hr style='color: red; " +
"border-top-style: solid; " +
"border-top-width: 1px'/>";
HorizontalRuleEmulator emulator =
new HorizontalRuleEmulatorWithBorderStylingOnHorizontalRule();
/**
* Test no style applied
*/
element = emulator.emulateHorizontalRule(new DOMOutputBuffer(),
createHorizontalRuleAttributes(null));
assertEquals("Incorrect Hr Emulation",noStyle_Expected,
helper.render(element));
/**
* Test height style applied
*/
element = emulator.emulateHorizontalRule(new DOMOutputBuffer(),
createHorizontalRuleAttributes("height: 5px"));
assertEquals("Incorrect Hr Emulation",heightStyle_Expected,
helper.render(element));
/**
* Test colour style applied
*/
element = emulator.emulateHorizontalRule(new DOMOutputBuffer(),
createHorizontalRuleAttributes("color: red"));
assertEquals("Incorrect Hr Emulation",colorStyle_Expected,
helper.render(element));
}