Module talk:HtmlBuilder/testcases

From Wowpedia
Jump to: navigation, search

All tests passed.


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