Sha256: 363a61c833945f952d284ce99253e59bc7958d12f786c69be28abd9953072bd8

Contents?: true

Size: 547 Bytes

Versions: 10

Compression:

Stored size: 547 Bytes

Contents

require "test_helper"

module Csscss::Parser
  module Outline
    describe self do
      include CommonParserTests

      before do
        @parser = Parser.new
        @trans = Transformer.new
      end

      it "converts shorthand rules to longhand" do
        trans("1px solid blue").must_equal([
          dec("outline-width", "1px"),
          dec("outline-style", "solid"),
          dec("outline-color", "blue")
        ])

        trans("solid").must_equal([
          dec("outline-style", "solid")
        ])
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
csscss-1.3.3 test/csscss/parser/outline_test.rb
csscss-1.3.2 test/csscss/parser/outline_test.rb
csscss-1.3.1 test/csscss/parser/outline_test.rb
csscss-1.3.0 test/csscss/parser/outline_test.rb
csscss-1.2.0 test/csscss/parser/outline_test.rb
csscss-1.1.0 test/csscss/parser/outline_test.rb
csscss-1.0.0 test/csscss/parser/outline_test.rb
csscss-0.2.1 test/csscss/parser/outline_test.rb
csscss-0.2.0 test/csscss/parser/outline_test.rb
csscss-0.1.0 test/csscss/parser/outline_test.rb