Sha256: f6e0645d607f0121a9370914df10c9be2aa740cf4291274e2d9d67d291cfc49f
Contents?: true
Size: 633 Bytes
Versions: 5
Compression:
Stored size: 633 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), '..', '..', '..', 'lib') require 'test/unit' require 'nitro/helper/xhtml' class TC_XhtmlHelper < Test::Unit::TestCase # :nodoc: all include Nitro include XhtmlHelper 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
5 entries across 5 versions & 1 rubygems