tests/auto/qaccessibility/tst_qaccessibility.cpp
branchRCL_3
changeset 7 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 7:3f74d0d4af4c
  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);