class TestHTreeWabisabiObject
Public Instance Methods
ok(e, xml)
click to toggle source
# File vendor/qwik/lib/qwik/wabisabi-to-htree.rb, line 100 def ok(e, xml) ok_eq(e, generate(xml).inspect) end
test_all()
click to toggle source
# File vendor/qwik/lib/qwik/wabisabi-to-htree.rb, line 104 def test_all ok("{emptyelem <a>}", [:a]) ok("{emptyelem <a href=\"foo.html\">}", [:a, {:href=>"foo.html"}]) ok("{elem <a> {emptyelem <b>}}", [:a, [:b]]) ok("{elem <html> {elem <body> {elem <p> {elem <a href=\"foo.html\"> {text foo}}}}}", [:html, [:body, [:p, [:a, {:href => "foo.html"}, 'foo']]]]) end