Split the stylesheet and javascript tests into two contexts.  The tests ...

...are the same, just two groupings for the different types.