зеркало из https://github.com/mozilla/brackets.git
0e9376ad75
by means other than sidebar) - Clear selection in project tree if current document not exposed in tree anywhere. Backs out pull #2869, which made the behavior of Find in Files inconsistent with other means of opening and didn't fix other cases of the bug. Adds unit tests for several of these edge cases. |
||
---|---|---|
.. | ||
node | ||
perf | ||
smokes | ||
spec | ||
thirdparty | ||
BootstrapReporterView.css | ||
BootstrapReporterView.js | ||
PerformanceTestSuite.js | ||
README.md | ||
SpecRunner.html | ||
SpecRunner.js | ||
UnitTestReporter.js | ||
UnitTestSuite.js | ||
jasmine.sh |
README.md
Overview
Unit testing for brackets uses Jasmine http://pivotal.github.com/jasmine/.
Getting started
Running Tests
2 options for running tests:
- Run brackets-app and click "Run Tests" from the menu (debugging and dev tools not supported)
- Run jasmine.sh or manually run Brackets-app with the argument file://path/to/brackets/test/SpecRunner.html.
Adding New Tests
- Create a new .js file under spec/
- Write the test (see spec/Editor-test.js or Jasmine documentation)
- Edit SpecRunner.html and add the spec .js file in a new script tag
Known Issues
None