补充双向绑定的测试用例#1215
Open
zhzhch335 wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for vuejs-challenges ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
4af2170 to
3715de0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
测试用例中对双向绑定的测试仅测试了初始化阶段
ref修改时<input/>文本框内容的变化,而如果在初始化之后主动修改ref的值,没有实现向<input/>的双向绑定的话,仍然会通过测试用例,因此补充一个初始化之后两秒主动修改ref的测试用例举例,当前测试用例中,以下的代码可以通过:
但是两秒后,只有下方
<p></p>标签中的值变为Hello World!!!,但是<input/>文本框内容没有变化,实际上并未完全实现双向绑定。