mirror of
https://github.com/adobe/brackets.git
synced 2024-11-20 09:53:00 +01:00
442678d1b3
* Add drag and drop to move items in FileTreeView Todo: * Handle move errors. * Add support for moving to root directory. * Add support for moving items to root directory * Check item dropped onto itself or parent directory * Add support for moving items by dropping on files * Create dragItem action * Close directory on drag * Open directory on Drop * Open directory on drag over * Address review comments * Add tests for moveItem in FileTreeViewModel * Fix style issues on drag * Make styles fast * Change fileindex to update the moved entry * Fix lint mistakes * Set drag image as item name * Check if directory is open before opening directory on drop * Refactor code * Check if item is dropped onto itself or parent directory * Move selected flag when item is moved * Use filter instead of forEach * Change implementation to reuse rename workflow * Fix tests * Add docs and comments * Address review comments * Add Error handling * Make directory open and adding new item independent This makes adding the moved item to the new directory independent of whether the directory is loaded or not by creating a notFullyLoaded directory for the new directory. |
||
---|---|---|
.. | ||
node | ||
perf | ||
smokes | ||
spec | ||
thirdparty | ||
BootstrapReporterView.css | ||
BootstrapReporterView.js | ||
jasmine.sh | ||
PerformanceTestSuite.js | ||
polyfills.js | ||
README.md | ||
SpecRunner.html | ||
SpecRunner.js | ||
TestPreferencesImpl.js | ||
UnitTestReporter.js | ||
UnitTestSuite.js |
Overview
Unit testing for brackets uses 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 (only OSX is supported) 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