author | Ella Ge <eirage@chromium.org> |
Wed, 06 Jun 2018 17:38:31 +0000 | |
changeset 422268 | 11574cd999c89a39ce308e733b3781f6f30264ac |
parent 422267 | 2fb07336773eb12eb5abdee65298c714c092b3ff |
child 422269 | ecda8fb8cb10ecda5d46731771f3e89a00a657ed |
push id | 34122 |
push user | ebalazs@mozilla.com |
push date | Mon, 11 Jun 2018 09:37:00 +0000 |
treeherder | mozilla-central@9941eb8c3b29 [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | testonly |
bugs | 1465647, 11259, 518868, 1055799, 563490 |
milestone | 62.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
|
--- 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>