summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/touch-events/historical.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/web-platform/tests/touch-events/historical.html
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/touch-events/historical.html')
-rw-r--r--testing/web-platform/tests/touch-events/historical.html59
1 files changed, 59 insertions, 0 deletions
diff --git a/testing/web-platform/tests/touch-events/historical.html b/testing/web-platform/tests/touch-events/historical.html
new file mode 100644
index 0000000000..16ddf51903
--- /dev/null
+++ b/testing/web-platform/tests/touch-events/historical.html
@@ -0,0 +1,59 @@
+<!DOCTYPE HTML>
+<meta charset=utf-8>
+<title>Historical touch events features</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="support/touch.js"></script>
+<body>
+<script>
+[
+ "webkitRadiusX",
+ "webkitRadiusY",
+ "webkitRotationAngle",
+ "webkitForce",
+].forEach(function(name) {
+ test(function() {
+ assert_false(name in Touch.prototype,
+ "Should not be supported on the prototype");
+
+ var touch = new Touch({identifier: 12341, target:document.body});
+ assert_false(name in touch,
+ "Should not be supported on the instance");
+ }, "Touch::" + name);
+});
+
+test(function() {
+ assert_false("identifiedTouch" in TouchList.prototype,
+ "Should not be supported on the prototype");
+
+ var touchevent = new TouchEvent("touchstart", {});
+ var touchList = touchevent.touches;
+ assert_false("identifiedTouch" in touchList,
+ "Should not be supported on the instance");
+}, "TouchList::identifiedTouch");
+
+test(function() {
+ assert_false("initTouchEvent" in TouchEvent.prototype,
+ "Should not be supported on the prototype");
+
+ var touchEvent = new TouchEvent("touchstart");
+ assert_false("initTouchEvent" in touchEvent,
+ "Should not be supported on the instance");
+}, "TouchEvent::initTouchEvent");
+
+test(function() {
+ assert_false("createTouch" in Document.prototype,
+ "Should not be supported on the prototype");
+
+ assert_false("createTouch" in document,
+ "Should not be supported on the instance");
+}, "Document::createTouch");
+
+test(function() {
+ assert_false("createTouchList" in Document.prototype,
+ "Should not be supported on the prototype");
+
+ assert_false("createTouchList" in document,
+ "Should not be supported on the instance");
+}, "Document::createTouchList");
+</script>