on xenial help sign in
Adapt test to code changes
695b3beAlbert Astals Cid
tests/qmltests/Dash/tst_GenericScopeView.qml+15−5
@@ -642,11 +642,15 @@ Item {
642 var item0 = findChild(cardGrid, "delegate0");
642 var item0 = findChild(cardGrid, "delegate0");
643 waitForRendering(item0);
643 waitForRendering(item0);
644 compare(item0.enabled, false);
644 compare(item0.enabled, false);
645+
645 var touchdown = findChild(item0, "touchdown");
646 var touchdown = findChild(item0, "touchdown");
647+ compare(touchdown, null);
646
648
647− compare(touchdown.visible, false);
648 mousePress(item0);
649 mousePress(item0);
650+
651+ touchdown = findChild(item0, "touchdown");
649− compare(touchdown.visible, false);
652+ compare(touchdown, null);
653+
650 mouseRelease(item0);
654 mouseRelease(item0);
651
655
652 cardTool.template["non-interactive"] = false;
656 cardTool.template["non-interactive"] = false;
@@ -656,13 +660,19 @@ Item {
656 waitForRendering(category0);
660 waitForRendering(category0);
657 item0 = findChild(cardGrid, "delegate0");
661 item0 = findChild(cardGrid, "delegate0");
658 compare(item0.enabled, true);
662 compare(item0.enabled, true);
659− var touchdown = findChild(item0, "touchdown");
660
663
664+ touchdown = findChild(item0, "touchdown");
661− compare(touchdown.visible, false);
665+ compare(touchdown, null);
666+
662 mousePress(item0);
667 mousePress(item0);
668+
669+ touchdown = findChild(item0, "touchdown");
663 compare(touchdown.visible, true);
670 compare(touchdown.visible, true);
671+
664 mouseRelease(item0);
672 mouseRelease(item0);
673+
674+ touchdown = findChild(item0, "touchdown");
665− compare(touchdown.visible, false);
675+ compare(touchdown, null);
666 closePreview();
676 closePreview();
667 }
677 }
668
678