aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 14:51:34 +0100
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-11-12 14:51:34 +0100
commitbf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245 (patch)
tree0614edfac92e0ab9ff44144b79aa5802211ef5e0 /spec
parent334d9c73c2f74679a93b1d7b3e39b614f6444faa (diff)
downloadsvg.js-bf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245.tar.gz
svg.js-bf6e2aeb13f9a4bee2be1f8f7a70ca1a73215245.zip
remove native() methods, add methods of types directly to elemenet
Diffstat (limited to 'spec')
-rw-r--r--spec/spec/element.js7
-rw-r--r--spec/spec/matrix.js7
-rw-r--r--spec/spec/point.js10
3 files changed, 0 insertions, 24 deletions
diff --git a/spec/spec/element.js b/spec/spec/element.js
index b36ea82..9afedc6 100644
--- a/spec/spec/element.js
+++ b/spec/spec/element.js
@@ -10,13 +10,6 @@ describe('Element', function() {
expect(rect.node.instance).toBe(rect)
})
- describe('native()', function() {
- it('returns the node reference', function() {
- var rect = draw.rect(100,100)
- expect(rect.native()).toBe(rect.node)
- })
- })
-
describe('attr()', function() {
var rect
diff --git a/spec/spec/matrix.js b/spec/spec/matrix.js
index 42ac1fe..b6c0348 100644
--- a/spec/spec/matrix.js
+++ b/spec/spec/matrix.js
@@ -372,11 +372,4 @@ describe('Matrix', function() {
expect(matrix.f).toBeCloseTo(-81.2931393017)
})
})
-
- describe('native()', function() {
- it('returns the node reference', function() {
- expect(new SVG.Matrix().native() instanceof window.SVGMatrix).toBeTruthy()
- })
- })
-
})
diff --git a/spec/spec/point.js b/spec/spec/point.js
index 768d7e9..8be944a 100644
--- a/spec/spec/point.js
+++ b/spec/spec/point.js
@@ -60,16 +60,6 @@ describe('Point', function() {
expect(point.y).toBe(4)
})
})
-
- describe('with native SVGPoint given', function() {
- it('creates a point from native SVGPoint', function() {
- var point = new SVG.Point(new SVG.Point(2,4).native())
-
- expect(point.x).toBe(2)
- expect(point.y).toBe(4)
- })
- })
-
})
describe('clone()', function() {