Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser tests, fix greedy matching, default data-bind, convention and configuration #105

Closed
wants to merge 11 commits into from

Conversation

osmestad
Copy link

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: #65 and updates tests accordingly.

The third commit updates #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 :)

Øyvind Smestad added 9 commits April 10, 2013 09:35
…d make specifying a general attribute to match on (map.conf.where) work.

Update the tests:
* Test 7 previously worked because of the greedy matching bug, changed to also show an attribute that should not match (with the same value as one that should).
* Tests 12, 16 and 17 used the undocumented greedy matching to match on class names, added a Map configuration (where: 'class').
…ings and add tests. This updates flatiron#58 against latest master.
…conventions (default settings like mapping 'id', 'data-bind(-attr)' and the map.conf.where setting).
@wprater
Copy link

wprater commented May 6, 2013

Is there any interest in merging this PR? Or is this project gaining no more support?

@Swaagie Swaagie mentioned this pull request Jun 4, 2013
…ssName' instead of 'class'), serverside tests (api-test.js) updated to match.
@flatiron flatiron locked and limited conversation to collaborators Jan 26, 2016
@indexzero
Copy link
Member

Closing this due to age. This project is formally deprecated. Will be adding a notice soon.

@indexzero indexzero closed this Jan 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants