Sha256: 06514b06b5ed1675822cc63e7e036b09ae48a02ac7585fba9fcbcc36da22d9c5

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 Bytes

Contents

require File.dirname(__FILE__) + '/test_helper'

# Test cases for reading and generating CSS shorthand properties
class CssSelectorParserTests < Test::Unit::TestCase
  include CssParser

  def setup
    @cp = CssParser::Parser.new
    @css = <<-EOT
      html, body, p { margin: 0px; }
      p { padding: 0px; }
      #content { font: 12px/normal sans-serif; }
    EOT
  end

  def test_selector_parser
    selector = CssParser::Selector.new('table', 'margin: 0px', 9999)    
    # puts selector.inspect

    selector.each_declaration do |decl|
      # puts decl.inspect
    end 

    selector = CssParser::Selector.new('table', 'margin: 0px; padding: 0px;', 9999)    
    # puts selector.inspect
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
css_parser_master-1.2.4 test/test_selector_parsing.rb