@@ -14,6 +14,7 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17+import QtQuick 2.0
1718import QtTest 1.0
1819import Ubuntu.Components 0.1
1920import Unity.Test 0.1 as UT
@@ -298,6 +299,14 @@ TestCase {
298299 event.commit()
299300 }
300301
302+ Component.onCompleted: {
303+ var rootItem = parent;
304+ while (rootItem.parent != undefined) {
305+ rootItem = rootItem.parent;
306+ }
307+ removeTimeConstraintsFromDirectionalDragAreas(rootItem);
308+ }
309+
301310 /*
302311 In qmltests, sequences of touch events are sent all at once, unlike in "real life".
303312 Also qmltests might run really slowly, e.g. when run from inside virtual machines.