prettier/tests/cursor
David Sheldrick d77f5e9c3a Fix cursor offset tracking (#4397)
* handle cusor position relative to comments correctly

* use more robust method of cursor offset tracking

* add support for cursorOffset with rangeStart/End

* add tests for cursorOffset

* use old JS syntax for node4

* add another cursor offset test case

* remove trailing whitespace in cursor tests

* fix null findNodeAtOffset handling

* remove dead code

* add more test cases

* use indexOf for node4

* revert comments.js

* add more comment tests

* change tests infra

* Fix AST_COMPARE

* move CURSOR to top level of file

* mutate result

* use es6 property shorthand

* simplify diff offset calculation

* put remaining test cases in individual files
2018-05-01 09:42:59 -03:00
..
__snapshots__ Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
comments-1.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
comments-2.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
comments-3.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
comments-4.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-0.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-1.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-2.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-3.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-4.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-5.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-6.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-7.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-8.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-9.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
cursor-10.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
file-start-with-comment-1.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
file-start-with-comment-2.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
jsfmt.spec.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
range-0.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
range-1.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
range-2.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
range-3.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00
range-4.js Fix cursor offset tracking (#4397) 2018-05-01 09:42:59 -03:00