Sha256: 5c78b39f1df31d704829d834f4d9390c923490fe0dc83dd87f1aab877c89fe42
Contents?: true
Size: 773 Bytes
Versions: 10
Compression:
Stored size: 773 Bytes
Contents
require "test_helper" module Csscss::Parser module BorderWidth describe BorderWidth do include CommonParserTests before do @parser = Parser.new @trans = Transformer.new end it "converts shorthand rules to longhand" do trans("thin thick inherit 10em").must_equal([ dec("border-top-width", "thin"), dec("border-right-width", "thick"), dec("border-bottom-width", "inherit"), dec("border-left-width", "10em") ]) trans("thin thick").must_equal([ dec("border-top-width", "thin"), dec("border-right-width", "thick"), dec("border-bottom-width", "thin"), dec("border-left-width", "thick") ]) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems