1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-02-24 09:13:24 +01:00

16 Commits

Author SHA1 Message Date
Ian Storm Taylor
1f60d4c9ab Revert jest (#507)
* remove debugger

* switch back to mocha

* remove jest config from package.json

* remove old browser test support files

* remove unnecessary assert-json helper
2016-12-07 15:16:49 -08:00
Ian Storm Taylor
55fd06449b update tests to use jest and be async, closes #495 (#502)
* update tests to use jest and be async, closes #495

* add read-metadata for perf and fragments
2016-12-06 15:21:08 -08:00
Samy Pessé
909e7d358f Adapt tests for schema 2016-12-02 17:57:24 +01:00
Ian Storm Taylor
286e3620dd refactor schema transform logic 2016-11-17 17:46:35 -08:00
Soreine
b2b4a4d565 Fix rule INLINE_VOID_TEXTS_AROUND
Added an additional test. Was working previously because the
normalization was called several times recursively.
2016-10-25 21:13:14 +02:00
Soreine
4b3a51396c Merge branch 'master' into schema-normalize 2016-10-25 10:27:10 +02:00
Nicolas Gaborit
f1a5d6f3b4 Add benchmarks (#368)
* Add script for benchmark

* Add error handling

* Rename folder to perf/benchmarks

* Add README

* Avoid memoization between benchmark runs

* Handle multiple benchmark. Add setup to benchmarks

* Run benchmarks through Travis

* Add command line options for JSON output

* Add export to JSON, and comparison with reference

* Improve serialize and fix results display

* Add perf/ to .npmignore

* Print error message

* Create normal example for normalize

* Add normalize-document wide and deep

* Add split-block normal, deep and wide

* Add delete-backward benchmarks

* Fix too much newlines

* Use microtime for better results maybe?

* Print number of runs

* Add minSamples options for better accuracy

* Use babel-node to launch benchmarks

* Use jsdom-global instead of mocha-jsdom (deprecated)

* Add rendering benchmark example

* Fix jsdom usage.

* Use JSX because we can

* Only use on('cycle') that is called even on error

* Example of successive rendering benchmark

* Rename README, and explain how to add a benchmark

* Add C++11 to Travis to install microtime

* Update Readme.md # Understanding the results

* Try to fix Travis build with microtime

* Travis: use before_install

Instead of overwriting install

* Forgot to remove mocha-jsdom import

Thanks node_modules...

* Add jsdom as devDependency

(required as peer dependency by jsdom-global)

* Add --only option to run only a specific benchmark

* Print name onStart rather than at end
2016-10-24 15:06:17 -07:00
Samy Pesse
4f1fc842a8 Fix inline void inside an inline node 2016-10-23 23:53:01 +02:00
Samy Pesse
4d0f067250 Add failing test for schema rule 2016-10-23 23:08:01 +02:00
Samy Pesse
7ed21fde63 Add more unit tests for normalize of "text around isVoid" 2016-10-22 18:13:29 +02:00
Samy Pesse
7d1279ffe9 Refactor tests for schema 2016-10-22 18:04:31 +02:00
Samy Pessé
d1c3700bd2 Fix #234: fix typing text near inline void nodes (#339)
* Add base tests for isVoid with around text node

* Ensure that void nodes are surrounded by text nodes in Node.normalize

* Only wrap inline void nodes with text

* Fix indentation

* Add emojis example

* Adapt unit test "transforms/fixtures/at-current-range/set-inline/with-is-void"

* Adapt unit test "transforms/fixtures/at-current-range/insert-inline/with-inline"

* Adapt unit test "transforms/fixtures/at-current-range/insert-inline/block-start"

* add passing parent to leaf nodes, for rendering breaks

* add zero-width spaces in empty text nodes, to allow selections

* add zero-width space handling to copy/cut

* fix delete handling around inline void nodes

* fix tests for inline void nodes

* fix style

* fix void cursor handling across browsers

* fix void rendering tests
2016-09-23 09:46:24 -07:00
Ian Storm Taylor
ccac6102a5 fixes 2016-08-14 13:21:46 -07:00
Ian Storm Taylor
8692d1a98a working on moving components into the schema 2016-08-13 16:18:07 -07:00
Ian Storm Taylor
f4b584a00b got first stab at schema working with tests 2016-08-12 15:58:45 -07:00
Ian Storm Taylor
8b5305f239 first stab at adding a schema to core 2016-08-12 11:33:48 -07:00