Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/e2e/specs/todomvc.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = {
createNewItem('test')
.assert.count('.todo', 2)

// complted filter
// completed filter
browser.click('.filters li:nth-child(3) a')
.assert.count('.todo', 2)
.assert.count('.todo.completed', 2)
Expand Down
4 changes: 2 additions & 2 deletions test/ssr/ssr-string.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('SSR: renderToString', () => {
})
})

it('custome component class', done => {
it('custom component class', done => {
renderVmWithOptions({
template: '<div><cmp class="cmp"></cmp></div>',
components: {
Expand Down Expand Up @@ -512,7 +512,7 @@ describe('SSR: renderToString', () => {
})
})

it('enumrated attr', done => {
it('enumerated attr', done => {
renderVmWithOptions({
template: `
<div>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/component/component-keep-alive.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ describe('Component keep-alive', () => {
})

// #4237
it('should update latest props/listners for a re-activated component', done => {
it('should update latest props/listeners for a re-activated component', done => {
const one = {
props: ['prop'],
template: `<div>one {{ prop }}</div>`
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/component/component-slot.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ describe('Component slot', () => {
expect(child.$el.children[1].textContent).toBe('slot b')
})

it('fallback content with mixed named/unamed slots', () => {
it('fallback content with mixed named/unnamed slots', () => {
mount({
childTemplate: `
<div>
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/directives/bind.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('Directive v-bind', () => {
}).then(done)
})

it('enumrated attr', done => {
it('enumerated attr', done => {
const vm = new Vue({
template: '<div><span :draggable="foo">hello</span></div>',
data: { foo: true }
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/global-api/extend.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ describe('Global API: extend', () => {
})

// #4767
it('extended options should use different identitfy from parent', () => {
it('extended options should use different identify from parent', () => {
const A = Vue.extend({ computed: {}})
const B = A.extend()
B.options.computed.b = () => 'foo'
Expand Down
4 changes: 2 additions & 2 deletions test/unit/features/options/el.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Options el', () => {
expect(vm.$el.textContent).toBe(vm.message)
})

it('should be replaced when use togther with `template` option', () => {
it('should be replaced when use together with `template` option', () => {
const el = document.createElement('div')
el.innerHTML = '<span>{{message}}</span>'
const vm = new Vue({
Expand All @@ -24,7 +24,7 @@ describe('Options el', () => {
expect(vm.$el.textContent).toBe(vm.message)
})

it('should be replaced when use togther with `render` option', () => {
it('should be replaced when use together with `render` option', () => {
const el = document.createElement('div')
el.innerHTML = '<span>{{message}}</span>'
const vm = new Vue({
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/options/lifecycle.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue from 'vue'

describe('Options lifecyce hooks', () => {
describe('Options lifecycle hooks', () => {
let spy
beforeEach(() => {
spy = jasmine.createSpy('hook')
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/options/props.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ describe('Options props', () => {
})

// #4090
it('should not trigger wathcer on default value', done => {
it('should not trigger watcher on default value', done => {
const spy = jasmine.createSpy()
const vm = new Vue({
template: `<test :value="a" :test="b"></test>`,
Expand Down
2 changes: 1 addition & 1 deletion test/unit/features/transition/transition-mode.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ if (!isIE9) {
}).then(done)
})

it('warn invaid mode', () => {
it('warn invalid mode', () => {
new Vue({
template: '<transition mode="foo"><div>123</div></transition>'
}).$mount()
Expand Down
16 changes: 8 additions & 8 deletions test/unit/modules/compiler/codegen.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ describe('codegen', () => {
)
})

it('generate mutli v-else-if with v-else directive', () => {
it('generate multi v-else-if with v-else directive', () => {
assertCodegen(
'<div><p v-if="show">hello</p><p v-else-if="hide">world</p><p v-else-if="3">elseif</p><p v-else>bye</p></div>',
`with(this){return _c('div',[(show)?_c('p',[_v("hello")]):(hide)?_c('p',[_v("world")]):(3)?_c('p',[_v("elseif")]):_c('p',[_v("bye")])])}`
Expand Down Expand Up @@ -287,7 +287,7 @@ describe('codegen', () => {
)
})

it('generate events with multiple modifers', () => {
it('generate events with multiple modifiers', () => {
assertCodegen(
'<input @input.stop.prevent.self="onInput">',
`with(this){return _c('input',{on:{"input":function($event){$event.stopPropagation();$event.preventDefault();if($event.target !== $event.currentTarget)return null;onInput($event)}}})}`
Expand Down Expand Up @@ -324,8 +324,8 @@ describe('codegen', () => {

it('generate events with inline statement', () => {
assertCodegen(
'<input @input="curent++">',
`with(this){return _c('input',{on:{"input":function($event){curent++}}})}`
'<input @input="current++">',
`with(this){return _c('input',{on:{"input":function($event){current++}}})}`
)
})

Expand Down Expand Up @@ -372,7 +372,7 @@ describe('codegen', () => {

it('generate unhandled events', () => {
assertCodegen(
'<input @input="curent++">',
'<input @input="current++">',
`with(this){return _c('input',{on:{"input":function(){}}})}`,
ast => {
ast.events.input = undefined
Expand All @@ -382,8 +382,8 @@ describe('codegen', () => {

it('generate multiple event handlers', () => {
assertCodegen(
'<input @input="curent++" @input.stop="onInput">',
`with(this){return _c('input',{on:{"input":[function($event){curent++},function($event){$event.stopPropagation();onInput($event)}]}})}`
'<input @input="current++" @input.stop="onInput">',
`with(this){return _c('input',{on:{"input":[function($event){current++},function($event){$event.stopPropagation();onInput($event)}]}})}`
)
})

Expand Down Expand Up @@ -418,7 +418,7 @@ describe('codegen', () => {
'<my-component inline-template><p><span>hello world</span></p></my-component>',
`with(this){return _c('my-component',{inlineTemplate:{render:function(){with(this){return _m(0)}},staticRenderFns:[function(){with(this){return _c('p',[_c('span',[_v("hello world")])])}}]}})}`
)
// "have inline-template attrs, but not having extactly one child element
// "have inline-template attrs, but not having exactly one child element
assertCodegen(
'<my-component inline-template><hr><hr></my-component>',
`with(this){return _c('my-component',{inlineTemplate:{render:function(){with(this){return _c('hr')}},staticRenderFns:[]}})}`
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/compiler/optimizer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe('optimizer', () => {
// ul
expect(ast.static).toBe(false) // ul
// li
expect(ast.children[0].static).toBe(false) // firts
expect(ast.children[0].static).toBe(false) // first
expect(ast.children[1].static).toBe(true) // second
expect(ast.children[2].static).toBe(false) // third
// text node inside li
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/compiler/parser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ describe('parser', () => {
expect(ast.children[0].slotName).toBeUndefined()
})

it('slot tag namped syntax', () => {
it('slot tag named syntax', () => {
const ast = parse('<div><slot name="one">hello world</slot></div>', baseOptions)
expect(ast.children[0].tag).toBe('slot')
expect(ast.children[0].slotName).toBe('"one"')
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/sfc/sfc-parser.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ describe('Single File Component parser', () => {
</section>
</template>
<template v-else>
<p>Shoud not be shown</p>
<p>Should not be shown</p>
</template>
</div>`
const res = parseComponent(`<template>${raw}</template>`)
Expand Down
2 changes: 1 addition & 1 deletion test/unit/modules/vdom/patch/edge-cases.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe('vdom patch: edge cases', () => {
})

// #4530
it('should not reset value when patching bewteen dyanmic/static bindings', done => {
it('should not reset value when patching between dynamic/static bindings', done => {
const vm = new Vue({
data: { ok: true },
template: `
Expand Down
2 changes: 1 addition & 1 deletion test/weex/compiler/style.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('compile style', () => {
expect(errors).toEqual([])
})

it('should compile hyphanted style name & value', () => {
it('should compile hyphenated style name & value', () => {
const { render, staticRenderFns, errors } = compile(`<div style="-abc-def: x-y; abc-def: x-y"></div>`)
expect(render).not.toBeUndefined()
expect(staticRenderFns).not.toBeUndefined()
Expand Down
4 changes: 2 additions & 2 deletions test/weex/runtime/framework.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe('framework APIs', () => {
expect(root).toMatch(/not found/)
})

it('reveiveTasks: fireEvent', (done) => {
it('receiveTasks: fireEvent', (done) => {
const instance = new Instance(runtime)
framework.createInstance(instance.id, `
new Vue({
Expand Down Expand Up @@ -254,7 +254,7 @@ describe('framework APIs', () => {
})
})

it('reveiveTasks: callback', (done) => {
it('receiveTasks: callback', (done) => {
framework.registerModules({
foo: ['a', 'b', 'c']
})
Expand Down