Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

Write unit tests for single module support #5987

Closed
jzaefferer opened this issue May 9, 2013 · 9 comments
Closed

Write unit tests for single module support #5987

jzaefferer opened this issue May 9, 2013 · 9 comments

Comments

@jzaefferer
Copy link
Contributor

As discussed on the jquery-devs-team mailing list. These were my notes about issues when trying to use jQuery Mobile without the init module, in a very simple example:

Apart from an issue with nested listviews its mostly adding classes to various elements: ui-mobile to <html>, ui-mobile-viewport to <body>, ui-page and ui-page-active to a <div> that contains the actual content. And a few swatch classes to make things look okay.

Doesn't seem so bad now, but since this approach isn't documented anywhere (right?), I had to cobble that together from the generated markup. And the example really wasn't doing much. just a header, footer, a bit of navigation and a listview.

@arschmitz
Copy link
Contributor

@jzaefferer for listview specifically this can now be used independantly with out pages on the js side on master, @uGoMobi is working on fixing up the css to match on branch next so the classes you mention will not be needed.

toolbars & navbars also work independent of pages in branch pageSections. Hoping to be able to do the same with the rest of the widgets for 1.4

@jaspermdegroot
Copy link
Contributor

Ticket for listviews without page: #5429 (this is fixed in branch "next").

@jzaefferer
Copy link
Contributor Author

This is labelled "Fixed in next", since that branch landed in master, does that means this ticket can be closed?

@jaspermdegroot
Copy link
Contributor

@jzaefferer

I added that label when the work on listview was done in branch "next", but didn't close the issue after the merge because I realized the ticket is not only about listview. This is not done yet for all widgets or the changes are still in branches, so I'll remove that label.

@jaspermdegroot
Copy link
Contributor

@arschmitz @gabrielschulhof

Are there still widgets that don't work outside page / without init module?

@gabrielschulhof
Copy link

Yes. Collapsibleset does not work without the page, because the page contains the code that causes initSelector to be added to the collapsible constructor ($.mobile.collapsible.initSelector). Collapsibleset uses this initSelector to select the children that should be turned into collapsibles.

@gabrielschulhof
Copy link

Controlgroup will also not work because it too relies on initSelector.

gabrielschulhof pushed a commit that referenced this issue Apr 24, 2014
gabrielschulhof pushed a commit that referenced this issue May 8, 2014
jugglinmike added a commit to jugglinmike/jquery-mobile that referenced this issue May 29, 2014
Both modules have a hard dependency on the "vmouse" module that should
be expressed in AMD.

Re jquery-archivegh-5987
Closes jquery-archivegh-7274
@jaspermdegroot jaspermdegroot added this to the 1.5.0 milestone May 30, 2014
arschmitz pushed a commit that referenced this issue Jun 2, 2014
Both modules have a hard dependency on the "vmouse" module that should
be expressed in AMD.

Re gh-5987
Closes gh-7383
Closes gh-7274
arschmitz pushed a commit that referenced this issue Jun 3, 2014
Both modules have a hard dependency on the "vmouse" module that should
be expressed in AMD.

Re gh-5987
Closes gh-7383
Closes gh-7274

(cherry picked from commit 44e2d98)
gabrielschulhof pushed a commit to gabrielschulhof/jquery-mobile that referenced this issue Jun 6, 2014
gabrielschulhof pushed a commit that referenced this issue Oct 9, 2014
agcolom pushed a commit to agcolom/jquery-mobile that referenced this issue Nov 26, 2014
Both modules have a hard dependency on the "vmouse" module that should
be expressed in AMD.

Re jquery-archivegh-5987
Closes jquery-archivegh-7383
Closes jquery-archivegh-7274
@arschmitz arschmitz modified the milestones: 1.6.0, 1.5.0 Jun 29, 2015
cgack pushed a commit to cgack/jquery-mobile that referenced this issue Dec 10, 2015
arschmitz pushed a commit to arschmitz/jquery-mobile that referenced this issue Mar 28, 2016
@apsdehal
Copy link
Contributor

apsdehal commented May 8, 2016

@arschmitz Can this be closed as we have individual modules now?

@arschmitz
Copy link
Contributor

Yes but lets open issues for any widgets which dont have an individual module test already i think there are still a acouple

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants