tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

historical.html (1913B)


      1 <!DOCTYPE HTML>
      2 <meta charset=utf-8>
      3 <title>Historical touch events features</title>
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <script src="support/touch.js"></script>
      7 <body>
      8 <script>
      9 [
     10  "webkitRadiusX",
     11  "webkitRadiusY",
     12  "webkitRotationAngle",
     13  "webkitForce",
     14 ].forEach(function(name) {
     15  test(function() {
     16    assert_false(name in Touch.prototype,
     17                 "Should not be supported on the prototype");
     18 
     19    var touch = new Touch({identifier: 12341, target:document.body});
     20    assert_false(name in touch,
     21                 "Should not be supported on the instance");
     22  }, "Touch::" + name);
     23 });
     24 
     25 test(function() {
     26  assert_false("identifiedTouch" in TouchList.prototype,
     27               "Should not be supported on the prototype");
     28 
     29  var touchevent = new TouchEvent("touchstart", {});
     30  var touchList = touchevent.touches;
     31  assert_false("identifiedTouch" in touchList,
     32               "Should not be supported on the instance");
     33 }, "TouchList::identifiedTouch");
     34 
     35 test(function() {
     36  assert_false("initTouchEvent" in TouchEvent.prototype,
     37               "Should not be supported on the prototype");
     38 
     39  var touchEvent = new TouchEvent("touchstart");
     40  assert_false("initTouchEvent" in touchEvent,
     41               "Should not be supported on the instance");
     42 }, "TouchEvent::initTouchEvent");
     43 
     44 test(function() {
     45  assert_false("createTouch" in Document.prototype,
     46               "Should not be supported on the prototype");
     47 
     48  assert_false("createTouch" in document,
     49               "Should not be supported on the instance");
     50 }, "Document::createTouch");
     51 
     52 test(function() {
     53  assert_false("createTouchList" in Document.prototype,
     54               "Should not be supported on the prototype");
     55 
     56  assert_false("createTouchList" in document,
     57               "Should not be supported on the instance");
     58 }, "Document::createTouchList");
     59 </script>