1
0
mirror of https://github.com/adobe/brackets.git synced 2024-11-20 18:02:54 +01:00
brackets/test
Boopesh Mahendran 442678d1b3 Add drag and drop to move items in FileTreeView (#13546)
* 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.
2018-04-19 10:52:59 +05:30
..
node Add wrapper functions to call the fs-extra ones. (#13830) 2017-12-07 17:30:56 +01:00
perf Correct typo (Peformance -> Performance) (#13902) 2018-01-10 22:47:24 +02:00
smokes Linted CSS 2016-02-27 15:04:25 -05:00
spec Add drag and drop to move items in FileTreeView (#13546) 2018-04-19 10:52:59 +05:30
thirdparty resuts -> results (#13865) 2017-11-17 18:56:12 +02:00
BootstrapReporterView.css Implement Splitview 2014-08-29 13:05:49 -07:00
BootstrapReporterView.js Move most inline jslint directives to config files 2016-08-12 09:22:41 +02:00
jasmine.sh Merge pull request #12024 from ficristo/jasmine-sh-log 2016-01-28 11:30:59 +05:30
PerformanceTestSuite.js Move most inline jslint directives to config files 2016-08-12 09:22:41 +02:00
polyfills.js Fix jshint errors 2014-05-28 16:58:16 +02:00
README.md Update README.md 2018-02-01 16:46:17 +05:30
SpecRunner.html Upgrade less from 2.5.1 to 2.7.2 2017-01-08 09:17:52 +01:00
SpecRunner.js Add Extract to Variable and Extract to Function features in js (#13980) 2018-01-11 11:46:56 +05:30
TestPreferencesImpl.js Move most inline jslint directives to config files 2016-08-12 09:22:41 +02:00
UnitTestReporter.js Move most inline jslint directives to config files 2016-08-12 09:22:41 +02:00
UnitTestSuite.js Issue #12859 Keyboard modifiers support for simulateKeyEvent (#12863) 2016-12-23 17:07:22 +02:00

Overview

Unit testing for brackets uses Jasmine.

Getting started

Running Tests

2 options for running tests:

  1. Run brackets-app and click "Run Tests" from the menu (debugging and dev tools not supported)
  2. 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

  1. Create a new .js file under spec/
  2. Write the test (see spec/Editor-test.js or Jasmine documentation)
  3. Edit SpecRunner.html and add the spec .js file in a new script tag

Known Issues

None