ಮಾಡ್ಯೂಲ್ ಚರ್ಚೆಪುಟ:HtmlBuilder/testcases

All tests passed.

test_all:

Text Expected Actual
checkY Empty builder
checkY Plain text foo foo
checkY Empty div <div></div> <div></div>
checkY Div with text <div>foo</div> <div>foo</div>
checkY Text and div foo<div>bar</div> foo<div>bar</div>
checkY Nested div <div><div>foo</div></div> <div><div>foo</div></div>
checkY Div with attribute <div id="foo"></div> <div id="foo"></div>
checkY Div with multiple attributes <div id="foo" class="bar baz" lang="es"></div> <div id="foo" class="bar baz" lang="es"></div>
checkY Div with multiple attributes in other order <div class="bar baz" id="foo" lang="es"></div> <div class="bar baz" id="foo" lang="es"></div>
checkY Div with overwritten attribute <div id="baz" class="bar"></div> <div id="baz" class="bar"></div>
checkY Div with overwritten attribute in other order <div class="bar" id="baz"></div> <div class="bar" id="baz"></div>
checkY Div with attributes and text <div id="foo">bar</div> <div id="foo">bar</div>
checkY Div with style <div style="background:red;"></div> <div style="background:red;"></div>
checkY Div with multiple styles <div style="background:red;color:blue;"></div> <div style="background:red;color:blue;"></div>
checkY Div with multiple styles in other order <div style="color:blue;background:red;"></div> <div style="color:blue;background:red;"></div>
checkY Div with overwritten style <div style="background:green;color:blue;"></div> <div style="background:green;color:blue;"></div>
checkY Div with CSS text <div style="width:55px;height:77px;;"></div> <div style="width:55px;height:77px;;"></div>
checkY Div with explicitly overwritten style attribute <div style="color:blue;;"></div> <div style="color:blue;;"></div>
checkY addClass <div class="foo"></div> <div class="foo"></div>
checkY addClass with multiple classes <div class="foo bar baz"></div> <div class="foo bar baz"></div>
checkY Unclosed div <div> <div>
checkY Closing div tag </div> </div>
checkY Self-closing br tag <br /> <br />
checkY Ignored CSS values <div></div> <div></div>
checkY Ignored attribute values <div></div> <div></div>
checkY Empty CSS values <div></div> <div></div>
checkY Two nodes <b></b><i></i> <b></b><i></i>
checkY Two complicated nodes <div><b class="foo">bar</b>qux<i id="baz" style="color:yellow;"></i></div> <div><b class="foo">bar</b>qux<i id="baz" style="color:yellow;"></i></div>


Start a discussion about ಮಾಡ್ಯೂಲ್:HtmlBuilder/testcases

Start a discussion
Return to "HtmlBuilder/testcases" page.