tests/auto/qaccessibility/tst_qaccessibility.cpp
changeset 7 f7bc934e204c
parent 3 41300fa6a67c
equal deleted inserted replaced
3:41300fa6a67c 7:f7bc934e204c
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the test suite of the Qt Toolkit.
     7 ** This file is part of the test suite of the Qt Toolkit.
     8 **
     8 **
  3921     QAccessibleInterface *acc = QAccessible::queryAccessibleInterface(w);
  3921     QAccessibleInterface *acc = QAccessible::queryAccessibleInterface(w);
  3922     delete acc;
  3922     delete acc;
  3923 
  3923 
  3924     acc = QAccessible::queryAccessibleInterface(cb);
  3924     acc = QAccessible::queryAccessibleInterface(cb);
  3925 
  3925 
  3926     QRect accRect = acc->rect(0);
       
  3927     for (int i = 1; i < acc->childCount(); ++i) {
  3926     for (int i = 1; i < acc->childCount(); ++i) {
  3928         QVERIFY(accRect.contains(acc->rect(i)));
  3927         QTRY_VERIFY(acc->rect(0).contains(acc->rect(i)));
  3929     }
  3928     }
  3930     QCOMPARE(acc->doAction(QAccessible::Press, 2), true);
  3929     QCOMPARE(acc->doAction(QAccessible::Press, 2), true);
  3931     QTest::qWait(400);
  3930     QTest::qWait(400);
  3932     QAccessibleInterface *accList = 0;
  3931     QAccessibleInterface *accList = 0;
  3933     int entry = acc->navigate(QAccessible::Child, 3, &accList);
  3932     int entry = acc->navigate(QAccessible::Child, 3, &accList);