Commit graph

53 commits

Author SHA1 Message Date
Pierre-Yves Gerardy
4aaee178bc Fix the test of the old suite leave the new one broken 2016-09-11 17:10:34 +02:00
Pierre-Yves Gerardy
ee8ab3561b Break a test of the new suite 2016-09-11 17:00:06 +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
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
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
impinball
2a47a8e77d Merge branch 'next' of https://github.com/isiahmeadows/mithril.js into prop-fix 2015-12-10 19:14:32 -05:00
impinball
cb29a21ec3 Fix #873, regenerate minified variants.
Drive-by fix: uppercase tag name in failing m.trust test (doesn't make it
pass, though).
2015-12-10 18:54:43 -05:00
impinball
0b173deed7 Merge 'origin/patch-2', remove trailing commas 2015-11-25 22:45:45 -05:00
impinball
e0f51db618 Disable tests that mysteriously affect others 2015-11-25 22:43:02 -05:00
impinball
3ae005bd1d Unfix test 2015-11-20 02:53:28 -05:00
impinball
d7ef127be2 Isolate m.prop() and m.deferred() implementations (mostly)
This mostly isolates the implementations for both of these. Now, everything
here calls the method itself, not any of the external methods.

Few driveby fixes as well:

1. Git now ignores archive/ again (it's a build artifact, and can be removed
   when updating `master`)
2. Since I had to rewrite most of the Deferred implementation, the new version
   passes one of the skipped tests, so it is now enabled.
2015-11-20 02:49:48 -05:00
impinball
f673306d6c Merge remote-tracking branch 'origin/next' into patch-2 2015-11-19 18:12:43 -05:00
impinball
b7ae45b6e0 Address @lhorie's comments, fix HTML test files 2015-11-13 21:40:25 -05:00
Isiah Meadows
9fab2b8371 Create CONTRIBUTING.md
I added the following to it:

- Bug reporting
- Feature requests
- Contributing guide
- Style guide
2015-11-10 03:22:39 -05:00