Commit graph

62 commits

Author SHA1 Message Date
Leo
6ab2b6b6c3 merge to next 2017-01-30 11:04:14 -05:00
impinball
f670acb132 Fix added header request parameter, document it, regen bundles 2016-12-30 02:07:31 -05:00
cetra3
7fc0e0378c Allow Request Headers to be set via config (#1464)
Fixes #1463.
2016-12-30 01:33:13 -05:00
Igor Kurganov
d55e8b9bee forgot to rename test. 2016-12-09 17:47:54 -08:00
Igor Kurganov
caaa8c9cbe editable node w/ focus is updated when data is changed. 2016-12-09 17:37:14 -08:00
Igor Kurganov
544bb503b9 Merge remote-tracking branch 'upstream/next' into merge 2016-12-05 14:27:50 -08:00
Pierre-Yves Gerardy
97186f88a5 Reactivate previously disabled test 2016-09-10 01:26:09 +02:00
Igor Kurganov
ec95de9908 Cache the childrens of editable elements 2016-09-10 01:18:07 +02:00
Leo Horie
6fe960ee8a Merge pull request #1071 from husio/toJSON
JSON.stringify(m.prop(x)) use x.toJSON method when possible
2016-08-12 00:45:27 -04:00
Collin Stedman
62ae1e8b48 Patch for #956: redraw trusted content with multiple nodes 2016-07-18 01:28:48 -04:00
ludbek
e46f8d5881 fixed syntax error 2016-07-11 20:56:39 +05:45
ludbek
cb64be965b removed stupid test 2016-07-11 20:34:03 +05:45
ludbek
8d14e811f9 proper component check at m() 2016-07-11 10:55:30 +05:45
Thomas Erfurth
d6f7653e31 Added tests for history modification when switching routes with parameters (#1125) 2016-07-06 16:00:39 +02:00
Jared Jacobs
e9e2a45caa Fixing m.route() after a canceled navigation (#1126) 2016-06-29 22:48:45 -07:00
Demian Ferreiro
3e51c8c2ff Remove unloaders when root element is removed
When a controller calls preventDefault on its onunload method, it prevents the current root element from being unmounted via a route change. But it does not prevent it from being unmounted via m.mount(root, null). In that case, the root element is unmounted, but any unloaders that it had keep hanging on the `unloaders` array, and that prevented any future m.mount(root, component) calls from succeeding. This is what was happening on the pending route() tests.

The fix is pretty simple: just reset the `unloaders` array when removing the root element, just like it's done when no unloader calls preventDefault.

Also, 2 of the 4 pending tests were removed because they were identical to the other 2.
2016-06-18 07:41:49 -03:00
Demian Ferreiro
1b36f2b720 Add test for select value render edge case 2016-06-13 02:38:51 -03:00
Bruce Lewis
c98f663653 Render booleans as empty strings 2016-06-10 11:00:56 -04:00
Leo Horie
3cf16631a0 fix valueless attributes #1093 2016-06-06 09:21:58 -04:00
Leo Horie
80349b3c74 #1080 parse pattern attribute correctly 2016-06-01 15:42:08 -04:00
Piotr Husiatyński
c71e8f4fcb JSON.stringify(m.prop(x)) use x.toJSON method when possible
When JSON serializing m.prop, check if wrapped object does define toJSON method
and if so, return it's result.
2016-05-25 11:12:36 +02:00
Ian Henderson
e03f194e32 Add test for replaceScriptNodes 2016-05-19 09:53:09 -07:00
Leo Horie
dee64503db #1039 ignore url interpolations without mapped values 2016-05-06 11:49:00 -04:00
Leo Horie
13fdb60f66 clean slate 2016-04-20 20:01:04 -04:00
Isiah Meadows
bb321e68d3 Clarify why a test is broken. [ci skip] 2016-04-19 23:00:38 -04:00
Leo Horie
04847785a0 Revert "Use common mock for tests."
This reverts commit f589aa2005.
2016-04-19 22:53:59 -04:00
Carroll
ea946f1a0e Empty attributes. Fixes #971 2016-03-03 10:27:26 +00:00
impinball
f589aa2005 Use common mock for tests. 2016-03-02 14:10:30 -05:00
impinball
199da9c21b Merge branch 'next' of https://github.com/lhorie/mithril.js into test-fix 2016-03-02 14:05:21 -05:00
impinball
55b99dd0e2 Remove an erroneous npm-debug.log, disable failing test
Driveby fix: fix a few linter warnings and actually have CI linting things.
2016-03-02 13:55:48 -05:00
Igor Kurganov
1d3af9d690 moved test to proper file 2016-02-29 16:15:04 -08:00
Igor Kurganov
2793853426 rebased & fixed the issue in the reverted code base. 2016-02-29 15:29:08 -08:00
Leo Horie
4f0d479ee7 Merge branch 'lint' of https://github.com/isiahmeadows/mithril.js into isiahmeadows-lint
Conflicts:
	mithril.js
	tests/mithril-tests.js
2016-01-28 18:40:19 -05:00
impinball
fb3a534de0 Lint old tests 2016-01-22 14:07:25 -05:00
John Long
1eada0de80 Removes FIXME comment 2016-01-08 08:59:48 -07:00
John Long
aad2fc3e33 Adds test 2016-01-05 15:03:52 -07:00
John Long
2cc898877d Possibly fixes trust tests 2016-01-05 14:25:52 -07:00
Syaiful Bahri
795f098404 Fix onunload test case
- the previous test only remove last item on array, but expect all
subcomponent's onunload to be called. This PR change it by clear that
array.
- uncomment previous test case that marked fail.
2015-12-29 09:58:26 +07:00
Leo Horie
b2972e9934 Merge pull request #907 from isiahmeadows/update
Update dependencies, clean up couple things
2015-12-20 16:40:08 -05:00
Leo Horie
63bf9cca56 disable tests that break due to lack of innerHTML api in node 2015-12-20 09:24:04 -05:00
Leo Horie
270b20a2b0 v0.2.2-rc.1 2015-12-20 09:14:28 -05:00
impinball
bfa3899ec8 Update dependencies, clean up couple things 2015-12-20 03:07:50 -05:00
impinball
11f05e3180 Call onreadystatechange in handler 2015-12-16 13:38:09 -05:00
impinball
c21566366e Fix inflexible/slightly broken m.request tests 2015-12-16 13:33:34 -05:00
Isiah Meadows
b2faa43f91 Revert "Revert "More performance improvements + etc."" 2015-12-16 11:04:07 -05:00
Isiah Meadows
998704a722 Revert "More performance improvements + etc." 2015-12-16 10:53:27 -05:00
impinball
bfc9dd45d4 Merge branch 'next' of https://github.com/lhorie/mithril.js into speed 2015-12-15 13:53:16 -05:00
impinball
27a3dca013 Move unloading test to where it's supposed to be [ci skip] 2015-12-15 13:52:14 -05:00
impinball
0a744f6387 Merge branch 'next' of https://github.com/lhorie/mithril.js into speed 2015-12-15 07:10:40 -05:00
impinball
a7b2294c11 OO-ize DOM builder, improve performance (part 1), add benchmarking suite 2015-12-15 07:07:50 -05:00