Sha256: 11f1a9d0c9da3f4a191770e36282526da4a2eff9d583a0b902f2fc5cec9956df
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 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=no,scrollbars=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.24.0 | test/nitro/mixin/tc_xhtml.rb |