Sha256: ddb0e0a933d87d2206404709b3ca3afcc5b92031aa6ecff47b0b9233b03a9123
Contents?: true
Size: 629 Bytes
Versions: 1
Compression:
Stored size: 629 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') require 'test/unit' require 'nitro/mixin/xhtml' class TC_XhtmlMixin < Test::Unit::TestCase # :nodoc: all include Nitro include XhtmlMixin def test_all end def test_popup res = popup :text => 'Pop', :url => 'add-comment', :scrollbars => true exp = %{<a href="#" onclick="javascript: var pwl = (screen.width - 320) / 2; var pwt = (screen.height - 240) / 2; window.open('add-comment', 'Popup', 'width=320,height=240,top='+pwt+',left='+pwl+', resizable=noscrollbars=yes'); return false;"">Pop</a>} assert_equal exp, res end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.23.0 | test/nitro/mixin/tc_xhtml.rb |