зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388356
- add pref apz.test.fails_with_native_injection for windows to allow touch based events to work in windows 10 tests. r=kats
MozReview-Commit-ID: 3QJ1aFpxGxY
This commit is contained in:
Родитель
19b37af0ff
Коммит
0003b91c8f
|
@ -8,6 +8,8 @@
|
||||||
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
|
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||||
<script type="application/javascript">
|
<script type="application/javascript">
|
||||||
|
var isWindows = (getPlatform() == "windows");
|
||||||
|
|
||||||
var apz_touch_action_prefs = [
|
var apz_touch_action_prefs = [
|
||||||
// Obviously we need touch-action support enabled for testing touch-action.
|
// Obviously we need touch-action support enabled for testing touch-action.
|
||||||
["layout.css.touch_action.enabled", true],
|
["layout.css.touch_action.enabled", true],
|
||||||
|
@ -30,6 +32,7 @@ var apz_touch_action_prefs = [
|
||||||
// position is synced back to the main thread. So we disable displayport
|
// position is synced back to the main thread. So we disable displayport
|
||||||
// expiry for these tests.
|
// expiry for these tests.
|
||||||
["apz.displayport_expiry_ms", 0],
|
["apz.displayport_expiry_ms", 0],
|
||||||
|
["apz.test.fails_with_native_injection", isWindows],
|
||||||
];
|
];
|
||||||
|
|
||||||
function apzScriptInjector(name) {
|
function apzScriptInjector(name) {
|
||||||
|
|
|
@ -35,6 +35,7 @@ var touch_action_prefs = basic_pan_prefs.slice(); // make a copy
|
||||||
touch_action_prefs.push(["layout.css.touch_action.enabled", true]);
|
touch_action_prefs.push(["layout.css.touch_action.enabled", true]);
|
||||||
|
|
||||||
var isWindows = (getPlatform() == "windows");
|
var isWindows = (getPlatform() == "windows");
|
||||||
|
touch_action_prefs.push(["apz.test.fails_with_native_injection", isWindows]);
|
||||||
|
|
||||||
var subtests = [
|
var subtests = [
|
||||||
// Simple tests to exercise basic panning behaviour
|
// Simple tests to exercise basic panning behaviour
|
||||||
|
|
Загрузка…
Ссылка в новой задаче