~nskaggs/ubuntu-ui-toolkit/add-popover-object-support

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_flickable.py

  • Committer: CI bot
  • Author(s): Zsombor Egri, Tarmac, Zoltán Balogh
  • Date: 2014-06-18 17:10:31 UTC
  • mfrom: (1000.76.9 landing_04-06)
  • Revision ID: ps-jenkins@lists.canonical.com-20140618171031-1s026ulaxymh2e9f
  [Leo Arias ]
  * On the autopilot helper for the header, fix the swipe to show
    when hidden.
  * Added a fixture for autopilot tests to use a fake home directory.
    Fixes: https://bugs.launchpad.net/bugs/1317639
  * Cleaned the containers in unity test using the alternate
    launcher.

  [ Christian Dywan ]   
  * Add a launcher with a switch for the QQMLEngine.

  [ Tim Peeters ]
  * Anchor the internal PageTreeNode of PageStack to fill its parent.
    Fixes: https://bugs.launchpad.net/bugs/1322527
 

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
class Scrollable(_common.UbuntuUIToolkitCustomProxyObjectBase):
42
42
 
 
43
    @autopilot_logging.log_action(logger.info)
 
44
    def is_child_visible(self, child):
 
45
        """Determine if the child is visible.
 
46
 
 
47
        A child is visible if no scrolling is needed to reveal it.
 
48
 
 
49
        """
 
50
        containers = self._get_containers()
 
51
        return self._is_child_visible(child, containers)
 
52
 
43
53
    def _get_containers(self):
44
54
        """Return a list with the containers to take into account when swiping.
45
55