Skip to content

Conversation

@Hanks10100
Copy link
Contributor

What kind of change does this PR introduce?

  • Add new tests.

Does this PR introduce a breaking change?

  • No

If yes, please describe the impact and migration path for existing applications:

The PR fulfills these requirements:

Other information:

Compile the *.vue file into js code, then run it in Weex context and compare the render result with the expected virtual dom tree.

It’s black-box testing for weex-template-compiler, weex-vue-framework, weex-styler and weex-js-runtime. The source code of the first two packages is in the current repo.

The test files are put in the test/weex/cases:

  • render/: One-off render test cases.
    • [name].vue: Source code.
    • [name].vdom.js: Expected virtual dom tree.
  • event/: Test cases which contain event bindings.
    • [name].vue: Source code.
    • [name].before.vdom.js: The first rendered virtual dom.
    • [name].after.vdom.js: The updated virtual dom after the event dispatch.

Compile the *.vue file into js code, then run it in Weex context, and
compare the generate virtual dom.
It’s a black-box testing for `weex-template-compiler`,
`weex-styler`,`weex-vue-framework` and `weex-js-runtime`.
@yyx990803 yyx990803 merged commit 232dd85 into vuejs:dev Oct 31, 2017
erweixin pushed a commit to erweixin/vue that referenced this pull request Dec 15, 2017
vuejs#6944)

Compile the *.vue file into js code, then run it in Weex context, and
compare the generate virtual dom.
It’s a black-box testing for `weex-template-compiler`,
`weex-styler`,`weex-vue-framework` and `weex-js-runtime`.
lovelope pushed a commit to lovelope/vue that referenced this pull request Feb 1, 2018
vuejs#6944)

Compile the *.vue file into js code, then run it in Weex context, and
compare the generate virtual dom.
It’s a black-box testing for `weex-template-compiler`,
`weex-styler`,`weex-vue-framework` and `weex-js-runtime`.
f2009 pushed a commit to f2009/vue that referenced this pull request Jan 25, 2019
vuejs#6944)

Compile the *.vue file into js code, then run it in Weex context, and
compare the generate virtual dom.
It’s a black-box testing for `weex-template-compiler`,
`weex-styler`,`weex-vue-framework` and `weex-js-runtime`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants