<commit_before>
suite 'TouchEvents (slow)', ->

    test 'tap', (done) ->
        element = $('.a').get(0)
        counter = new Number.Counter

        events.addListener element, 'tap', counter.step
        down(element, 10, 10)
        up(element)

        setTimeout ->
            assert.equal counter, 1
            events.removeListener element, '*'
            done()
        , 0

    test 'tap textnode', (done) ->
        element = $('.a').get(0)
        text = element.childNodes[0]

        events.addListener element, 'tap', (event) ->
            assert.equal event.target, element
            events.removeListener element, '*'
            done()
        down(text, 10, 10)
        up(text)

    test 'tap twice', (done) -><commit_msg>Fixing touch tests to pass in IE<commit_after>
suite 'TouchEvents (slow)', ->

    test 'tap', (done) ->
        element = $('.a').get(0)
        counter = new Number.Counter

        events.addListener element, 'tap', counter.step
        down(element, 10, 10)
        up(element)

        setTimeout ->
            assert.equal counter, 1
            events.removeListener element, '*'
            done()
        , 0

    test 'tap textnode', (done) ->
        element = $('.a').get(0)
        text = element.childNodes[0]
        counter = new Number.Counter

        events.addListener element, 'tap', (event) ->
            assert.equal event.target, element
            counter.step()
        down(text, 10, 10)
        up(text)

        setTimeout ->
            events.removeListener element, '*'
            done()
        , 0

    test 'tap twice', (done) ->
{'fraction_non_alphanumeric': 0.13597033374536466, 'fraction_numerical': 0.01668726823238566, 'mean_word_length': 1.6983333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2242938', 'n_tokens_mistral': 496, 'n_tokens_neox': 444, 'n_words': 120}