mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1449988 [wpt PR 10241] - Fix up the touch-action tests, a=testonly
Automatic update from web-platform-testsFix up the touch-action tests Move the touch-action: pan-left/right/up/down tests to the next version of the spec. https://github.com/w3c/pointerevents/pull/238 Bug: 826726 Change-Id: Icab0e439e0c2281f0c9fc78eec0a41a044f37f71 Reviewed-on: https://chromium-review.googlesource.com/984736 Reviewed-by: Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Navid Zolghadr <nzolghadr@chromium.org> Cr-Commit-Position: refs/heads/master@{#548078} wpt-commits: 48df374681de1672f3826915161f6c2e12ec4d59 wpt-pr: 10241 wpt-commits: 48df374681de1672f3826915161f6c2e12ec4d59 wpt-pr: 10241
This commit is contained in:
parent
007eee9727
commit
178a495c46
@ -14989,6 +14989,30 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-down-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/extension/pointerevent_touch-action-pan-down-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-left-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/extension/pointerevent_touch-action-pan-left-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-right-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/extension/pointerevent_touch-action-pan-right-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-up-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/extension/pointerevent_touch-action-pan-up-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/html/pointerevent_drag_interaction-manual.html": [
|
||||
[
|
||||
"/pointerevents/html/pointerevent_drag_interaction-manual.html",
|
||||
@ -15319,30 +15343,6 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-down-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/pointerevent_touch-action-pan-down-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-left-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/pointerevent_touch-action-pan-left-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-right-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/pointerevent_touch-action-pan-right-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-up-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/pointerevent_touch-action-pan-up-css_touch-manual.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-x-css_touch-manual.html": [
|
||||
[
|
||||
"/pointerevents/pointerevent_touch-action-pan-x-css_touch-manual.html",
|
||||
@ -352146,6 +352146,12 @@
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-verification.html": [
|
||||
[
|
||||
"/pointerevents/extension/pointerevent_touch-action-verification.html",
|
||||
{}
|
||||
]
|
||||
],
|
||||
"pointerevents/idlharness.html": [
|
||||
[
|
||||
"/pointerevents/idlharness.html",
|
||||
@ -584523,6 +584529,26 @@
|
||||
"11d5baa9206313270be6289205b002b623af85db",
|
||||
"testharness"
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-down-css_touch-manual.html": [
|
||||
"4743453e64f6d2006f7e4034a5e2e6729b2f3ff8",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-left-css_touch-manual.html": [
|
||||
"07c68a3e30fed012a6eb5a33e9548e516e4ea027",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-right-css_touch-manual.html": [
|
||||
"dd4ad4a8060ae08d3fdd013b299e5cc8ca0906bc",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-pan-up-css_touch-manual.html": [
|
||||
"5470d896c20335be39b3276d4dc6a49b00923e25",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/extension/pointerevent_touch-action-verification.html": [
|
||||
"f3188cc408b651f05ad946768c8233d0f7586b38",
|
||||
"testharness"
|
||||
],
|
||||
"pointerevents/html/pointerevent_drag_interaction-manual.html": [
|
||||
"1eb570dbed48373f9e840b7694b774448b689879",
|
||||
"manual"
|
||||
@ -584767,22 +584793,6 @@
|
||||
"d60ccd5a174204dd5baf8ad1db690b1b67b969fe",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-down-css_touch-manual.html": [
|
||||
"e400167599193b73aca776bb49fa372094b560ec",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-left-css_touch-manual.html": [
|
||||
"e940ad98c2e63c82ec2977e0bbc87364d24aaf88",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-right-css_touch-manual.html": [
|
||||
"48ed6d4e7966fad84479eaf5990136154e31242c",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-up-css_touch-manual.html": [
|
||||
"9f63a5efe3fe642ce6787fdb1bf9d68184d7ce96",
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-pan-x-css_touch-manual.html": [
|
||||
"e3adda44b02879ead5681d0e1bb8fc6bc47e4f39",
|
||||
"manual"
|
||||
@ -584816,7 +584826,7 @@
|
||||
"manual"
|
||||
],
|
||||
"pointerevents/pointerevent_touch-action-verification.html": [
|
||||
"c2c952d562f601f2104014f6236368a7f6b84801",
|
||||
"66e0cde3be274124cc2a015bbce59e8e42e5de69",
|
||||
"testharness"
|
||||
],
|
||||
"pointerevents/pointerlock/pointerevent_movementxy-manual.html": [
|
||||
|
@ -4,10 +4,10 @@
|
||||
<title>touch-action: pan-down</title>
|
||||
<meta name="assert" content="TA15.4 - With `touch-action: pan-down` on a swiped or click/dragged element, only panning in the y-axis down direction should be possible.">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<link rel="stylesheet" type="text/css" href="../pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="../pointerevent_support.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
@ -4,10 +4,10 @@
|
||||
<title>touch-action: pan-left</title>
|
||||
<meta name="assert" content="TA15.3 - With `touch-action: pan-left` on a swiped or click/dragged element, only panning on the x-axis left direction should be possible.">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<link rel="stylesheet" type="text/css" href="../pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="../pointerevent_support.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
@ -4,10 +4,10 @@
|
||||
<title>touch-action: pan-right</title>
|
||||
<meta name="assert" content="TA15.3 - With `touch-action: pan-right` on a swiped or click/dragged element, only panning on the x-axis right direction should be possible.">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<link rel="stylesheet" type="text/css" href="../pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="../pointerevent_support.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
@ -4,10 +4,10 @@
|
||||
<title>touch-action: pan-up</title>
|
||||
<meta name="assert" content="TA15.4 - With `touch-action: pan-up` on a swiped or click/dragged element, only panning in the y-axis up direction should be possible.">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<link rel="stylesheet" type="text/css" href="../pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="../pointerevent_support.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
@ -0,0 +1,97 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- This is a fork of the main to support new additions to touch-action.
|
||||
It should be integrated into web-platform-test when they are accepted into the
|
||||
specification. -->
|
||||
<title>touch-action: basic verification</title>
|
||||
<meta name="assert" content="TA15.20 - The touch-action CSS property determines whether touch input MAY trigger default behavior supplied by the user agent.
|
||||
auto: The user agent MAY determine any permitted touch behaviors, such as panning and zooming manipulations of the viewport, for touches that begin on the element.
|
||||
none: Touches that begin on the element MUST NOT trigger default touch behaviors.
|
||||
pan-x: The user agent MAY consider touches that begin on the element only for the purposes of horizontally scrolling the element's nearest ancestor with horizontally scrollable content.
|
||||
pan-y: The user agent MAY consider touches that begin on the element only for the purposes of vertically scrolling the element's nearest ancestor with vertically scrollable content.
|
||||
manipulation: The user agent MAY consider touches that begin on the element only for the purposes of scrolling and continuous zooming. Any additional behaviors supported by auto are out of scope for this specification.">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
/*
|
||||
Give some rules below something to override in order to test
|
||||
that they really are being parsed
|
||||
*/
|
||||
.defnone {
|
||||
touch-action: none;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h2>Pointer Events touch-action attribute support</h2>
|
||||
<h4 id="desc">Test Description: Test will automatically check parsing behaviour of various touch-action combinations.</h4>
|
||||
<script type='text/javascript'>
|
||||
var detected_pointertypes = {};
|
||||
|
||||
setup({ explicit_done: true });
|
||||
|
||||
function run() {
|
||||
var tests = document.querySelectorAll('.test');
|
||||
//TA 15.20
|
||||
for (var i = 0; i < tests.length; i++) {
|
||||
test(function() {
|
||||
var style = window.getComputedStyle(tests[i]);
|
||||
assert_equals(tests[i].attributes.expected.value, style.touchAction);
|
||||
}, tests[i].id);
|
||||
}
|
||||
done();
|
||||
}
|
||||
</script>
|
||||
<h1>touch-action: basic verification</h1>
|
||||
<div id="complete-notice">
|
||||
<p>The following pointer types were detected: <span id="pointertype-log"></span>.</p>
|
||||
</div>
|
||||
<div id="log"></div>
|
||||
<div class="test" id="default" expected="auto"></div>
|
||||
<div class="test defnone" id="stylesheet-none" expected="none"></div>
|
||||
<div class="test defnone" id="explicit-auto" style="touch-action: auto;" expected="auto"></div>
|
||||
<div class="test" id="explicit-pan-x" style="touch-action: pan-x;" expected="pan-x"></div>
|
||||
<div class="test" id="explicit-pan-left" style="touch-action: pan-left;" expected="pan-left"></div>
|
||||
<div class="test" id="explicit-pan-right" style="touch-action: pan-right;" expected="pan-right"></div>
|
||||
<div class="test" id="explicit-pan-y" style="touch-action: pan-y;" expected="pan-y"></div>
|
||||
<div class="test" id="explicit-pan-up" style="touch-action: pan-up;" expected="pan-up"></div>
|
||||
<div class="test" id="explicit-pan-down" style="touch-action: pan-down;" expected="pan-down"></div>
|
||||
<div class="test" id="explicit-pinch-zoom" style="touch-action: pinch-zoom;" expected="pinch-zoom"></div>
|
||||
<div class="test" id="explicit-pan-x-pan-y" style="touch-action: pan-x pan-y;" expected="pan-x pan-y"></div>
|
||||
<div class="test" id="explicit-pan-y-pan-x" style="touch-action: pan-y pan-x;" expected="pan-x pan-y"></div>
|
||||
<div class="test" id="explicit-pan-left-pan-up" style="touch-action: pan-left pan-up;" expected="pan-left pan-up"></div>
|
||||
<div class="test" id="explicit-pan-left-pan-down" style="touch-action: pan-left pan-down;" expected="pan-left pan-down"></div>
|
||||
<div class="test" id="explicit-pan-right-pan-up" style="touch-action: pan-right pan-up;" expected="pan-right pan-up"></div>
|
||||
<div class="test" id="explicit-pan-right-pan-down" style="touch-action: pan-right pan-down;" expected="pan-right pan-down"></div>
|
||||
<div class="test" id="explicit-pan-up-pan-left" style="touch-action: pan-up pan-left;" expected="pan-left pan-up"></div>
|
||||
<div class="test" id="explicit-pan-up-pan-right" style="touch-action: pan-up pan-right;" expected="pan-right pan-up"></div>
|
||||
<div class="test" id="explicit-pan-down-pan-left" style="touch-action: pan-down pan-left;" expected="pan-left pan-down"></div>
|
||||
<div class="test" id="explicit-pan-down-pan-right" style="touch-action: pan-down pan-right;" expected="pan-right pan-down"></div>
|
||||
<div class="test" id="explicit-pinch-zoom-pan-x-pan-up" style="touch-action: pinch-zoom pan-x pan-up;" expected="pan-x pan-up pinch-zoom"></div>
|
||||
<div class="test" id="explicit-pinch-zoom-pan-x-pan-y" style="touch-action: pinch-zoom pan-x pan-y;" expected="manipulation"></div>
|
||||
<div class="test" id="explicit-manipulation" style="touch-action: manipulation;" expected="manipulation"></div>
|
||||
<div class="test" id="explicit-none" style="touch-action: none;" expected="none"></div>
|
||||
<div class="test" id="explicit-invalid-1" style="touch-action: bogus;" expected="auto"></div>
|
||||
<div class="test defnone" id="explicit-invalid-2" style="touch-action: auto pan-x;" expected="none"></div>
|
||||
<div class="test" id="explicit-invalid-3" style="touch-action: pan-y none;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-4" style="touch-action: pan-x pan-x;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-5" style="touch-action: manipulation pan-x;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-6" style="touch-action: pan-x pan-left;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-7" style="touch-action: auto pan-left;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-8" style="touch-action: none pan-left;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-9" style="touch-action: pan-x pan-right;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-10" style="touch-action: pan-y pan-up;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-11" style="touch-action: pan-y pan-down;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-12" style="touch-action: pan-left pan-right;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-13" style="touch-action: pan-up pan-down;" expected="auto"></div>
|
||||
<div class="test" id="explicit-invalid-14" style="touch-action: pinch-zoom none;" expected="auto"></div>
|
||||
<div style="touch-action: none;">
|
||||
<div class="test" id="not-inherited" expected="auto"></div>
|
||||
<div class="test" id="inherit" style="touch-action: inherit;" expected="none"></div>
|
||||
</div>
|
||||
<div class="test defnone" id="initial" style="touch-action: initial;" expected="auto"></div>
|
||||
</body>
|
||||
</html>
|
@ -12,7 +12,6 @@
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<style>
|
||||
/*
|
||||
Give some rules below something to override in order to test
|
||||
@ -52,21 +51,9 @@
|
||||
<div class="test defnone" id="stylesheet-none" expected="none"></div>
|
||||
<div class="test defnone" id="explicit-auto" style="touch-action: auto;" expected="auto"></div>
|
||||
<div class="test" id="explicit-pan-x" style="touch-action: pan-x;" expected="pan-x"></div>
|
||||
<div class="test" id="explicit-pan-left" style="touch-action: pan-left;" expected="pan-left"></div>
|
||||
<div class="test" id="explicit-pan-right" style="touch-action: pan-right;" expected="pan-right"></div>
|
||||
<div class="test" id="explicit-pan-y" style="touch-action: pan-y;" expected="pan-y"></div>
|
||||
<div class="test" id="explicit-pan-up" style="touch-action: pan-up;" expected="pan-up"></div>
|
||||
<div class="test" id="explicit-pan-down" style="touch-action: pan-down;" expected="pan-down"></div>
|
||||
<div class="test" id="explicit-pan-x-pan-y" style="touch-action: pan-x pan-y;" expected="pan-x pan-y"></div>
|
||||
<div class="test" id="explicit-pan-y-pan-x" style="touch-action: pan-y pan-x;" expected="pan-x pan-y"></div>
|
||||
<div class="test" id="explicit-pan-left-pan-up" style="touch-action: pan-left pan-up;" expected="pan-left pan-up"></div>
|
||||
<div class="test" id="explicit-pan-left-pan-down" style="touch-action: pan-left pan-down;" expected="pan-left pan-down"></div>
|
||||
<div class="test" id="explicit-pan-right-pan-up" style="touch-action: pan-right pan-up;" expected="pan-right pan-up"></div>
|
||||
<div class="test" id="explicit-pan-right-pan-down" style="touch-action: pan-right pan-down;" expected="pan-right pan-down"></div>
|
||||
<div class="test" id="explicit-pan-up-pan-left" style="touch-action: pan-up pan-left;" expected="pan-left pan-up"></div>
|
||||
<div class="test" id="explicit-pan-up-pan-right" style="touch-action: pan-up pan-right;" expected="pan-right pan-up"></div>
|
||||
<div class="test" id="explicit-pan-down-pan-left" style="touch-action: pan-down pan-left;" expected="pan-left pan-down"></div>
|
||||
<div class="test" id="explicit-pan-down-pan-right" style="touch-action: pan-down pan-right;" expected="pan-right pan-down"></div>
|
||||
<div class="test" id="explicit-manipulation" style="touch-action: manipulation;" expected="manipulation"></div>
|
||||
<div class="test" id="explicit-none" style="touch-action: none;" expected="none"></div>
|
||||
<div class="test" id="explicit-invalid-1" style="touch-action: bogus;" expected="auto"></div>
|
||||
|
Loading…
Reference in New Issue
Block a user