Created
November 29, 2009 07:27
-
-
Save cowlby/244835 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var el = null; | |
describe('Element.getRotation', { | |
before_each: function() { el = new Element('div'); }, | |
'should return correct values': function() { | |
el.setStyle('-webkit-transform', 'rotate(0deg)'); | |
value_of(el.getRotation()).should_be(0); | |
el.setStyle('-webkit-transform', 'rotate(-90.1deg)'); | |
value_of(el.getRotation()).should_be(-90.1); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Element.getRotation [rerun] | |
should return correct values | |
function () { | |
el.setStyle('-webkit-transform', 'rotate(0deg)'); | |
value_of(el.getRotation()).should_be(0); | |
el.setStyle('-webkit-transform', 'rotate(-90.1deg)'); | |
value_of(el.getRotation()).should_be(-90.1); | |
} | |
actual value: | |
0 | |
should be: | |
-90.1 | |
at file:///Volumes/Macintosh%20HD/Users/pradador/Developer/mootools-pradador/trunk/Specs/Element/Element.Transformations.js?ver=2, line 9 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment