Bug 1465647 [wpt PR 11259] - remove createTouchList, a=testonly
authorElla Ge <eirage@chromium.org>
Wed, 06 Jun 2018 17:38:31 +0000
changeset 422268 11574cd999c89a39ce308e733b3781f6f30264ac
parent 422267 2fb07336773eb12eb5abdee65298c714c092b3ff
child 422269 ecda8fb8cb10ecda5d46731771f3e89a00a657ed
push id34122
push userebalazs@mozilla.com
push dateMon, 11 Jun 2018 09:37:00 +0000
treeherdermozilla-central@9941eb8c3b29 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1465647, 11259, 518868, 1055799, 563490
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1465647 [wpt PR 11259] - remove createTouchList, a=testonly Automatic update from web-platform-testsremove createTouchList This Cl removes document.createTouchList and related tests. Use count is drop to a safer value, ready to remove in M69. UseCounter: https://www.chromestatus.com/metrics/feature/timeline/popularity/2368 intent to deprecate and Remove: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/GLbUpUUnQzc PR to touch-events spec: https://github.com/w3c/touch-events/pull/96 Bug: 518868 Change-Id: Ia4451d0d32bf5bbb6d9c9c543ac77187c5161b42 Reviewed-on: https://chromium-review.googlesource.com/1055799 Reviewed-by: Navid Zolghadr <nzolghadr@chromium.org> Reviewed-by: Bo <boliu@chromium.org> Reviewed-by: David Bokan <bokan@chromium.org> Reviewed-by: Rick Byers <rbyers@chromium.org> Commit-Queue: Ella Ge <eirage@chromium.org> Cr-Commit-Position: refs/heads/master@{#563490} -- wpt-commits: 8e1adf3ff681a013968a3fd6b3115c44587babec wpt-pr: 11259
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/touch-events/create-touch-touchlist.html
testing/web-platform/tests/touch-events/historical.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -375631,22 +375631,16 @@
     ]
    ],
    "svg/types/scripted/SVGLengthList-getItem.html": [
     [
      "/svg/types/scripted/SVGLengthList-getItem.html",
      {}
     ]
    ],
-   "touch-events/create-touch-touchlist.html": [
-    [
-     "/touch-events/create-touch-touchlist.html",
-     {}
-    ]
-   ],
    "touch-events/historical.html": [
     [
      "/touch-events/historical.html",
      {}
     ]
    ],
    "touch-events/touch-globaleventhandler-interface.html": [
     [
@@ -614758,22 +614752,18 @@
   "svg/types/scripted/resources/SVGLengthList-helper.js": [
    "e0cfabfa40e50ef2c25602563862caba72dd469e",
    "support"
   ],
   "touch-events/OWNERS": [
    "eae596140c284a25bfe482676c2762729d00b7ee",
    "support"
   ],
-  "touch-events/create-touch-touchlist.html": [
-   "4872b365fc9e704fc873b411dd0ab60a509531ab",
-   "testharness"
-  ],
   "touch-events/historical.html": [
-   "0ccfb39ef6b094dadc6e6ac91de937b5180b2c84",
+   "2a748b6f1b66874fa613f3188125a04c95587976",
    "testharness"
   ],
   "touch-events/multi-touch-interactions-manual.html": [
    "c9f99610d07a8bc64512d2f309f404a8da4b99d2",
    "manual"
   ],
   "touch-events/multi-touch-interactions.js": [
    "ebd23ef9b71a949ba6f45a08b342ec569626fd82",
deleted file mode 100644
--- a/testing/web-platform/tests/touch-events/create-touch-touchlist.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<!DOCTYPE HTML>
-<html>
-<head>
-<title>document.createTouch and document.createTouchList Tests</title>
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<script src="touch-support.js"></script>
-<body>
-<div id="target0"></div>
-<script>
-test(function() {
-    var touchList = document.createTouchList();
-    assert_equals(touchList.length, 0, "touchList.length is 0");
-    check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from zero Touch objects");
-
-test(function() {
-    var testTarget = document.getElementById('target0');
-    var touch1 = new Touch({identifier: 123, target: testTarget});
-    var touchList = document.createTouchList(touch1);
-    assert_equals(touchList.length, 1, "touchList.length is 1");
-    assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1");
-    check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from a single Touch");
-
-test(function() {
-    var testTarget = document.getElementById('target0');
-    var touch1 = new Touch({identifier: 123, target: testTarget});
-    var touch2 = new Touch({identifier: 124, target: target0});
-    var touchList = document.createTouchList(touch1, touch2);
-    assert_equals(touchList.length, 2, "touchList.length is 2");
-    assert_equals(touchList.item(0), touch1, "touchList.item(0) is touch1");
-    assert_equals(touchList.item(1), touch2, "touchList.item(1) is touch2");
-    check_TouchList_object(touchList);
-}, "document.createTouchList exists and correctly creates a TouchList from two Touch objects");
-</script>
-</head>
-</body>
-</html>
--- a/testing/web-platform/tests/touch-events/historical.html
+++ b/testing/web-platform/tests/touch-events/historical.html
@@ -21,17 +21,18 @@
                  "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 touchList = document.createTouchList();
+  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");
 
@@ -42,9 +43,17 @@ test(function() {
 
 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>