Skip to content

Commit

Permalink
no need to detect css vendor prefix in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Sep 10, 2012
1 parent 0e8baaa commit 44ad318
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions test/fx.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,7 @@ <h1>Zepto effects tests</h1>
return str.replace(/-+(.)?/g, function(_, chr){ return chr ? chr.toUpperCase() : '' })
}

var stylePrefix = '', vendors = {Webkit: 'webkit', Moz: '', O: 'o', ms: 'MS'},
testEl = document.createElement('div')

$.each(vendors, function(vendor, event){
if (testEl.style[vendor + 'TransitionProperty'] !== undefined) {
stylePrefix = '-' + vendor.toLowerCase() + '-'
return false
}
})
var stylePrefix = $.fx.cssPrefix

Evidence.Assertions.assertStyle = function(expected, object, property, message) {
if (/^(transform|transition|animation)/.test(property)) property = stylePrefix + property
Expand Down

0 comments on commit 44ad318

Please sign in to comment.