<commit_before>(function() {
	module("tinymce.ui.TextBox", {
		setup: function() {
			document.getElementById('view').innerHTML = '';
		}
	});

	function createTextBox(settings) {
		return tinymce.ui.Factory.create(tinymce.extend({
			type: 'textbox'
		}, settings)).renderTo(document.getElementById('view'));
	}

	test("textbox text, size chars: 5", function() {
		var textBox = createTextBox({text: 'X', size: 5});

		Utils.nearlyEqualRects(Utils.size(textBox), [69, 30], 20);
	});

	test("textbox text, size 100x100", function() {
		var textBox = createTextBox({text: 'X', width: 100, height: 100});

		deepEqual(Utils.size(textBox), [100, 100]);
	});
})();<commit_msg>Fixed test that didn't work on Mac Safari.<commit_after>(function() {
	module("tinymce.ui.TextBox", {
		setup: function() {
			document.getElementById('view').innerHTML = '';
		}
	});

	function createTextBox(settings) {
		return tinymce.ui.Factory.create(tinymce.extend({
			type: 'textbox'
		}, settings)).renderTo(document.getElementById('view'));
	}

	test("textbox text, size chars: 5", function() {
		var textBox = createTextBox({text: 'X', size: 5});

		Utils.nearlyEqualRects(Utils.size(textBox), [69, 30], 30);
	});

	test("textbox text, size 100x100", function() {
		var textBox = createTextBox({text: 'X', width: 100, height: 100});

		deepEqual(Utils.size(textBox), [100, 100]);
	});
})();
{'fraction_non_alphanumeric': 0.19519300801165332, 'fraction_numerical': 0.037873270211216316, 'mean_word_length': 5.1066666666666665, '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': '1434802', 'n_tokens_mistral': 543, 'n_tokens_neox': 454, 'n_words': 95}