tests/auto/qabstractslider/tst_qabstractslider.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
--- a/tests/auto/qabstractslider/tst_qabstractslider.cpp	Tue Jan 26 12:42:25 2010 +0200
+++ b/tests/auto/qabstractslider/tst_qabstractslider.cpp	Tue Feb 02 00:43:10 2010 +0200
@@ -714,11 +714,7 @@
                                    << 1                                  // delta
                                    << int(Qt::Vertical)                  // orientation of slider
                                    << int(Qt::Vertical)                  // orientation of wheel
-#ifdef Q_WS_MAC
-                                   << 1                                  // expected position after
-#else
                                    << 20                                 // expected position after
-#endif
                                    << QPoint(0,0);
 
     QTest::newRow("Normal data page") << 0                                  // initial position
@@ -746,11 +742,9 @@
                                         << 1                             // delta
                                         << int(Qt::Horizontal)           // orientation of slider
                                         << int(Qt::Vertical)             // orientation of wheel
-                                        << 0                             // expected position after
+                                        << 1                             // expected position after
                                         << QPoint(1,1);
 
-    // Scrolling in a slider of a different orientation than the wheel works
-    // if the mouse pointer is within the widget's rect
     QTest::newRow("Different orientation2")<< 0                             // initial position
                                         << 0                             // minimum
                                         << 100                           // maximum
@@ -777,11 +771,7 @@
                                         << 1                             // delta
                                         << int(Qt::Horizontal)           // orientation of slider
                                         << int(Qt::Horizontal)           // orientation of wheel
-#ifdef Q_WS_MAC
-                                        << 49                            // expected position after
-#else
                                         << 30                            // expected position after
-#endif
                                         << QPoint(1,1);
 
     QTest::newRow("Past end")              << 50                            // initial position
@@ -792,11 +782,7 @@
                                         << false                         // inverted controls
                                         << 1                             // wheel scroll lines
                                         << false                         // with modifiers
-#ifdef Q_WS_MAC
-                                        << 60                            // delta
-#else
                                         << 2                             // delta
-#endif
                                         << int(Qt::Horizontal)           // orientation of slider
                                         << int(Qt::Horizontal)           // orientation of wheel
                                         << 100                           // expected position after
@@ -810,11 +796,7 @@
                                         << false                         // inverted controls
                                         << 1                             // wheel scroll lines
                                         << false                         // with modifiers
-#ifdef Q_WS_MAC
-                                        << -60                            // delta
-#else
                                         << -2                             // delta
-#endif
                                         << int(Qt::Horizontal)           // orientation of slider
                                         << int(Qt::Horizontal)           // orientation of wheel
                                         << 0                             // expected position after