Sha256: 766a97a055a1926991649fb710ab557cc5b9e81a8a58b76a40443d33a8221ff8
Contents?: true
Size: 676 Bytes
Versions: 12
Compression:
Stored size: 676 Bytes
Contents
require 'test/unit' module Wee; end require 'wee/renderer/html/writer' require 'wee/renderer/html/brushes' require 'wee/renderer/html/canvas' require 'wee/context' class Test_HtmlCanvas < Test::Unit::TestCase def test_simple rctx = Wee::RenderingContext.new rctx.document = Wee::HtmlWriter.new(doc='') c = Wee::HtmlCanvas.new(rctx) c.form.action("foo").with { c.table { c.table_row.id("myrow").with { c.table_data.align_top.with("Hello world") } } c.space } assert_equal %[<form action="foo" method="POST"><table><tr id="myrow"><td align="top">Hello world</td></tr></table> </form>], doc end end
Version data entries
12 entries across 12 versions & 2 rubygems