Skip to content

Tests #2872

@yyx990803

Description

@yyx990803

Coverage

When contributing, please ensure the npm run test:cover task passes. During development you can also run the tests in continuous mode with npm run dev:test (requires Chrome to be installed on system).

E2E Tests

  • commits
  • grid
  • markdown
  • modal
  • select2
  • svg
  • todomvc
  • tree

Feature Tests

Global config

  • Vue.config.preserveWhitespace
  • Vue.config.silent
  • Vue.config.errorHandler

Global API

  • Vue.extend
  • Vue.nextTick
  • Vue.set
  • Vue.delete
  • Vue.directive
  • Vue.component
  • Vue.use
  • Vue.mixin
  • Vue.compile
  • Vue.filter
  • Vue.transition

Options

data
  • data
  • props
    • prop validation
      • type
      • required
      • custom validator
    • default value
  • propsData
  • computed
  • methods
  • watch
DOM
  • el
  • template
  • render
Lifecycle Hooks
  • init
  • created
  • beforeMount
  • mounted
  • beforeUpdate
  • updated
  • beforeDestroy
  • destroyed
Assets
  • directives
  • components
  • filters
  • transitions (tested in dedicated transition tests)
Misc
  • parent
  • mixins
  • name
  • extends
  • delimiters

Instance Properties

  • vm.$data (tested in options - data)
  • vm.$el (tested in options - el and $mount)
  • vm.$options
  • vm.$parent (tested in options - parent)
  • vm.$root
  • vm.$children
  • vm.$refs (tested in v-ref)
  • vm.$slots (tested in component slots)
  • vm.$isServer (tested in SSR)

Instance Methods

data
  • vm.$watch
events
  • vm.$on
  • vm.$once
  • vm.$off
  • vm.$emit
Lifecycle
  • vm.$mount
  • vm.$destroy
  • vm.$forceUpdate
  • vm.$nextTick

Directives

  • v-text
  • v-html
  • v-if
  • v-show
  • v-else
  • v-for
    • track-by
    • Object v-for
    • range v-for
  • v-on
    • modifiers
    • on child component
  • v-bind
    • value bind
    • xlink
    • enumerated attrs
    • boolean attrs
    • bind object
  • v-bind:style
    • prefix sniffing
  • v-bind:class
  • v-model
    • text
      • lazy (as modifier)
      • number (as modifier)
      • trim modifier
      • ignoring composition events
    • radio
    • checkbox
      • bind to array
    • select
  • v-ref
  • v-cloak
  • v-pre
  • v-once

Other Features

  • component
    • :is
    • async components
    • slot
    • keep-alive
  • render
  • transitions
    • css
    • js
    • mixed
    • transition-mode

Module Tests

Compiler

  • parser
  • optimizier
  • codegen

Observer

  • observer
  • watcher
  • scheduler

vdom

  • create-element
  • create-component
  • patch

Server-side Rendering

  • renderToString
  • renderToStream
  • client-side hydration
  • server-side custom directives

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions