Commit graph

30 commits

Author SHA1 Message Date
Pierre-Yves Gérardy
67b11f156a Add a test to ensure that e.redraw is cleared if it was false 2017-07-06 19:48:47 +02:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
fca89f987f Tests: enable the three kind of components in all related files but api/tests/test-route.js 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
ac38335453 Tests: Wrap some component definitions in createComponent() calls
These are the ones that would have been tedious to automate.
jscodeshift will handle the remaining ones
2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f96319e6f6 Tests: add dummy forEach blocks around sections with components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
a8e5189f0b Tests: factory => closure components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
d7f39a8254 Tests: group together tests with/without components 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
9e65e6bf47 Tests for mounting class and factory components 2017-02-15 21:58:41 +01:00
Leo Horie
2ffd2fb7e4 throttle m.route redraws 2016-12-04 01:53:39 -05:00
Leo Horie
23d0939647 test mount redraw count 2016-12-03 00:35:35 -05:00
Leo Horie
713c25c9c0 fix #1404 2016-12-01 01:45:07 -05:00
Pierre-Yves Gerardy
b8673f2ff5 Validate the DOM node passed to render 2016-09-09 15:20:26 +02:00
Pierre-Yves Gerardy
37e7b67a49 Add a test for unmounting. 2016-08-04 23:31:53 +02:00
Leo Horie
3a19dddb22 more docs 2016-08-04 00:00:31 -04:00
Pierre-Yves Gerardy
357de85129 Test for #1146 and #1153 2016-07-26 00:53:33 +02:00
Pierre-Yves Gerardy
6e12373e71 Remove questionable test
Its failure breaks CI and having it break may be desirable.
2016-07-24 11:55:16 +02:00
Barney Carroll
8590a2da5b Alt test for multiple mountpoint redraw (fails) 2016-07-18 11:32:30 +01:00
Barney Carroll
193b08e10c Test for #1146 2016-07-14 14:10:55 +01:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
9b602edf4e create only one renderer 2016-05-21 00:59:33 -04:00
Leo Horie
0005cf26ee refactor redraw into pubsub and autoredraw
- pubsub is a basic pubsub impl
- autoredraw is glue code to register callback to pubsub and onevent

moved e.redraw to autoredraw
2016-05-21 00:37:34 -04:00
Leo Horie
4e65357242 node doesn't like floating point numbers as setTimeout arg 2016-05-20 22:55:21 -04:00
Leo Horie
b1e8f61c87 fix tests after merge conflict 2016-05-20 22:50:52 -04:00
Leo Horie
acd9d5b641 Merge branch 'bundler-fix' into rewrite
Conflicts:
	api/mount.js
	api/router.js
	api/tests/test-router.js
	index.js
2016-05-20 22:45:51 -04:00
Leo Horie
e5391a1957 bundler variable disambiguation 2016-05-20 22:38:10 -04:00
Pat Cavit
71c77ba603 Add m.redraw() support for multiple mount points
To better match `0.2.x` behavior: https://jsfiddle.net/xbpyqL9k/
2016-05-20 15:27:17 -07:00
Pat Cavit
04eaa25ab1 Support for skipping redraws (#1049)
Mostly useful for event handlers, setting `e.redraw = false` will prevent mithril from re-rendering.
2016-05-20 11:50:41 -07:00
Leo Horie
977239d207 rename limiter to throttle and refactor
- don't inject raf/setTimeout since we can't really mock them w/ a good degree of timing accuracy anyways

fix some unrelated tests
2016-05-19 23:24:04 -04:00
Pat Cavit
da6b697d19 spaces -> tabs 2016-05-19 11:57:41 -07:00
Pat Cavit
960812308c Move public APIs into their own folder
And start writing actual tests for them
2016-05-19 10:59:41 -07:00