summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-07-12 14:18:52 +0200
committerwout <wout@impinc.co.uk>2014-07-12 14:18:52 +0200
commit0f74fe7d0a2fb1c02c5beebf5f0f8360020f1fc1 (patch)
tree82bdcd06a6d581414ebf7e5ec472c587bdc77bd7 /spec
parent501cb5387007a89af382717376c773a1ec6b68ae (diff)
downloadsvg.js-0f74fe7d0a2fb1c02c5beebf5f0f8360020f1fc1.tar.gz
svg.js-0f74fe7d0a2fb1c02c5beebf5f0f8360020f1fc1.zip
Eliminate matrix translation errors
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/circle.js2
-rwxr-xr-xspec/spec/ellipse.js2
-rwxr-xr-xspec/spec/image.js2
-rwxr-xr-xspec/spec/line.js2
-rwxr-xr-xspec/spec/path.js2
-rwxr-xr-xspec/spec/polygon.js2
-rwxr-xr-xspec/spec/polyline.js2
-rwxr-xr-xspec/spec/text.js2
8 files changed, 8 insertions, 8 deletions
diff --git a/spec/spec/circle.js b/spec/spec/circle.js
index 8501a26..e41e7cf 100644
--- a/spec/spec/circle.js
+++ b/spec/spec/circle.js
@@ -170,7 +170,7 @@ describe('Circle', function() {
describe('translate()', function() {
it('sets the translation of an element', function() {
circle.transform({ x: 12, y: 12 })
- expect(circle.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(circle.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/ellipse.js b/spec/spec/ellipse.js
index a9eb03b..190b616 100755
--- a/spec/spec/ellipse.js
+++ b/spec/spec/ellipse.js
@@ -172,7 +172,7 @@ describe('Ellipse', function() {
describe('translate()', function() {
it('sets the translation of an element', function() {
ellipse.transform({ x: 12, y: 12 })
- expect(ellipse.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(ellipse.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/image.js b/spec/spec/image.js
index 91cfff6..e3efcc2 100755
--- a/spec/spec/image.js
+++ b/spec/spec/image.js
@@ -153,7 +153,7 @@ describe('Image', function() {
describe('translate()', function() {
it('should set the translation of an element', function() {
image.transform({ x: 12, y: 12 })
- expect(image.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(image.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/line.js b/spec/spec/line.js
index 97490ad..fdea31f 100755
--- a/spec/spec/line.js
+++ b/spec/spec/line.js
@@ -182,7 +182,7 @@ describe('Line', function() {
describe('translate()', function() {
it('should set the translation of an element', function() {
line.transform({ x: 12, y: 12 })
- expect(line.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(line.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/path.js b/spec/spec/path.js
index ae0e25e..3376ec1 100755
--- a/spec/spec/path.js
+++ b/spec/spec/path.js
@@ -179,7 +179,7 @@ describe('Path', function() {
describe('translate()', function() {
it('sets the translation of an element', function() {
path.transform({ x: 12, y: 12 })
- expect(path.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(path.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/polygon.js b/spec/spec/polygon.js
index 35c8836..1c01e84 100755
--- a/spec/spec/polygon.js
+++ b/spec/spec/polygon.js
@@ -173,7 +173,7 @@ describe('Polygon', function() {
describe('translate()', function() {
it('sets the translation of an element', function() {
polygon.transform({ x: 12, y: 12 })
- expect(polygon.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(polygon.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/polyline.js b/spec/spec/polyline.js
index 5b79934..ec8c25d 100755
--- a/spec/spec/polyline.js
+++ b/spec/spec/polyline.js
@@ -173,7 +173,7 @@ describe('Polyline', function() {
describe('translate()', function() {
it('sets the translation of an element', function() {
polyline.transform({ x: 12, y: 12 })
- expect(polyline.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(polyline.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})
diff --git a/spec/spec/text.js b/spec/spec/text.js
index 9574b4c..50f17f4 100755
--- a/spec/spec/text.js
+++ b/spec/spec/text.js
@@ -104,7 +104,7 @@ describe('Text', function() {
describe('translate()', function() {
it('sets the translation of an element', function() {
text.transform({ x: 12, y: 12 })
- expect(text.node.getAttribute('transform')).toBe('translate(12 12)')
+ expect(text.node.getAttribute('transform')).toBe('matrix(1,0,0,1,12,12)')
})
})