<commit_before>define(["Test", "Tone/core/Draw", "Tone/core/Tone"],
	function (Test, Draw, Tone) {

	describe("Draw", function(){

		return

		//replace rAF since test is not executed in focus
		var originalRAF = window.requestAnimationFrame;

		window.requestAnimationFrame = function(cb){
			setTimeout(cb, 16);
		};

		after(function(){
			//re-set rAF
			window.requestAnimationFrame = originalRAF;
		});

		it ("can schedule a callback at a AudioContext time", function(done){
			var scheduledTime = Tone.now() + 0.2;
			Draw.schedule(function(){
				expect(Tone.now()).to.be.closeTo(scheduledTime, 0.05);
				done();
			}, scheduledTime);
		});

		it ("can schedule multiple callbacks", function(done){
			var callbackCount = 0;
			var firstEvent = Tone.now() + 0.1;
			Draw.schedule(function(){
				callbackCount++;
				expect(Tone.now()).to.be.closeTo(firstEvent, 0.05);
			}, firstEvent);
<commit_msg>Revert "skip Draw test for now"<commit_after>define(["Test", "Tone/core/Draw", "Tone/core/Tone"],
	function (Test, Draw, Tone) {

	describe("Draw", function(){

		//replace rAF since test is not executed in focus
		var originalRAF = window.requestAnimationFrame;

		window.requestAnimationFrame = function(cb){
			setTimeout(cb, 16);
		};

		after(function(){
			//re-set rAF
			window.requestAnimationFrame = originalRAF;
		});

		it ("can schedule a callback at a AudioContext time", function(done){
			var scheduledTime = Tone.now() + 0.2;
			Draw.schedule(function(){
				expect(Tone.now()).to.be.closeTo(scheduledTime, 0.05);
				done();
			}, scheduledTime);
		});

		it ("can schedule multiple callbacks", function(done){
			var callbackCount = 0;
			var firstEvent = Tone.now() + 0.1;
			Draw.schedule(function(){
				callbackCount++;
				expect(Tone.now()).to.be.closeTo(firstEvent, 0.05);
			}, firstEvent);

{'fraction_non_alphanumeric': 0.1575492341356674, 'fraction_numerical': 0.014223194748358862, 'mean_word_length': 3.9166666666666665, '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': '5767472', 'n_tokens_mistral': 707, 'n_tokens_neox': 586, 'n_words': 140}