Merge lp:~cimi/unity8/fix-genericscopeview-flakytest into lp:unity8

Proposed by Andrea Cimitan
Status: Merged
Approved by: Albert Astals Cid
Approved revision: 2598
Merged at revision: 2613
Proposed branch: lp:~cimi/unity8/fix-genericscopeview-flakytest
Merge into: lp:unity8
Diff against target: 91 lines (+34/-47)
1 file modified
tests/qmltests/Dash/tst_GenericScopeView.qml (+34/-47)
To merge this branch: bzr merge lp:~cimi/unity8/fix-genericscopeview-flakytest
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Needs Fixing
Albert Astals Cid (community) Approve
Review via email: mp+303397@code.launchpad.net

Commit message

rework GenericScopeView PullToRefresh test

Description of the change

 * Are there any related MPs required for this MP to build/function as expected? Please list.
n
 * Did you perform an exploratory manual test run of your code change and any related functionality?
y
 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
n/a
 * If you changed the UI, has there been a design review?
n/a

To post a comment you must log in.
2598. By Andrea Cimitan

cosmetics

Revision history for this message
Albert Astals Cid (aacid) wrote :

Ok, let's see if that helps

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Yes

 * Did CI run pass? If not, please explain why.
Waiting before top approval

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2597
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1986/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2605
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1420
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1420
    UNSTABLE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/1420
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2633
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2512
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2512
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2512
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2506/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2506
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2506/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1986/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

FAILED: Continuous integration, rev:2598
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1990/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/2609
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1424
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1424
    FAILURE: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=qmluitests.sh/1424/console
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/2637
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=vivid+overlay/2516
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=xenial+overlay/2516
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-1-sourcepkg/release=yakkety/2516
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=yakkety/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=yakkety/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/2510/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2510
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=yakkety/2510/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/1990/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/qmltests/Dash/tst_GenericScopeView.qml'
--- tests/qmltests/Dash/tst_GenericScopeView.qml 2016-06-29 14:45:18 +0000
+++ tests/qmltests/Dash/tst_GenericScopeView.qml 2016-08-19 11:40:39 +0000
@@ -570,53 +570,40 @@
570 genericScopeView.scope = !genericScopeView.scope;570 genericScopeView.scope = !genericScopeView.scope;
571 }571 }
572572
573 function test_pullToRefresh() {573 function test_pullToRefresh_data() {
574 waitForRendering(genericScopeView)574 return [
575575 { tag: "Tall window long flick", shellHeight: units.gu(100), flickLength: units.gu(70), refresh: true },
576 mouseFlick(genericScopeView,576 { tag: "Tall window short flick", shellHeight: units.gu(100), flickLength: units.gu(25), refresh: false },
577 genericScopeView.width/2, units.gu(10),577 { tag: "Short window", shellHeight: units.gu(30), flickLength: units.gu(25), refresh: true }
578 genericScopeView.width/2, units.gu(80),578 ];
579 true, false)579 }
580580
581 var pullToRefresh = findChild(genericScopeView, "pullToRefresh")581 function test_pullToRefresh(data) {
582 tryCompare(pullToRefresh, "releaseToRefresh", true)582 var initialHeight = shell.height;
583583 shell.height = data.shellHeight;
584 spy.target = genericScopeView.scope584 waitForRendering(shell);
585 spy.signalName = "refreshed"585
586586 mouseFlick(genericScopeView,
587 mouseRelease(genericScopeView)587 genericScopeView.width/2, units.gu(6),
588 tryCompare(pullToRefresh, "releaseToRefresh", false)588 genericScopeView.width/2, units.gu(6) + data.flickLength,
589589 true, false);
590 spy.wait()590
591 compare(spy.count, 1)591 var pullToRefresh = findChild(genericScopeView, "pullToRefresh");
592592 tryCompare(pullToRefresh, "releaseToRefresh", data.refresh);
593 // test short swipe doesn't refresh on tall window593
594 mouseFlick(genericScopeView,594 spy.target = genericScopeView.scope;
595 genericScopeView.width/2, units.gu(10),595 spy.signalName = "refreshed";
596 genericScopeView.width/2, units.gu(20),596
597 true, false)597 mouseRelease(genericScopeView);
598 mouseRelease(genericScopeView)598 tryCompare(pullToRefresh, "releaseToRefresh", false);
599 compare(spy.count, 1)599
600600 if (data.refresh) {
601 // resize window, repeat the test601 spy.wait();
602 var initialHeight = shell.height602 compare(spy.count, 1);
603 shell.height = units.gu(30)603 }
604 waitForRendering(shell)604
605 mouseFlick(genericScopeView,605 shell.height = initialHeight;
606 genericScopeView.width/2, units.gu(10),606 waitForRendering(shell);
607 genericScopeView.width/2, units.gu(20),
608 true, false)
609
610 tryCompare(pullToRefresh, "releaseToRefresh", true)
611
612 mouseRelease(genericScopeView)
613 tryCompare(pullToRefresh, "releaseToRefresh", false)
614
615 spy.wait()
616 compare(spy.count, 2)
617
618 shell.height = initialHeight
619 waitForRendering(shell)
620 }607 }
621608
622 function test_item_noninteractive() {609 function test_item_noninteractive() {

Subscribers

People subscribed via source and target branches