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:
Joel Maher 2017-08-08 15:08:04 -04:00
parent 19b37af0ff
commit 0003b91c8f
2 changed files with 4 additions and 0 deletions

View File

@ -8,6 +8,8 @@
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="application/javascript">
var isWindows = (getPlatform() == "windows");
var apz_touch_action_prefs = [
// Obviously we need touch-action support enabled for testing touch-action.
["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
// expiry for these tests.
["apz.displayport_expiry_ms", 0],
["apz.test.fails_with_native_injection", isWindows],
];
function apzScriptInjector(name) {

View File

@ -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]);
var isWindows = (getPlatform() == "windows");
touch_action_prefs.push(["apz.test.fails_with_native_injection", isWindows]);
var subtests = [
// Simple tests to exercise basic panning behaviour