<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Basic editor functionality tests</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen">
<script type="text/javascript" src="qunit/qunit.js"></script>
<script type="text/javascript" src="qunit/runner.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/tiny_mce_loader.js"></script>
<script type="text/javascript" src="js/dsl/dsl.js"></script>
<script type="text/javascript">
QUnit.config.autostart = false;
module('Lists - Indenting', {
	autostart: false,
	setup: function() {
		window.queue = new dsl.Queue();
	}
});
function runTest(){ 
	
}
asyncTest('Selecting Cell and typing should update cell correctly', function() {
	editor.setContent('<table><tr><td><p>first cell</p></td><td><p>second cell</p></td></tr></table>');
	// in order to simulate the section on tables as per the plugin we do a select then call out to the fix table selection 
	// (which is called by selection events).
	editor.selection.select(editor.dom.select('td')[0]);
	editor.plugins.table.fixTableCellSelection(editor);
	robot.type('g',false, function(){ 
		var expected = '<table>\n<tbody>\n<tr>\n<td>\n<p>g</p>\n</td>\n<td>\n<p>second cell</p>\n</td>\n</tr>\n</tbody>\n</table>';
		var actual = editor.getContent();
		equals(actual, expected);
		queue.done();
	}, editor.getBody());


});


tinyMCE.init({
	mode : "exact",
	elements : "elm1",
	cleanup: true,
	
	add_unload_trigger : false,
	plugins: "table",
	init_instance_callback : function(ed) {
		editor = ed;

	}
});
</script>
</head>
<body><commit_msg>Fixed test - in order for the robot to work well, we need to focus the editor before performing selection on it.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Basic editor functionality tests</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="stylesheet" href="qunit/qunit.css" type="text/css" media="screen">
<script type="text/javascript" src="qunit/qunit.js"></script>
<script type="text/javascript" src="qunit/runner.js"></script>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/tiny_mce_loader.js"></script>
<script type="text/javascript" src="js/dsl/dsl.js"></script>
<script type="text/javascript">
QUnit.config.autostart = false;
module('Lists - Indenting', {
	autostart: false,
	setup: function() {
		window.queue = new dsl.Queue();
	}
});
function runTest(){ 
	
}
asyncTest('Selecting Cell and typing should update cell correctly', function() {
	editor.setContent('<table><tr><td><p>first cell</p></td><td><p>second cell</p></td></tr></table>');
	// in order for the robot to work well, we need to focus the editor before performing selection on it.
	editor.focus();
	// in order to simulate the section on tables as per the plugin we do a select then call out to the fix table selection 
	// (which is called by selection events).
	editor.selection.select(editor.dom.select('td')[0]);
	editor.plugins.table.fixTableCellSelection(editor);
	robot.type('g',false, function(){ 
		var expected = '<table>\n<tbody>\n<tr>\n<td>\n<p>g</p>\n</td>\n<td>\n<p>second cell</p>\n</td>\n</tr>\n</tbody>\n</table>';
		var actual = editor.getContent();
		equals(actual, expected);
		queue.done();
	}, editor.getBody());


});


tinyMCE.init({
	mode : "exact",
	elements : "elm1",
	cleanup: true,
	
	add_unload_trigger : false,
	plugins: "table",
	init_instance_callback : function(ed) {
		editor = ed;

	}
});
</script>
</head>
<body>
{'fraction_non_alphanumeric': 0.1964193046185781, 'fraction_numerical': 0.006746237675142709, 'mean_word_length': 5.014040561622465, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, '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': '1951830', 'n_tokens_mistral': 1380, 'n_tokens_neox': 1311, 'n_words': 295}