{reason:'ERROR: property value `abc` is not supported for `transition-timing-function` (supported values are: `linear`|`ease`|`ease-in`|`ease-out`|`ease-in-out`|`cubic-bezier(n,n,n,n)`)'}
])
done()
})
})
it('parse unknown',function(done){
varcode={
foo:{
background:'#ff0000',
abc:'123',
def:'456px',
ghi:'789pt',
AbcDef:'456',
abcDef:'abc'
}
}
styler.validate(code,function(err,data){
expect(err).is.undefined
expect(data).is.an.object
expect(data.jsonStyle).eql({
foo:{
background:'#ff0000',
abc:123,
def:'456px',
ghi:'789pt',
AbcDef:456,
abcDef:'abc'
}
})
expect(data.log).eql([
{reason:'WARNING: `background` is not a standard property name (may not be supported), suggest `background-color`'},
{reason:'WARNING: `abc` is not a standard property name (may not be supported)'},
{reason:'WARNING: `def` is not a standard property name (may not be supported)'},
{reason:'WARNING: `ghi` is not a standard property name (may not be supported)'},
{reason:'WARNING: `-abc-def` is not a standard property name (may not be supported)'},
{reason:'WARNING: `abc-def` is not a standard property name (may not be supported)'}
> This package is auto-generated. For pull requests please see [src/platforms/weex/entry-compiler.js](https://github.com/vuejs/vue/tree/dev/src/platforms/weex/entry-compiler.js).