Sha256: 2b407e7598b229fd1f7ca782c25c8f0def12a37d5d3a87f20ee57788eb13f976
Contents?: true
Size: 578 Bytes
Versions: 1
Compression:
Stored size: 578 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper' # Test cases for the CssParser. class CssSelectorTests < Test::Unit::TestCase include CssParser def setup @cp = Parser.new end def test_at_page_rule # from http://www.w3.org/TR/CSS21/page.html#page-selectors css = <<-EOT @page { margin: 2cm } @page :first { margin-top: 10cm } EOT @cp.add_block!(css) assert_equal 'margin: 2cm;', @cp.find_by_selector('@page').join(' ') # assert_equal 'margin-top: 10cm;', @cp.find_by_selector('@page :first').join(' ') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
css_parser_master-1.2.4 | test/test_selector.rb |