Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Patternslib merge: Removed the Mockup registry in favor of Patternslib's #25

Merged
merged 17 commits into from
Jan 26, 2015

Conversation

jcbrand
Copy link
Member

@jcbrand jcbrand commented Jan 25, 2015

This pull request is in connection with #460 and needs to be merged first before #460 can be merged.

Most details are provided in that pull request.

CC @vangheem

This init method calls the constructor for the pattern and then initializes the
return instance.

This is Mockup specific and therefore shouldn't be done in the Patternslib
registry.
signature to the Patternslib init method.
Useful when you're running the tests in a VM environment but still want to use
a browser.
Patternslib will automatically turn the pattern into a jQuery pattern.
This allows the Patternslib registry code to be simpler by not having the
differentiate between Patternslib patterns and Mockup patterns.
Also, extend the Makefile so that we can use the test-serve runner.
* Test for exceptions raised when required properties aren't provided.
* Test that the init method is called.
* Make sure the existing tests now conform with what the Patternslib registry expects.
The DOM parsing test will be moved to a new test module.
Same applies for patterns without a "trigger" attribute.
This is done so that the TinyMCE patterns in links.js still work.

However, I don't see why the code there should be wrapped in patterns, an
eventual refactoring there is probably a good idea.
@vangheem
Copy link
Member

Looks fine. Feel free to merge whenever you want along with mockup.

jcbrand added a commit that referenced this pull request Jan 26, 2015
Patternslib merge: Removed the Mockup registry in favor of Patternslib's
@jcbrand jcbrand merged commit 04b91cb into master Jan 26, 2015
@gforcada gforcada deleted the patternslib-merge branch January 26, 2015 19:58
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.

2 participants