Commit graph

104 commits

Author SHA1 Message Date
spacejack
f8ccd418d3 Add test for select option with empty string value 2017-04-26 20:07:25 -04:00
Isiah Meadows
2fcaafd080 Merge pull request #4 from lhorie/next
Update fork
2017-04-11 13:35:35 -04:00
Isiah Meadows
81b7ff56ee Add tests for event vnode second argument 2017-04-11 13:09:38 -04:00
Pat Cavit
34d6a710a9 style: fix quotes (#1787) 2017-04-07 12:56:31 -07:00
ludbek
5c616c0fbb removed console.log 2017-04-05 22:01:21 +05:45
Pierre-Yves Gerardy
98e3cbdc69 Revert attrs.class creation logic to what we had in v1.0.1. fix #1764 2017-04-04 12:23:51 +02:00
Pierre-Yves Gerardy
45afd4117a Fix render tests for Browsers 2017-04-04 12:10:08 +02:00
Isiah Meadows
295b764f52 Merge pull request #1753 from StephanHoyer/master
Fix rendering `0` as only child without attrs - fixes #1752
2017-03-29 18:24:19 -04:00
Pierre-Yves Gerardy
0a76772283 Add tests for components that overwrite their state in oninit 2017-03-27 18:30:48 +02:00
Pierre-Yves Gerardy
32ada55e00 Make the state undefined, not null during class and closure component initialization 2017-03-27 10:42:12 +02:00
Pierre-Yves Gerardy
7be2ff5feb Strengthen the self-return prevention logic (for recycled nodes and updates) 2017-03-26 22:19:05 +02:00
Isiah Meadows
d4a0417dde Merge branch 'next' of https://github.com/lhorie/mithril.js into strict-mode 2017-03-03 18:27:24 -05:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
6a7144fc89 Tests: add a test for onbeforeupdate and recycled nodes 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
e496f7bfa6 Test: ensure that recycled components get a fresh state 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
fc038f9d85 Tests: enable tests for #1638 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
1dd5fe3101 Tests: Some more render/tests/test-component.js refactoring 2017-02-21 09:17:00 +01:00
Pierre-Yves Gerardy
2196f5c909 Add test-utils/components.js to index.html where needed 2017-02-21 09:16:08 +01: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
24243dba94 Tests: wrap the rest of the components definitions 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
90b67b42f0 Tests: render/test-components tweaks 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 Gérardy
3f3af74dde Support classes and factories as components (#1339)
* Support classes and factories as components

* Tests for class and factory component support
2017-02-14 22:48:02 -05:00
Pierre-Yves Gérardy
75b20e86e8 test: Re-enable the test suite (#1616) 2017-02-11 14:04:27 -08:00
Leo
632677e00c fix update lifecycle in children of recycled 2017-02-10 10:09:18 -05:00
Leo
0d9a51fe37 fix lifecycle in unkeyed child of recycled keyed 2017-02-09 09:54:48 -05:00
Leo
dc42b60687 #1609 fix lifecycle hooks in children of recycled keyed vnode 2017-02-09 08:31:08 -05:00
Gyandeep Singh
390e1fe343 Update: Add elem to parent before adding its children 2017-02-07 21:55:01 -06:00
Pat Cavit
9f32267259 tests: Update tests for false -> "" behavior 2017-01-05 23:07:47 -08:00
Barney Carroll
fbb454c6fd Merge branch 'rewrite' into array-isArray 2017-01-04 14:24:07 +00:00
Barney Carroll
3fa771ac28 Test for onbeforeremove delayed resolution 2016-12-30 19:31:51 +00:00
Leo Horie
1222a9a3ab change onbeforeremove and make state inherit from prototype 2016-12-26 12:19:20 -05:00
James
39b6f1e0fe Simplify draw routine 2016-12-18 22:21:53 +11:00
James
15c28066d7 Spy on setAttribute to test customElement support 2016-12-18 22:07:33 +11:00
Leo Horie
de07a54881 add support for route state #1480 2016-12-17 21:50:04 -05:00
Leo Horie
c95629c623 handles noop from undefined to null #1473 2016-12-16 15:21:57 -05:00
Barney Carroll
1050ade7c8 Merge branch 'rewrite' into array-isArray 2016-12-05 19:12:01 +00:00
Leo Horie
3068f2494b beef up tests 2016-12-02 21:24:12 -05:00
Leo Horie
2f7c4983f3 ensure null doesn't displace next siblings 2016-12-02 20:41:07 -05:00
Barney Carroll
deaabb2684 Merge branch 'rewrite' into array-isArray 2016-11-24 16:26:10 +00:00
Barney Carroll
edf3c5eaf7 Tests for contenteditable trust, including failing test for #1421 2016-11-24 12:25:00 +00:00
Barney Carroll
d82d337569 Replace x instanceof Array with Array.isArray(x) 2016-11-24 09:21:27 +00:00
Leo Horie
8eb61a12ab fix diff bug when array is sparse, item type and position and array length change 2016-11-23 22:28:08 -05:00
Barney Carroll
63f491db88 Initial test case: can't declare class as an attribute in hyperscript selector 2016-11-19 17:32:36 +00:00
Thibault Duplessis
d539c515ea Test SVG update element with tag change
Currently failing. Updating an SVG element which tag changes
actually results in an unknown HTML element.
2016-11-13 11:30:22 +01:00
Leo Horie
3c6e257a19 #1311 don't repeatedly throw the same error if oninit async-redraws and view throws 2016-11-02 14:56:17 -04:00
Leo Horie
65b4116666 don't throw error on undefined/null trusted vnode #1375 2016-10-28 09:51:07 -04:00