mithril-vndb/render/tests
Pierre-Yves Gérardy 60e8f307f1 Fix state initialization (#1652)
* Add test-utils/components.js and its tests

* Tests: group together tests with/without components

* Tests: factory => closure components

* Tests: add dummy forEach blocks around sections with components

* Tests: render/test-components tweaks

* 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

* Tests: wrap the rest of the components definitions

* Tests: enable the three kind of components in all related files but api/tests/test-route.js

* Add test-utils/components.js to index.html where needed

* Tests: Some more render/tests/test-component.js refactoring

* Tests: enable tests for #1638

* fix #1638

* Test: ensure that recycled components get a fresh state

* Tests: add a test for onbeforeupdate and recycled nodes

* Fix recycled components initialization
fix #1641
2017-02-25 15:53:51 -05:00
..
index.html Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-attributes.js Simplify draw routine 2016-12-18 22:21:53 +11:00
test-component.js Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-createElement.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-createFragment.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-createHTML.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-createNodes.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-createText.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-event.js fix event removal in diff 2016-08-12 22:08:02 -04:00
test-fragment.js Replace x instanceof Array with Array.isArray(x) 2016-11-24 09:21:27 +00:00
test-hyperscript.js Support classes and factories as components (#1339) 2017-02-14 22:48:02 -05:00
test-input.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-normalize.js tests: Update tests for false -> "" behavior 2017-01-05 23:07:47 -08:00
test-normalizeChildren.js tests: Update tests for false -> "" behavior 2017-01-05 23:07:47 -08:00
test-onbeforeremove.js Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-onbeforeupdate.js Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-oncreate.js fix #1163 2016-07-21 00:52:32 -04:00
test-oninit.js Update: Add elem to parent before adding its children 2017-02-07 21:55:01 -06:00
test-onremove.js Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-onupdate.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-render.js Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-textContent.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-trust.js don't throw error on undefined/null trusted vnode #1375 2016-10-28 09:51:07 -04:00
test-updateElement.js Test SVG update element with tag change 2016-11-13 11:30:22 +01:00
test-updateFragment.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
test-updateHTML.js don't duplicate html on updates 2016-07-30 15:46:14 -04:00
test-updateNodes.js Fix state initialization (#1652) 2017-02-25 15:53:51 -05:00
test-updateText.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00