Sha256: 745ba793c0219d22c951eeb87ee39877e2063cf2632de6b380001e3ae7542cf6

Contents?: true

Size: 1012 Bytes

Versions: 5

Compression:

Stored size: 1012 Bytes

Contents

describe 'uki.background'

    it 'should unserialize themed backgrounds'
        b = uki.background('theme(panel)')
        b.should.be_an_instance_of uki.background.Sliced9
    end
    
    it 'should unserialize cssBox backgrounds'
        b = uki.background('cssBox(border: 1px solid red;background:#CCCCCC)')
        b.should.be_an_instance_of uki.background.CssBox
        // IE reorders elements
        b._container.style.border.should.include 'solid'
        b._container.style.border.should.include '1px'
        b._container.style.border.should.include 'red'
    end
    
    it 'should unserialize rows backgrounds'
        b = uki.background('rows(30, #CCCCCC, #FFFFFF)')
        b.should.be_an_instance_of uki.background.Rows
        b._colors.should.eql ['#CCCCCC', '#FFFFFF']
    end
    
    it 'should unserialize simple css backgrounds'
        b = uki.background('#CCCCCC')
        b.should.be_an_instance_of uki.background.Css
        b._options.background.should.be '#CCCCCC'
    end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
uki-1.1.1 frameworks/uki/spec/unit/background.spec.js
uki-1.1.0 frameworks/uki/spec/unit/background.spec.js
uki-1.0.2 frameworks/uki/spec/unit/background.spec.js
uki-1.0.1 frameworks/uki/spec/unit/background.spec.js
uki-1.0.0 frameworks/uki/spec/unit/background.spec.js