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

[CLOSED] Create tests for Disabled context menu items for unsaved files / #12806 #11141

Open
core-ai-bot opened this issue Aug 30, 2021 · 0 comments

Comments

@core-ai-bot
Copy link
Member

Issue by petetnt
Wednesday Mar 01, 2017 at 19:08 GMT
Originally opened as adobe/brackets#13134


#12806 was merged without tests, but it might use some.

My post from #12806 outlines the tests as:

test/Menu-test.js sounds like a good place.

Any specific things you need help with the tests? The structure should could be something like:

it("it should disable context menu items when file doesn't exist ", function () {
 // runs create a new file
 // opens context menu
 // checks that all the items are disabled
});
it("it should enable context menu items when file does exist ", function () {
 // runs create a new file and saves it
 // opens context menu
 // checks that all the items are enabled
});
For example check `DocumentCommandHandlers` tests to see how the working set can be manipulated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant