diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/helpers.js | 4 | ||||
-rw-r--r-- | spec/spec/animation/Controller.js | 2 | ||||
-rw-r--r-- | spec/spec/animation/Runner.js | 26 | ||||
-rw-r--r-- | spec/spec/animation/Timeline.js | 4 | ||||
-rw-r--r-- | spec/spec/modules/core/event.js | 2 | ||||
-rw-r--r-- | spec/spec/modules/core/regex.js | 8 | ||||
-rw-r--r-- | spec/spec/modules/core/textable.js | 2 | ||||
-rw-r--r-- | spec/spec/modules/optional/data.js | 2 | ||||
-rw-r--r-- | spec/spec/types/PathArray.js | 2 |
9 files changed, 26 insertions, 26 deletions
diff --git a/spec/helpers.js b/spec/helpers.js index d6d1405..7d63dfa 100644 --- a/spec/helpers.js +++ b/spec/helpers.js @@ -124,7 +124,7 @@ export function buildFixtures () { div.id = 'fixtures' try { - // FIXME: doesnt work in svgdom + // FIXME: doesn't work in svgdom div.style.position = 'absolute' div.style.top = 0 div.style.left = 0 @@ -142,7 +142,7 @@ export function buildCanvas () { div.id = 'canvas' try { - // FIXME: doesnt work in svgdom + // FIXME: doesn't work in svgdom div.style.position = 'absolute' div.style.top = 0 div.style.left = 0 diff --git a/spec/spec/animation/Controller.js b/spec/spec/animation/Controller.js index 2545235..8ad074d 100644 --- a/spec/spec/animation/Controller.js +++ b/spec/spec/animation/Controller.js @@ -394,7 +394,7 @@ describe('Controller.js', () => { expect(pid.step(0, 100, 1000, {})).toBe(500) }) - it('doesnt uses antiwindup if disabled', () => { + it('does not use antiwindup if disabled', () => { const pid = new PID(0, 5, 0, false) expect(pid.step(0, 100, 1000, {})).toBe(500000) }) diff --git a/spec/spec/animation/Runner.js b/spec/spec/animation/Runner.js index a56ac37..2512dac 100644 --- a/spec/spec/animation/Runner.js +++ b/spec/spec/animation/Runner.js @@ -150,7 +150,7 @@ describe('Runner.js', () => { expect(runFn.calls.count()).toBe(2) }) - it('calls initFn on every step if its declaritive', () => { + it('calls initFn on every step if its declarative', () => { var runner = new Runner(new Controller()) runner.queue(initFn, runFn, true) @@ -765,7 +765,7 @@ describe('Runner.js', () => { expect(after.element()).toBe(element) }) - it('doesnt reuse element if not set', () => { + it('does not reuse element if not set', () => { const timeline = new Timeline() const runner = new Runner().timeline(timeline) const after = runner.animate() @@ -878,7 +878,7 @@ describe('Runner.js', () => { expect(runner.time()).toBe(0) }) - it('doesnt reset if already reseted', () => { + it('does not reset if already reset', () => { var runner = Object.freeze(new Runner().reset()) expect(runner.reset()).toBe(runner) }) @@ -912,14 +912,14 @@ describe('Runner.js', () => { expect(runner._history.x.morpher.to()).toEqual([ 20, '' ]) }) - it('throws away the morpher if it wasnt initialized yet and returns false', () => { + it('throws away the morpher if it was not initialized yet and returns false', () => { const rect = new Rect().move(0, 0) const runner = rect.animate().move(10, 10) // In that case tryRetarget is not successful expect(runner._tryRetarget('x', 20)).toBe(false) }) - it('does nothing if method wasnt found', () => { + it('does nothing if method was not found', () => { const rect = new Rect().move(0, 0) const runner = rect.animate().move(10, 10) jasmine.RequestAnimationFrame.tick(16) @@ -953,18 +953,18 @@ describe('Runner.js', () => { expect(runner._initialise(false)).toBe(undefined) }) - it('does nothing if true is passed and runner is not declaritive', () => { + it('does nothing if true is passed and runner is not declarative', () => { const runner = Object.freeze(new Runner()) expect(runner._initialise(true)).toBe(undefined) }) - it('calls the initializer function on the queue when runner is declaritive', () => { + it('calls the initializer function on the queue when runner is declarative', () => { const runner = new Runner(() => 0).queue(initFn, runFn) runner._initialise() expect(initFn).toHaveBeenCalledTimes(1) }) - it('calls the initializer function on the queue when true is passed and runner is not declaritive', () => { + it('calls the initializer function on the queue when true is passed and runner is not declarative', () => { const runner = new Runner().queue(initFn, runFn) runner._initialise(true) expect(initFn).toHaveBeenCalledTimes(1) @@ -1300,7 +1300,7 @@ describe('Runner.js', () => { }) describe('transform()', () => { - it('does not retarget for non-declaritive transformations', () => { + it('does not retarget for non-declarative transformations', () => { const runner = new Runner() const spy = spyOn(runner, '_tryRetarget') runner.transform({ translate: [ 10, 20 ] }) @@ -1314,7 +1314,7 @@ describe('Runner.js', () => { expect(spy).not.toHaveBeenCalled() }) - it('does retarget for absolute declaritive transformations', () => { + it('does retarget for absolute declarative transformations', () => { const runner = new Runner(new Controller(() => 0)) const spy = spyOn(runner, '_tryRetarget') runner.transform({ translate: [ 10, 20 ] }) @@ -1354,7 +1354,7 @@ describe('Runner.js', () => { // transform sets its to-target to the morpher in the initialisation step // because it depends on the from-target. Declaritive animation run the init-step - // on every frame. Thats why we step here to see the effect of our retargeting + // on every frame. That is why we step here to see the effect of our retargeting runner.step(25) expect(runner._history.transform.morpher.to()).toEqual( @@ -1371,7 +1371,7 @@ describe('Runner.js', () => { // transform sets its to-target to the morpher in the initialisation step // because it depends on the from-target. Declaritive animation run the init-step - // on every frame. Thats why we step here to see the effect of our retargeting + // on every frame. That is why we step here to see the effect of our retargeting runner.step(25) expect(runner._history.transform.morpher.to()).toEqual( @@ -1483,7 +1483,7 @@ describe('Runner.js', () => { ) }) - it('correctly animates a declaritive relative rotation', () => { + it('correctly animates a declarative relative rotation', () => { const element = new Rect() const runner = new Runner(() => 1).element(element) runner.transform({ rotate: 90 }, true) diff --git a/spec/spec/animation/Timeline.js b/spec/spec/animation/Timeline.js index 8cdf43f..5f511ff 100644 --- a/spec/spec/animation/Timeline.js +++ b/spec/spec/animation/Timeline.js @@ -117,7 +117,7 @@ describe('Timeline.js', () => { expect(timeline._runners[0].start).toBe(200) }) - it('schedules the runner as absolute if this runner wasnt on the timeline', () => { + it('schedules the runner as absolute if this runner was not on the timeline', () => { const timeline = new Timeline() const runner = new Runner(1000) timeline.schedule(runner, 100, 'relative') @@ -409,7 +409,7 @@ describe('Timeline.js', () => { expect(spy).toHaveBeenCalled() }) - it('doesnt run runners if they are not active', () => { + it('does not 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 synchronous here diff --git a/spec/spec/modules/core/event.js b/spec/spec/modules/core/event.js index 44c0a0b..a395a4b 100644 --- a/spec/spec/modules/core/event.js +++ b/spec/spec/modules/core/event.js @@ -38,7 +38,7 @@ describe('event.js', () => { expect(eventTarget.events).toEqual({}) }) - it('doesnt do anything if no event object is found on the instance', () => { + it('does not do anything if no event object is found on the instance', () => { const eventTarget = new EventTarget() delete eventTarget.events clearEvents(eventTarget) diff --git a/spec/spec/modules/core/regex.js b/spec/spec/modules/core/regex.js index ddcebb9..5040fbd 100644 --- a/spec/spec/modules/core/regex.js +++ b/spec/spec/modules/core/regex.js @@ -49,17 +49,17 @@ describe('regex.js', () => { expect(match[3]).toBe('56') }) - /* it('doesnt matches without #', () => { + /* it('does not matches without #', () => { const match = '123456'.match(regex.hex) expect(match).toBe(null) }) */ - it('doesnt matches other then 0-f #', () => { + it('does not matches other then 0-f #', () => { const match = '#09afhz'.match(regex.hex) expect(match).toBe(null) }) - it('doesnt matches non full hex', () => { + it('does not matches non full hex', () => { const match = '#aaa'.match(regex.hex) expect(match).toBe(null) }) @@ -73,7 +73,7 @@ describe('regex.js', () => { expect(match[3]).toBe('56') }) - it('doesnt match in the wrong format', () => { + it('does not match in the wrong format', () => { expect('rgb( 12 , 34 , 56)'.match(regex.rgb)).toBe(null) expect('12,34,56'.match(regex.rgb)).toBe(null) expect('(12,34,56)'.match(regex.rgb)).toBe(null) diff --git a/spec/spec/modules/core/textable.js b/spec/spec/modules/core/textable.js index 1293575..c0a2100 100644 --- a/spec/spec/modules/core/textable.js +++ b/spec/spec/modules/core/textable.js @@ -244,7 +244,7 @@ describe('textable.js', () => { it('restores the content from the dom with Tspan', () => { // We create a new Tspan here because the one used before was part of text creation - // and therefore is marked as newline and thats not what we want to test + // and therefore is marked as newline and that is not what we want to test const tspan = new Tspan().plain('Just plain text!') expect(tspan.text()).toBe('Just plain text!') }) diff --git a/spec/spec/modules/optional/data.js b/spec/spec/modules/optional/data.js index bdb1ca5..211fef3 100644 --- a/spec/spec/modules/optional/data.js +++ b/spec/spec/modules/optional/data.js @@ -72,7 +72,7 @@ describe('data.js', () => { expect(rect.data('fill', 'string').attr('data-fill')).toBe('string') }) - it('doesnt convert to json with third parameter true', () => { + it('does not convert to json with third parameter true', () => { const rect = new Rect() expect(rect.data('fill', { some: 'object' }, true).attr('data-fill')).toBe({}.toString()) }) diff --git a/spec/spec/types/PathArray.js b/spec/spec/types/PathArray.js index ed26bc7..454252a 100644 --- a/spec/spec/types/PathArray.js +++ b/spec/spec/types/PathArray.js @@ -21,7 +21,7 @@ describe('PathArray.js', () => { expect(arr.toString()).toBe('M0 0L100 100Z ') }) - // this test is designed to cover a certain line but it doesnt work because of #608 + // this test is designed to cover a certain line but it doesn't work because of #608 it('returns the valueOf when PathArray is given', () => { const p = new PathArray('m10 10 h 80 v 80 h -80 l 300 400 z') |