List merger tests

* Write and fixes list merging.
* Add support for setting the selection using `[` and `]` in `SetupContentEditable`.
* Add wait.js—setTimeout as a promise.