<commit_before>
describe('MapTouchZoomSpec', function () {
    var container,eventContainer;
    var map;
    var tile;
    var center = new Z.Coordinate(118.846825, 32.046534);
    var centerPoint;

    beforeEach(function() {
        var setups = commonSetupMap(center);
            container = setups.container;
            map = setups.map;
            delay = map.options['zoomAnimationDuration'];
            eventContainer = map._containerDOM;
            var domPosition = Z.DomUtil.getPagePosition(container);
            centerPoint = map.coordinateToContainerPoint(center).add(domPosition);
    });

    afterEach(function() {
        document.body.removeChild(container);
    });

    function testTouchZoom(startTouches, moveTouches, onZoomEnd) {
        map.on('zoomend', onZoomEnd);
        map.on('touchzoomstart', function() {
                happen.once(document, {
                    'type' : 'touchmove',
                    'touches' : startTouches
                });
                happen.once(document,{
                    'type':'touchend'
                });
        });
        if (!map.getBaseLayer().isLoaded()) {
            map.on('baselayerload',function() {
                happen.once(eventContainer, {
                    'type' : 'touchstart',
                    'touches' : moveTouches
                });
            });
        } else {
            happen.once(eventContainer, {
                'type' : 'touchstart',
                'touches' : moveTouches
            });
        }

    }

    describe('touch zoom', function() {
        before(function () {

         });
        after(function () {

         });
        it('zoomin', function(done) {
            this.timeout(5000);
            var z = map.getZoom();
            testTouchZoom([{<commit_msg>debug circleCI<commit_after>
describe('MapTouchZoomSpec', function () {
    var container,eventContainer;
    var map;
    var tile;
    var center = new Z.Coordinate(118.846825, 32.046534);
    var centerPoint;

    beforeEach(function() {
        var setups = commonSetupMap(center);
            container = setups.container;
            map = setups.map;
            delay = map.options['zoomAnimationDuration'];
            eventContainer = map._containerDOM;
            var domPosition = Z.DomUtil.getPagePosition(container);
            centerPoint = map.coordinateToContainerPoint(center).add(domPosition);
    });

    afterEach(function() {
        document.body.removeChild(container);
    });

    function testTouchZoom(startTouches, moveTouches, onZoomEnd) {
        map.on('zoomend', onZoomEnd);
        map.on('touchzoomstart', function() {
                console.log('touchmove');
                happen.once(document, {
                    'type' : 'touchmove',
                    'touches' : startTouches
                });
                happen.once(document,{
                    'type':'touchend'
                });
        });
        if (!map.getBaseLayer().isLoaded()) {
            map.on('baselayerload',function() {
                console.log('touchstart-2');
                happen.once(eventContainer, {
                    'type' : 'touchstart',
                    'touches' : moveTouches
                });
            });
        } else {
            console.log('touchstart-1');
            happen.once(eventContainer, {
                'type' : 'touchstart',
                'touches' : moveTouches
            });
        }

    }

    describe('touch zoom', function() {
        before(function () {});
        after(function () {});
        it('zoomin', function(done) {
            this.timeout(5000);
            var z = map.getZoom();
            testTouchZoom([{
{'fraction_non_alphanumeric': 0.12590799031476999, 'fraction_numerical': 0.011837503362927092, 'mean_word_length': 1.63314447592068, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5189774', 'n_tokens_mistral': 1048, 'n_tokens_neox': 975, 'n_words': 155}