<commit_before>steal('funcunit/qunit', 'funcunit/syn', 'jquerypp/event/swipe', function (QUnit, Syn) {

	module("jquerypp/swipe", {setup : function () {
		$("#qunit-test-area").html("")
		var div = $("<div id='outer'>" +
			"<div id='inner1'>one</div>" +
			"<div id='inner2'>two<div id='inner3'>three</div></div>" +
			"</div>");

		div.appendTo($("#qunit-test-area"));
		var basicCss = {
			position : "absolute",
			border : "solid 1px black"
		}
		$("#outer").css(basicCss).css({top : "10px", left : "10px",
			zIndex : 1000, backgroundColor : "green", width : "200px", height : "200px"})
	}});

	test("swipe right event", 2, function () {

		$("#outer").bind("swipe",function () {
			ok(true, "swipe called");
		}).bind("swipeleft",function () {
				ok(false, "swipe left")
			}).bind("swiperight", function () {
				ok(true, "swiperight")
			});
		stop();
		Syn.drag({
			from : "20x20",
			to : "50x20",
			duration : 100
		}, "outer", function () {
			start();
		})

	});


	test("swipe left event", 2, function () {

		$("#outer").bind("swipe",function () {
			ok(true, "swipe called");
		}).bind("swipeleft",function () {
				ok(true, "swipe left")
			}).bind("swiperight", function () {
				ok(false, "swiperight")
			});
		stop();
		Syn.drag({
			from : "50x20",
			to : "20x20",
			duration : 100
		}, "outer", function () {
			start();
		})

	});


	test("swipe up event", 2, function () {

		$("#outer").bind("swipe",function () {
			ok(true, "swipe called");
		}).bind("swipeup",function () {
				ok(true, "swipe left")
			}).bind("swiperight",function () {
				ok(false, "swiperight")<commit_msg>update swipe left to fix test for ie9<commit_after>steal('funcunit/qunit', 'funcunit/syn', 'jquerypp/event/swipe', function (QUnit, Syn) {

	module("jquerypp/swipe", {setup : function () {
		$("#qunit-test-area").html("")
		var div = $("<div id='outer'>" +
			"<div id='inner1'>one</div>" +
			"<div id='inner2'>two<div id='inner3'>three</div></div>" +
			"</div>");

		div.appendTo($("#qunit-test-area"));
		var basicCss = {
			position : "absolute",
			border : "solid 1px black"
		}
		$("#outer").css(basicCss).css({top : "10px", left : "10px",
			zIndex : 1000, backgroundColor : "green", width : "200px", height : "200px"})
	}});

	test("swipe right event", 2, function () {

		$("#outer").bind("swipe",function () {
			ok(true, "swipe called");
		}).bind("swipeleft",function () {
				ok(false, "swipe left")
			}).bind("swiperight", function () {
				ok(true, "swiperight")
			});
		stop();
		Syn.drag({
			from : "20x20",
			to : "50x20",
			duration : 100
		}, "outer", function () {
			start();
		})

	});


	test("swipe left event", 2, function () {
		var swipe = {};

		$("#outer").bind("swipe",function () {
			swipe.general = true;
		}).bind("swipeleft",function () {
			swipe.left = true;
		});

		stop();

		Syn.drag({
			from : "50x20",
			to : "20x20",
			duration : 100
		}, "outer", function () {
			start();
			ok(swipe.general, 'swipe')
			ok(swipe.left, "swipe left")
		})
	});


	test("swipe up event", 2, function () {

		$("#outer").bind("swipe",function () {
			ok(true, "swipe called");
		}).bind("swipeup",function () {
				ok(true, "swipe left")
			}).bind("swiperight",function () {
				ok(false, "swiperight")
{'fraction_non_alphanumeric': 0.24154886293792255, 'fraction_numerical': 0.026736324523663185, 'mean_word_length': 3.5460893854748603, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '5077248', 'n_tokens_mistral': 1444, 'n_tokens_neox': 1202, 'n_words': 233}