Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(weex): support to test the virtual dom generated form *.vue file #6944

Merged
merged 1 commit into from
Oct 31, 2017

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`.
aJean pushed a commit to aJean/vue that referenced this pull request Aug 19, 2020
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.

None yet

2 participants