Questions tagged [tap]

The Test Anything Protocol (TAP) is a protocol to allow communication between unit tests and a test harness. Do not use for mobile, touch-enabled devices; use [touch] instead.

The Test Anything Protocol (TAP) is a protocol to allow communication between unit tests and a test harness. It allows individual tests (TAP producers) to communicate test results to the testing harness in a language-agnostic way.

On mobile phones, to tap means "to click", or to touch some User Interface elements.

References

547 questions
9
votes
4 answers

How can I select Widgets by dragging over them but also clicking them individually in flutter?

I want to create an Interface in which it is possible to drag your finger over several Areas. This changes the state of the areas to a selected state (See images). What is the best way to approach this? Start Position: Start Dragging: Select First…
Philipp Redeker
  • 3,848
  • 4
  • 26
  • 34
8
votes
2 answers

Problem with UITapGestureRecognizer for double tap

I've two UITapGestureRecognizer: singleTap and doubleTap initialized with two different actions. UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleSingleTap:)]; UITapGestureRecognizer…
Cathylun
  • 111
  • 2
  • 6
7
votes
1 answer

Difference between Supply method act vs tap

In Raku documentation about the Supply method act (vs tap) https://docs.raku.org/type/Supply#method_act it is stated that: the given code is guaranteed to be executed by only one thread at a time My understanding is that a thread must finish with…
jakar
  • 1,701
  • 5
  • 14
7
votes
2 answers

How to use tun/tap interface to split packets, tunnel and then reassemble. (similar to MLPPP)

I am looking to create a client/server application that I can use to slit network packets in half, tunnel each half of the packet over a separate udp connection (because each udp connection will be going over a different wifi link) and then…
wtip
  • 138
  • 1
  • 6
7
votes
2 answers

How to tap/hook keyboard events in OSX and record which keyboard fires each event

I've now discovered how to hook/tap keyboard events on OS X at a low level: How to tap (hook) F7 through F12 and Power/Eject on a MacBook keyboard Printing out the code from that answer: // compile and run from the commandline with: // clang …
P i
  • 29,020
  • 36
  • 159
  • 267
7
votes
1 answer

Hammer.js click triggered on DOM elements behind tapped after tap action

I use Hammer.js to detect touches on mobile devices, tap, swipe etc. I have an interaction where on tap, i hide the tapped content (and possibly parents) and show some other content in its place (change screen - like functionality). The problem is…
anna.mi
  • 1,549
  • 1
  • 14
  • 28
7
votes
2 answers

How can I show a ViewPager in fullscreen mode?

By having an activity which contains a ViewPager inside of it, is it possible to set that ViewPager fullscreen (on/false) when it is touched by a single tap? If not, I am going to start a new activity in fullscreen containing another instance of…
7
votes
2 answers

How to manually create TAP output

There is a great Perl module Test::More that everybody uses for unit testing. Here is the very simple script t/sample_1.t: use Test::More tests => 1; fail('This test fails'); I wanted to write script that does the same thing, but…
bessarabov
  • 11,151
  • 10
  • 34
  • 59
7
votes
2 answers

Interfacing with TUN\TAP for MAC OSX (Lion) using Python

I found the following tun\tap example program and can not get it to work: http://www.secdev.org/projects/tuntap_udp/files/tunproxy.py I have modified the following lines: f = os.open("/dev/tun0", os.O_RDWR) ifs = ioctl(f, TUNSETIFF,…
user974896
  • 1,795
  • 4
  • 28
  • 48
6
votes
1 answer

MKMapView Not Calling regionDidChangeAnimated on Pan

I have an app with a MKMapView and code that is called each time the map changes locations (in regionDidChangeAnimated). When the app initially loads, regionDidChangeAnimated is called on pans (swipes), pinches, taps and buttons that explicitly…
brendan
  • 1,705
  • 1
  • 18
  • 24
6
votes
1 answer

How to determine word tapped in a multi-word Text view in SwiftUI

I want to display a list of words in a flow layout manner and be able to "select" a word (tap on a word and know what word was tapped on). I was not able to figure out how to lay out individual words in a flowing manner, so I created a single Text…
andrewz
  • 4,729
  • 5
  • 49
  • 67
6
votes
1 answer

Detect single tap on UIScrollView containing 'n' UIImageViews

I am simply trying to get hold of the UIImageView that was tapped on, from the UIScrollView. I have found 2 ways of achieving the above on the Web. 1st method : create a tap gesture on the uiimageview before adding it to scrollviewer. This method…
CF_Maintainer
  • 973
  • 2
  • 12
  • 30
6
votes
3 answers

Dynamic Variable Scoping in Ruby 1.9

I'm interested in using dynamic (as opposed to lexical) scoped variables in Ruby. It's seems there isn't a direct built-in way, as with let in Lisp. One possible way to do dynamic scoped variable is suggested by Christian Neukirchen. He creates a…
SooDesuNe
  • 9,880
  • 10
  • 57
  • 91
6
votes
0 answers

Chrome: redirect console.log to stdout

I am investigating easy ways to reuse tests that output the TAP format. I want to be able to start Chrome from the command line and capture console.log output If I have the following file called index.html