/*
Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKTESTER.fort.getProfile = function ()
{
	// Note : All paths specified below should refer to CKTester project root are generated automatically by fort tool. 
	return {
		cells : ${cells},
		cellResolvers :
		[
			function( cell )
			{
				var tags = cell.tags, env = cell.environment;

				// Inject CKEditor source.
				if ( tags.indexOf( 'editor-ondemand' ) != -1 )
					env.push( '${CKEDITOR_ROOT}/ckeditor_basic_source.js' )
				else if ( tags.indexOf( 'editor-release' ) != -1 )
					env.push( '${CKEDITOR_ROOT}/ckeditor.js' );
				else if( ( tags.indexOf( 'editor' ) != -1 ) )
					env.push( '${CKEDITOR_ROOT}/ckeditor_source.js' );

				// Inject CKEditor unit test library.
				if ( tags.indexOf( 'unit' ) != -1  )
					env.push( '${CKEDITOR_TEST_BRANCH_ROOT}/js/unit.js' );

				// Inject CKEditor manual test library.
				if ( tags.indexOf( 'manual' ) != -1
					 && tags.indexOf( 'editor' ) != -1 )
					env.push( '${CKEDITOR_TEST_BRANCH_ROOT}/js/manual.js' );
			}
		]
	};
};
