Sha256: a4e0a966a52686bf430c54cc661c226ac500415dfb9021b2371af5ce4e1a91d1
Contents?: true
Size: 624 Bytes
Versions: 5
Compression:
Stored size: 624 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'CONFIG.rb') 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 & 2 rubygems