diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/RAFPlugin.js | 2 | ||||
-rw-r--r-- | spec/spec/animation/Controller.js | 2 | ||||
-rw-r--r-- | spec/spec/animation/Runner.js | 8 | ||||
-rw-r--r-- | spec/spec/animation/Timeline.js | 18 | ||||
-rw-r--r-- | spec/spec/elements/Dom.js | 4 | ||||
-rw-r--r-- | spec/spec/elements/Marker.js | 2 | ||||
-rw-r--r-- | spec/spec/elements/Mask.js | 2 | ||||
-rw-r--r-- | spec/spec/elements/Tspan.js | 2 | ||||
-rw-r--r-- | spec/spec/modules/core/containerGeometry.js | 4 | ||||
-rw-r--r-- | spec/spec/modules/core/event.js | 8 | ||||
-rw-r--r-- | spec/spec/modules/optional/css.js | 2 | ||||
-rw-r--r-- | spec/spec/modules/optional/data.js | 2 | ||||
-rw-r--r-- | spec/spec/modules/optional/sugar.js | 2 | ||||
-rw-r--r-- | spec/spec/types/EventTarget.js | 2 | ||||
-rw-r--r-- | spec/spec/types/List.js | 2 | ||||
-rw-r--r-- | spec/spec/types/Matrix.js | 2 | ||||
-rw-r--r-- | spec/spec/types/SVGArray.js | 4 | ||||
-rw-r--r-- | spec/spec/utils/utils.js | 2 |
18 files changed, 35 insertions, 35 deletions
diff --git a/spec/RAFPlugin.js b/spec/RAFPlugin.js index 61eed46..770212c 100644 --- a/spec/RAFPlugin.js +++ b/spec/RAFPlugin.js @@ -1,6 +1,6 @@ /* globals jasmine */ /** - * Jasmine RequestAnimationFrame: a set of helpers for testing funcionality + * Jasmine RequestAnimationFrame: a set of helpers for testing functionality * that uses requestAnimationFrame under the Jasmine BDD framework for JavaScript. */ function RAFPlugin (jasmine) { diff --git a/spec/spec/animation/Controller.js b/spec/spec/animation/Controller.js index b1d4b8f..2545235 100644 --- a/spec/spec/animation/Controller.js +++ b/spec/spec/animation/Controller.js @@ -384,7 +384,7 @@ describe('Controller.js', () => { expect(pid.done(context)).toBe(true) }) - it('caculates a new value', () => { + it('calculates a new value', () => { const pid = new PID() expect(pid.step(0, 100, 16, {})).toBe(20) }) diff --git a/spec/spec/animation/Runner.js b/spec/spec/animation/Runner.js index b22bdcc..b9a6342 100644 --- a/spec/spec/animation/Runner.js +++ b/spec/spec/animation/Runner.js @@ -886,7 +886,7 @@ describe('Runner.js', () => { describe('private Methods', () => { describe('_rememberMorpher()', () => { - it('adds a morper for a method to the runner', () => { + it('adds a morpher for a method to the runner', () => { const runner = new Runner() const morpher = new Morphable() runner._rememberMorpher('move', morpher) @@ -1078,7 +1078,7 @@ describe('Runner.js', () => { }) describe('_addRunner()', () => { - it('adds a runenr to the runner array of this element', () => { + it('adds a runner to the runner array of this element', () => { const rect = new Rect() rect._prepareRunner() const spy = spyOn(rect._transformationRunners, 'add') @@ -1569,7 +1569,7 @@ describe('Runner.js', () => { expect(element.x()).toBe(15) }) - it('retargets corectly', () => { + it('retargets correctly', () => { const element = new Rect().x(10) const runner = new Runner(100).ease('-').element(element) runner._queueNumberDelta('x', 10) @@ -1606,7 +1606,7 @@ describe('Runner.js', () => { expect(element.fill()).toBe('#808080') }) - it('retargets corectly', () => { + it('retargets correctly', () => { const element = new Rect().x(10) const runner = new Runner(100).ease('-').element(element) runner._queueObject('x', 20) diff --git a/spec/spec/animation/Timeline.js b/spec/spec/animation/Timeline.js index f23e620..8cdf43f 100644 --- a/spec/spec/animation/Timeline.js +++ b/spec/spec/animation/Timeline.js @@ -385,7 +385,7 @@ describe('Timeline.js', () => { it('does a step in the timeline and runs all runners', () => { const timeline = new Timeline() const runner = new Runner(1000) - timeline.schedule(runner).play() // we have to play because its syncronous here + timeline.schedule(runner).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(16) expect(runner.time()).toBe(16) }) @@ -393,7 +393,7 @@ describe('Timeline.js', () => { it('doenst run runners which start later', () => { const timeline = new Timeline() const runner = new Runner(1000) - timeline.schedule(runner, 100).play() // we have to play because its syncronous here + timeline.schedule(runner, 100).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(16) expect(runner.time()).toBe(0) }) @@ -412,7 +412,7 @@ describe('Timeline.js', () => { it('doesnt run runners if they are not active', () => { const timeline = new Timeline() const runner = new Runner(1000).active(false) - timeline.schedule(runner).play() // we have to play because its syncronous here + timeline.schedule(runner).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(16) expect(runner.time()).toBe(0) }) @@ -420,7 +420,7 @@ describe('Timeline.js', () => { it('unschedules runner if its finished', () => { const timeline = new Timeline() const runner = new Runner(1000) - timeline.schedule(runner).play() // we have to play because its syncronous here + timeline.schedule(runner).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(1000) jasmine.RequestAnimationFrame.tick(1) expect(runner.time()).toBe(1001) @@ -430,7 +430,7 @@ describe('Timeline.js', () => { it('does not unschedule if runner is persistent forever', () => { const timeline = new Timeline() const runner = new Runner(1000).persist(true) - timeline.schedule(runner).play() // we have to play because its syncronous here + timeline.schedule(runner).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(1000) jasmine.RequestAnimationFrame.tick(1) expect(runner.time()).toBe(1001) @@ -440,7 +440,7 @@ describe('Timeline.js', () => { it('does not unschedule if runner is persistent for a certain time', () => { const timeline = new Timeline() const runner = new Runner(1000).persist(100) - timeline.schedule(runner).play() // we have to play because its syncronous here + timeline.schedule(runner).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(1000) jasmine.RequestAnimationFrame.tick(1) expect(runner.time()).toBe(1001) @@ -452,7 +452,7 @@ describe('Timeline.js', () => { const timeline = new Timeline().on('finished', spy) const runner = new Runner(1000) spy.calls.reset() - timeline.schedule(runner).play() // we have to play because its syncronous here + timeline.schedule(runner).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(1000) jasmine.RequestAnimationFrame.tick(1) expect(spy).toHaveBeenCalled() @@ -463,7 +463,7 @@ describe('Timeline.js', () => { const timeline = new Timeline().on('finished', spy).time(1200).reverse(true) const runner = new Runner(1000) spy.calls.reset() - timeline.schedule(runner, 0).play() // we have to play because its syncronous here + timeline.schedule(runner, 0).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(1) expect(spy).not.toHaveBeenCalled() }) @@ -473,7 +473,7 @@ describe('Timeline.js', () => { const timeline = new Timeline().on('finished', spy).reverse(true) const runner = new Runner(1000) spy.calls.reset() - timeline.schedule(runner, 0).play() // we have to play because its syncronous here + timeline.schedule(runner, 0).play() // we have to play because its synchronous here jasmine.RequestAnimationFrame.tick(1) expect(spy).toHaveBeenCalled() }) diff --git a/spec/spec/elements/Dom.js b/spec/spec/elements/Dom.js index deb665a..f4864b3 100644 --- a/spec/spec/elements/Dom.js +++ b/spec/spec/elements/Dom.js @@ -89,7 +89,7 @@ describe('Dom.js', function () { expect(rect.addTo(g)).toBe(rect) }) - it('puts an element innto another element', () => { + it('puts an element into another element', () => { const g = new G() const rect = new Rect() const spy = spyOn(g, 'put') @@ -531,7 +531,7 @@ describe('Dom.js', function () { expect(rect.round(1).attr()).toEqual({ id: 'foo', x: 10.7, y: 3, width: 123.5 }) }) - it('rounds the given attribues whose values are numbers to the passed precision', () => { + it('rounds the given attributes whose values are numbers to the passed precision', () => { const rect = new Rect({ id: 'foo', x: 10.678, y: 3, width: 123.456 }) expect(rect.round(1, [ 'id', 'x' ]).attr()).toEqual({ id: 'foo', x: 10.7, y: 3, width: 123.456 }) }) diff --git a/spec/spec/elements/Marker.js b/spec/spec/elements/Marker.js index d2726a9..63e06fe 100644 --- a/spec/spec/elements/Marker.js +++ b/spec/spec/elements/Marker.js @@ -38,7 +38,7 @@ describe('Marker.js', function () { }) describe('ref()', () => { - it('sets refX and refY attriute', () => { + it('sets refX and refY attribute', () => { const marker = new Marker().ref(10, 20) expect(marker.attr('refX')).toBe(10) expect(marker.attr('refY')).toBe(20) diff --git a/spec/spec/elements/Mask.js b/spec/spec/elements/Mask.js index b9c97f3..913108a 100644 --- a/spec/spec/elements/Mask.js +++ b/spec/spec/elements/Mask.js @@ -55,7 +55,7 @@ describe('Mask.js', () => { describe('Element', () => { describe('masker()', () => { - it('returns the instance of Mask the current element is maskped with', () => { + it('returns the instance of Mask the current element is masked with', () => { const canvas = SVG().addTo(container) const mask = canvas.mask() const rect = canvas.rect(100, 100).maskWith(mask) diff --git a/spec/spec/elements/Tspan.js b/spec/spec/elements/Tspan.js index a2e6620..d6f42b2 100644 --- a/spec/spec/elements/Tspan.js +++ b/spec/spec/elements/Tspan.js @@ -125,7 +125,7 @@ describe('Tspan.js', () => { describe('Text', () => { describe('newLine()', () => { - it('creates a tspan and calles newLine() on it', () => { + it('creates a tspan and calls newLine() on it', () => { const text = new Text() const tspan = text.newLine() expect(tspan).toEqual(any(Tspan)) diff --git a/spec/spec/modules/core/containerGeometry.js b/spec/spec/modules/core/containerGeometry.js index 3bdb109..7bbd2c9 100644 --- a/spec/spec/modules/core/containerGeometry.js +++ b/spec/spec/modules/core/containerGeometry.js @@ -101,7 +101,7 @@ describe('containerGeometry.js', () => { expect(g.x()).toBe(g.bbox().x) expect(g.x()).toBe(10) }) - it('calls move with the paramater as x', () => { + it('calls move with the parameter as x', () => { const canvas = SVG().addTo(container) const g = canvas.group() g.rect(100, 200).move(111, 223) @@ -127,7 +127,7 @@ describe('containerGeometry.js', () => { expect(g.y()).toBe(20) }) - it('calls move with the paramater as y', () => { + it('calls move with the parameter as y', () => { const canvas = SVG().addTo(container) const g = canvas.group() g.rect(100, 200).move(111, 223) diff --git a/spec/spec/modules/core/event.js b/spec/spec/modules/core/event.js index f93f661..44c0a0b 100644 --- a/spec/spec/modules/core/event.js +++ b/spec/spec/modules/core/event.js @@ -55,7 +55,7 @@ describe('event.js', () => { expect(spy).toHaveBeenCalledWith(any(getWindow().CustomEvent)) }) - it('binds to multiple events with space or comma seperated string', () => { + it('binds to multiple events with space or comma separated string', () => { const eventTarget = new EventTarget() const spy = createSpy('spy') on(eventTarget, 'event1 event2, event3', spy) @@ -95,7 +95,7 @@ describe('event.js', () => { expect(spy).toHaveBeenCalledTimes(1) }) - it('unbinds multiple events with space or comma seperated string', () => { + it('unbinds multiple events with space or comma separated string', () => { const eventTarget = new EventTarget() const spy = createSpy('spy') on(eventTarget, 'event1 event2, event3', spy) @@ -109,7 +109,7 @@ describe('event.js', () => { expect(spy).toHaveBeenCalledTimes(3) }) - it('unbinds multiple events with space or comma seperated string', () => { + it('unbinds multiple events with space or comma separated string', () => { const eventTarget = new EventTarget() const spy = createSpy('spy') on(eventTarget, [ 'event1', 'event2', 'event3' ], spy) @@ -133,7 +133,7 @@ describe('event.js', () => { expect(spy).toHaveBeenCalledTimes(1) }) - it('unbinds all events incuding namespaced ones when only event is passed', () => { + it('unbinds all events including namespaced ones when only event is passed', () => { const eventTarget = new EventTarget() const spy = createSpy('spy') on(eventTarget, [ 'event1.ns1', 'event2.ns2', 'event3' ], spy) diff --git a/spec/spec/modules/optional/css.js b/spec/spec/modules/optional/css.js index 1a20fe6..b6c04bc 100644 --- a/spec/spec/modules/optional/css.js +++ b/spec/spec/modules/optional/css.js @@ -15,7 +15,7 @@ describe('css.js', () => { }) }) - it('returns an object with selected css properries', () => { + it('returns an object with selected css properties', () => { const rect = new Rect({ style: 'fill: none; outline-width: 1px; stroke: none' }) expect(rect.css([ 'fill', 'stroke' ])).toEqual({ fill: 'none', diff --git a/spec/spec/modules/optional/data.js b/spec/spec/modules/optional/data.js index 786eaee..bdb1ca5 100644 --- a/spec/spec/modules/optional/data.js +++ b/spec/spec/modules/optional/data.js @@ -15,7 +15,7 @@ describe('data.js', () => { }) }) - it('returns an object with selected data properries', () => { + it('returns an object with selected data properties', () => { const rect = new Rect({ 'data-fill': 'none', 'data-outline-width': '1px', 'data-stroke': 'none' }) expect(rect.data([ 'fill', 'stroke' ])).toEqual({ fill: 'none', diff --git a/spec/spec/modules/optional/sugar.js b/spec/spec/modules/optional/sugar.js index f762ed0..84c95b0 100644 --- a/spec/spec/modules/optional/sugar.js +++ b/spec/spec/modules/optional/sugar.js @@ -268,7 +268,7 @@ describe('sugar.js', () => { expect(spy).toHaveBeenCalledWith({ flip: 'both', origin: 'center' }, true) }) - // this works because only x and y are valid flip values. Evereything else flips on both axis + // this works because only x and y are valid flip values. Everything else flips on both axis it('sets flip to both and origin to number when called with origin only', function () { const rect = new Rect() const spy = spyOn(rect, 'transform') diff --git a/spec/spec/types/EventTarget.js b/spec/spec/types/EventTarget.js index 912924a..e27a71c 100644 --- a/spec/spec/types/EventTarget.js +++ b/spec/spec/types/EventTarget.js @@ -26,7 +26,7 @@ describe('EventTarget.js', () => { }) describe('dispatch()', () => { - it('evemtually calls dispatchEvent on the target and returns the event', () => { + it('eventually calls dispatchEvent on the target and returns the event', () => { const target = new EventTarget() const spy = spyOn(target, 'dispatchEvent').and.callThrough() const options = { cancelable: false } diff --git a/spec/spec/types/List.js b/spec/spec/types/List.js index 9ebaae4..eb0b40b 100644 --- a/spec/spec/types/List.js +++ b/spec/spec/types/List.js @@ -43,7 +43,7 @@ describe('List.js', () => { })) }) - it('calls a method on every element in the list and passes aguments when a string is passed', () => { + it('calls a method on every element in the list and passes arguments when a string is passed', () => { const list = new List([ 10, 11, 12 ]) expect(list.each('toString', 16)).toEqual([ 'a', 'b', 'c' ]) }) diff --git a/spec/spec/types/Matrix.js b/spec/spec/types/Matrix.js index 0ef5273..bddf6fd 100644 --- a/spec/spec/types/Matrix.js +++ b/spec/spec/types/Matrix.js @@ -148,7 +148,7 @@ describe('Matrix.js', () => { } }) - it('throws if matrix is not inversable', () => { + it('throws if matrix is not invertible', () => { const matrix = new Matrix(0, 0, 0, 0, 0, 0) expect(() => matrix.inverse()).toThrowError('Cannot invert matrix(0,0,0,0,0,0)') }) diff --git a/spec/spec/types/SVGArray.js b/spec/spec/types/SVGArray.js index cefc54e..dc58a89 100644 --- a/spec/spec/types/SVGArray.js +++ b/spec/spec/types/SVGArray.js @@ -23,11 +23,11 @@ describe('SVGArray.js', () => { expect(array + '').toBe('0.343 0.669 0.119 0 0 0.249 -0.626 0.13 0 0 0.172 0.334 0.111 0 0 0 0 0 1 0') }) - it('parses space seperated string and converts it to array', () => { + it('parses space separated string and converts it to array', () => { expect((new SVGArray('1 2 3 4')).valueOf()).toEqual([ 1, 2, 3, 4 ]) }) - it('parses comma seperated string and converts it to array', () => { + it('parses comma separated string and converts it to array', () => { expect((new SVGArray('1,2,3,4')).valueOf()).toEqual([ 1, 2, 3, 4 ]) }) diff --git a/spec/spec/utils/utils.js b/spec/spec/utils/utils.js index 5606222..5a2ae97 100644 --- a/spec/spec/utils/utils.js +++ b/spec/spec/utils/utils.js @@ -70,7 +70,7 @@ describe('utils.js', function () { }) describe('degrees()', function () { - it('converts radians to degreens', function () { + it('converts radians to degrees', function () { expect(degrees(1.5 * Math.PI)).toBe(270) expect(degrees(Math.PI / 2)).toBe(90) }) |