Permalink
Browse files

Scientific notation

Cannot repro
  • Loading branch information...
koenbok committed May 1, 2016
1 parent a699ef8 commit 03ec3a8b204fb0cae2d2d16f4cc98f3b901ebf8e
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/tests/LayerTest.coffee
@@ -73,6 +73,15 @@ describe "Layer", ->
layer.width.should.equal 200
layer.style.width.should.equal "200px"
it "should set width not to scientific notation", ->
n = 0.000000000000002
n.toString().should.equal("2e-15")
layer = new Layer
layer.x = n
layer.style.webkitTransform.should.equal "translate3d(0px, 0px, 0px) scale3d(1, 1, 1) skew(0deg, 0deg) skewX(0deg) skewY(0deg) translateZ(0px) rotateX(0deg) rotateY(0deg) rotateZ(0deg) translateZ(0px)"
it "should set x and y", ->
layer = new Layer

0 comments on commit 03ec3a8

Please sign in to comment.