Commit Graph
299 Commits
Author SHA1 Message Date
Sam Stephenson 5f85bc861a Clean up Composition selection API
Remove setPosition, setLocation
setSelectedRange -> setSelection
compositionDidRequestLocationRange -> compositionDidRequestChangingSelectionToLocationRange
immediatelySetSelectedRange -> setSelectedRange
2015-09-20 14:28:22 -05:00
Sam Stephenson 100e40e1f8 Add Trix.config.undoInterval
Disable the undo interval during tests
2015-09-20 13:18:17 -05:00
Sam Stephenson 81b00908eb Merge branch 'master' into immutable-document
# Conflicts:
#	src/trix/controllers/editor_controller.coffee
#	src/trix/elements/trix_editor_element.coffee
2015-09-19 11:30:10 -05:00
Sam Stephenson 90d8ea9e7a Restore Composition unit test 2015-09-13 13:59:43 -05:00
Javan Makhmali e45c4b56e7 Make "value" a property of <trix-editor> 2015-09-13 13:37:16 -04:00
Javan Makhmali ef334a2703 Dispatch "trix-initialize" event 2015-09-12 20:55:59 -04:00
Sam Stephenson 7edf21a1d5 Remove obviated test 2015-09-12 15:04:18 -05:00
Javan Makhmali c646a188c2 Trix HTML elements only serialize/deserialize to/from HTML 2015-09-12 11:34:21 -04:00
Javan Makhmali 971fc10495 Remove all block comments 2015-09-12 10:56:19 -04:00
Javan Makhmali 7631fb087b Remove expected block comment from test 2015-09-12 10:39:35 -04:00
Javan Makhmali 563d97e22d Remove block comments from serialized HTML and kick of some serialization tests 2015-09-12 10:35:32 -04:00
Javan Makhmali 7aec97c72a Trigger namespaced "trix-selectionchange" event (that bubbles), not "selectionchange" 2015-09-12 09:59:18 -04:00
Javan Makhmali 94e9f111c7 Trigger namespaced "trix-change" event, not "input" 2015-09-12 09:57:07 -04:00
Javan Makhmali 94c38cb74c Attachment filesize should be numeric 2015-09-12 09:48:08 -04:00
Sam Stephenson c82b7eaeb6 Most tests passing 2015-08-29 22:08:02 -05:00
Sam Stephenson 2367b0b9a7 PositionRange -> Range 2015-08-22 18:52:52 -04:00
Sam Stephenson df052df3f2 Remove PositionRange 2015-08-22 18:46:57 -04:00
Javan Makhmali 2186410349 range -> domRange in test helpers 2015-08-22 18:20:12 -04:00
Sam Stephenson 8059c33fb6 Rename local range -> positionRange 2015-08-22 18:12:49 -04:00
Sam Stephenson 6023843f0e Remove LocationRange 2015-08-22 18:01:27 -04:00
Javan Makhmali baa0732f08 Update new methods to use PositionRange 2015-08-22 12:43:05 -04:00
Javan Makhmali c686574400 Merge branch 'master' into positions
# Conflicts:
#	src/trix/controllers/editor_controller.coffee
#	src/trix/controllers/editor_element_controller.coffee
#	src/trix/controllers/input_controller.coffee
#	src/trix/models/composition.coffee
#	src/trix/models/document.coffee
2015-08-22 12:18:32 -04:00
Javan Makhmali 8cee1a6986 Use latest Blade Runner with mountable Rack adapter 2015-06-22 20:03:08 -04:00
Sam Stephenson bd1365a3b6 Ensure the editor is focused for Firefox tests 2015-06-19 10:12:29 -05:00
Sam Stephenson a06276f8f0 Default Composition#getLocationRange to [0, 0] instead 2015-06-18 17:06:49 -05:00
Sam Stephenson 54d3b88042 Style the test toolbar for debugging 2015-06-18 14:50:07 -05:00
Sam Stephenson 3f2196ad5a Fix focus issue in the Firefox tests 2015-06-17 17:42:41 -05:00
Javan Makhmali 2902aa2d0f Fix paste event 2015-06-17 14:13:51 -04:00
Javan Makhmali b7c378bf43 Fix test on Windows 2015-06-16 11:18:58 -04:00
Javan Makhmali 7b1fbf5d45 Fix clicking toolbar button on an unfocused editor 2015-06-16 10:59:45 -04:00
Javan Makhmali 8829824b37 Test toolbar dialog events 2015-06-16 10:34:42 -04:00
Javan Makhmali 48fd2da76b Decreasing list level decreases nested list items 2015-06-10 16:15:15 -05:00
Javan Makhmali 3b02601317 Pressing return at the beginning of a non-empty list item inserts an empty list item above it 2015-06-09 16:18:42 -05:00
Javan Makhmali e33b144f06 Add test for fix in 2fa632109a 2015-06-09 14:53:12 -05:00
Javan Makhmali fe4aa6d558 Fix backspacing across blocks into a block with more attributes 2015-06-09 14:40:30 -05:00
Sam Stephenson 098f391d6d Remove straggling console.log 2015-06-09 14:03:22 -05:00
Sam Stephenson c97afb2564 [0, 0] maps to the first element child of the first block element 2015-06-09 14:01:57 -05:00
Javan Makhmali 0749f74370 Pass actual / expected assertion arguments in the correct order 2015-06-05 15:47:36 -04:00
Javan Makhmali 8c281724d0 Fix pasting into a formatted block 2015-06-05 15:47:36 -04:00
Javan Makhmali 5f8f40f790 Break out pasting tests 2015-06-05 15:47:36 -04:00
Javan Makhmali 004cfcc92c Simplify block break handling during document insertion
Improves pasting into empty blocks and pasting formatted multi-block documents
2015-06-05 15:47:36 -04:00
Sam Stephenson 4c6f825f8e Unit-test Composition instead 2015-06-04 19:33:44 -05:00
Sam Stephenson ed81e177de Insert the emoji manually 2015-06-04 18:23:23 -05:00
Javan Makhmali fb37484274 Accept array of characters 2015-06-04 19:02:26 -04:00
Sam Stephenson 7c782a7c06 Composition#getExpandedRangeInDirection respects UTF16 boundaries 2015-06-04 17:42:38 -05:00
Sam Stephenson 5c6a175d52 Switch back to UCS2 indexing in the document
Prefer more convenient interoperability with the host over Unicdode correctness
2015-06-03 15:20:50 -05:00
Javan Makhmali 2ae40a2517 Fix failing test in IE
The moveCursor helper doesn't always move across blocks correctly in IE
2015-06-02 09:20:24 -04:00
Javan Makhmali 588db36f24 Fix off-by-one issue pasting/inserting a document into an empty block 2015-06-02 09:07:42 -04:00
Javan Makhmali 4df5658e48 Persist <progress> elements in the ElementStore to fix stutter when rerendering a cached AttachmentView 2015-05-28 18:19:43 -04:00
Javan Makhmali 8be4deaf2e Remove space characters to get test passing in Safari 2015-05-28 10:36:28 -04:00