@@ -1,5 +1,5 @@
2− * Copyright (C) 2013-2014 Canonical, Ltd.
2+ * Copyright (C) 2013-2014,2016 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
5 * it under the terms of the GNU General Public License as published by
@@ -290,7 +290,7 @@ void tst_DragHandle::dragThreshold_vertical()
290 QQuickItem *baseItem = m_view->rootObject()->findChild<QQuickItem*>("baseItem");
290 QQuickItem *baseItem = m_view->rootObject()->findChild<QQuickItem*>("baseItem");
291 baseItem->setRotation(rotation);
291 baseItem->setRotation(rotation);
293− QQuickItem *dragHandle = fetchAndSetupDragHandle("downwardsDragHandle");
293+ QQuickItem *dragHandle = fetchAndSetupDragHandle("topEdgeShowDragHandle");
295 qreal dragThreshold = fetchDragThreshold(dragHandle);
295 qreal dragThreshold = fetchDragThreshold(dragHandle);
@@ -309,7 +309,7 @@ void tst_DragHandle::dragThreshold_vertical()
309 tryCompare([&](){ return parentItem->y(); }, 0);
309 tryCompare([&](){ return parentItem->y(); }, 0);
310 QCOMPARE(parentItem->property("shown").toBool(), true);
310 QCOMPARE(parentItem->property("shown").toBool(), true);
312− dragHandle = fetchAndSetupDragHandle("upwardsDragHandle");
312+ dragHandle = fetchAndSetupDragHandle("topEdgeHideDragHandle");
314 dragThreshold = fetchDragThreshold(dragHandle);
314 dragThreshold = fetchDragThreshold(dragHandle);
@@ -372,7 +372,7 @@ void tst_DragHandle::stretch_horizontal()
373void tst_DragHandle::stretch_vertical()
373void tst_DragHandle::stretch_vertical()
375− QQuickItem *dragHandle = fetchAndSetupDragHandle("downwardsDragHandle");
375+ QQuickItem *dragHandle = fetchAndSetupDragHandle("topEdgeShowDragHandle");
376 qreal totalDragDistance = dragHandle->property("maxTotalDragDistance").toReal();
376 qreal totalDragDistance = dragHandle->property("maxTotalDragDistance").toReal();
377 QQuickItem *parentItem = dragHandle->parentItem();
377 QQuickItem *parentItem = dragHandle->parentItem();
@@ -389,7 +389,7 @@ void tst_DragHandle::stretch_vertical()
389 tryCompare([&](){ return parentItem->height(); }, totalDragDistance);
389 tryCompare([&](){ return parentItem->height(); }, totalDragDistance);
390 QCOMPARE(parentItem->property("shown").toBool(), true);
390 QCOMPARE(parentItem->property("shown").toBool(), true);
392− dragHandle = fetchAndSetupDragHandle("upwardsDragHandle");
392+ dragHandle = fetchAndSetupDragHandle("topEdgeHideDragHandle");
394 // flick all the way
394 // flick all the way
395 flickAndHold(dragHandle, totalDragDistance);
395 flickAndHold(dragHandle, totalDragDistance);
@@ -408,7 +408,7 @@ void tst_DragHandle::stretch_vertical()
409void tst_DragHandle::hintingAnimation()
409void tst_DragHandle::hintingAnimation()
411− QQuickItem *dragHandle = fetchAndSetupDragHandle("downwardsDragHandle");
411+ QQuickItem *dragHandle = fetchAndSetupDragHandle("topEdgeShowDragHandle");
412 QQuickItem *parentItem = dragHandle->parentItem();
412 QQuickItem *parentItem = dragHandle->parentItem();
413 qreal hintDisplacement = 100.0;
413 qreal hintDisplacement = 100.0;
@@ -449,7 +449,7 @@ void tst_DragHandle::hintingAnimation()
450void tst_DragHandle::hintingAnimation_dontRestartAfterFinishedAndStillPressed()
450void tst_DragHandle::hintingAnimation_dontRestartAfterFinishedAndStillPressed()
452− QQuickItem *dragHandle = fetchAndSetupDragHandle("downwardsDragHandle");
452+ QQuickItem *dragHandle = fetchAndSetupDragHandle("topEdgeShowDragHandle");
453 QQuickItem *parentItem = dragHandle->parentItem();
453 QQuickItem *parentItem = dragHandle->parentItem();
454 qreal hintDisplacement = 100.0;
454 qreal hintDisplacement = 100.0;