~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/translations/windmill/testing.py

[r=benji][bug=795573,
 796233] On DistroSeries:+localpackagediffs ensure that the comment
 form is hidden after adding a new comment to a DistroSeriesDifference,
 prevent empty comments from being submitted,
 and add some animations and effects to make the UI less jarring and easier to
 follow.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
__metaclass__ = type
7
7
__all__ = [
8
8
    'TranslationsWindmillLayer',
 
9
    'TranslationsYUITestLayer',
9
10
    ]
10
11
 
11
12
 
12
 
from canonical.testing.layers import BaseWindmillLayer
 
13
from canonical.testing.layers import (
 
14
    BaseWindmillLayer,
 
15
    BaseYUITestLayer,
 
16
    )
13
17
 
14
18
 
15
19
class TranslationsWindmillLayer(BaseWindmillLayer):
21
25
        cls.base_url = cls.appserver_root_url(cls.facet)
22
26
        super(TranslationsWindmillLayer, cls).setUp()
23
27
 
 
28
 
 
29
class TranslationsYUITestLayer(BaseYUITestLayer):
 
30
    """Layer for Code YUI tests."""
 
31
 
 
32
    @classmethod
 
33
    def setUp(cls):
 
34
        cls.base_url = cls.appserver_root_url()
 
35
        super(TranslationsYUITestLayer, cls).setUp()