mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1092128 - Ensure the tests for touch action disabled actually disable touch action. r=botond
This commit is contained in:
parent
b66ca76a75
commit
645592ebd8
@ -689,10 +689,12 @@ public:
|
||||
};
|
||||
|
||||
TEST_F(APZCPinchTester, Pinch_DefaultGestures_NoTouchAction) {
|
||||
SCOPED_GFX_PREF(TouchActionEnabled, bool, false);
|
||||
DoPinchTest(true);
|
||||
}
|
||||
|
||||
TEST_F(APZCPinchGestureDetectorTester, Pinch_UseGestureDetector_NoTouchAction) {
|
||||
SCOPED_GFX_PREF(TouchActionEnabled, bool, false);
|
||||
DoPinchTest(true);
|
||||
}
|
||||
|
||||
@ -958,6 +960,7 @@ protected:
|
||||
};
|
||||
|
||||
TEST_F(APZCPanningTester, Pan) {
|
||||
SCOPED_GFX_PREF(TouchActionEnabled, bool, false);
|
||||
DoPanTest(true, true, mozilla::layers::AllowedTouchBehavior::NONE);
|
||||
}
|
||||
|
||||
@ -1451,6 +1454,7 @@ protected:
|
||||
};
|
||||
|
||||
TEST_F(APZCLongPressTester, LongPress) {
|
||||
SCOPED_GFX_PREF(TouchActionEnabled, bool, false);
|
||||
DoLongPressTest(mozilla::layers::AllowedTouchBehavior::NONE);
|
||||
}
|
||||
|
||||
@ -1462,6 +1466,7 @@ TEST_F(APZCLongPressTester, LongPressWithTouchAction) {
|
||||
}
|
||||
|
||||
TEST_F(APZCLongPressTester, LongPressPreventDefault) {
|
||||
SCOPED_GFX_PREF(TouchActionEnabled, bool, false);
|
||||
DoLongPressPreventDefaultTest(mozilla::layers::AllowedTouchBehavior::NONE);
|
||||
}
|
||||
|
||||
@ -2133,6 +2138,8 @@ TEST_F(APZHitTestingTester, ComplexMultiLayerTree) {
|
||||
}
|
||||
|
||||
TEST_F(APZHitTestingTester, TestRepaintFlushOnNewInputBlock) {
|
||||
SCOPED_GFX_PREF(TouchActionEnabled, bool, false);
|
||||
|
||||
// The main purpose of this test is to verify that touch-start events (or anything
|
||||
// that starts a new input block) don't ever get untransformed. This should always
|
||||
// hold because the APZ code should flush repaints when we start a new input block
|
||||
|
Loading…
Reference in New Issue
Block a user