The first commit adds all tests to browser runner:
This adds all tests in api-test.js to browser.html.
I used the browser.js script to generate the skeleton of the code, then manually copy/pasted the content of the tests (I assume it has to be done this way as the IIFEs make it imposible to introspect the original test source code). The only test that needed modifying was number 33 as that doesn't use common.createTest(). (All the new tests pass, the two of the old ones that failed are still failing.)
The fourth commit fixes cases where 'data-bind' would unintentionally overwrite content in a template.
The sixth commit add the (non optional) ability to use both defined mappings and default behaviour, as referred to in #73 and #76 (I think this makes more sense than current behaviour).
PS Sorry for not using feature branches for this, but one fix led to another :)
The first commit adds all tests to browser runner: This adds all tests in api-test.js to browser.html. I used the browser.js script to generate the skeleton of the code, then manually copy/pasted the content of the tests (I assume it has to be done this way as the IIFEs make it imposible to introspect the original test source code). The only test that needed modifying was number 33 as that doesn't use common.createTest(). (All the new tests pass, the two of the old ones that failed are still failing.)
The second commit fixes the issue described here: https://github.com/flatiron/plates/issues/65 and updates tests accordingly.
The third commit updates https://github.com/flatiron/plates/pull/58 data-bind and data-bind-(attr).
The fourth commit fixes cases where 'data-bind' would unintentionally overwrite content in a template.
The sixth commit add the (non optional) ability to use both defined mappings and default behaviour, as referred to in #73 and #76 (I think this makes more sense than current behaviour).
PS Sorry for not using feature branches for this, but one fix led to another :)