<commit_before>( function() {
	'use strict';

	var verifyElementDimensions = function( elemConstructor ) {
		var styles;
		var elem;

		beforeEach( function () {
			jasmine.addMatchers(d2l.jasmine.matchers);
			elem = elemConstructor();
			document.body.appendChild(elem);
		});

		it( 'has correct outer height', function() {
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 29, Windows: 28 } }
			);
		} );

		it( 'has correct inner height', function() {
			expect( elem.clientHeight ).toBeOnAgent(
				{ default: { default: 27, Windows: 26 } }
			);
		} );

		it( 'has correct margins' , function() {
			expect( elem ).toHaveTopMargin( '0px' );
			expect( elem ).toHaveBottomMargin( '0px' );
			expect( elem ).toHaveLeftMargin( '0px' );
			expect( elem ).toHaveRightMargin( '0px' );
		} );

		it( 'responds to font change Arial 11', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="11px";
			expect( elem.offsetHeight ).toBe( 28 );
		} );

		it( 'responds to font change Arial 13', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="13px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 29, Windows: 28 } }
			);
		} );

		it( 'responds to font change Arial 15', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="15px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 32, Windows: 29 } }
			);
		} );

		it( 'responds to font change Arial 17', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="17px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 34, Windows: 32 } }
			);
		} );

		it( 'responds to font change Verdana 11', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="11px";
			expect( elem.offsetHeight ).toBe( 28 );
		} );

		it( 'responds to font change Verdana 13', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="13px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 29, Windows: 28 } }
			);
		} );

		it( 'responds to font change Verdana 15', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="15px";
			expect( elem.offsetHeight ).toBeOnBrowser( { 'default' : 30, 'Firefox' : 32 } );
		} );

		it( 'responds to font change Verdana 17', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="17px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 33, Windows: 32 } }
			);
		} );

		afterEach( function() {
			document.body.removeChild(elem);
		} );
	};

	describe( 'vui-button', function() {

		beforeEach( function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="13px";
		} );

		var createVUIButton = function( tag ) {
			var vuib = document.createElement( tag );
			vuib.className = 'vui-button';
			return vuib;
		};

		describe ( 'anchor', function() {

			verifyElementDimensions(
				function() {
					var anc = createVUIButton( 'a' );
					anc.innerHTML = "test";
					return anc;
				}
			);
<commit_msg>Add browser exceptions back in to some checks.<commit_after>( function() {
	'use strict';

	var verifyElementDimensions = function( elemConstructor ) {
		var styles;
		var elem;

		beforeEach( function () {
			jasmine.addMatchers(d2l.jasmine.matchers);
			elem = elemConstructor();
			document.body.appendChild(elem);
		});

		it( 'has correct outer height', function() {
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 29, Windows: 28 } }
			);
		} );

		it( 'has correct inner height', function() {
			expect( elem.clientHeight ).toBeOnAgent(
				{ default: { default: 27, Windows: 26 } }
			);
		} );

		it( 'has correct margins' , function() {
			expect( elem ).toHaveMargin( '0px' );
		} );

		it( 'responds to font change Arial 11', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="11px";
			expect( elem.offsetHeight ).toBe( 28 );
		} );

		it( 'responds to font change Arial 13', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="13px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 29, Windows: 28 } }
			);
		} );

		it( 'responds to font change Arial 15', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="15px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 32, Windows: 29 }, Firefox: { default: 31 } }
			);
		} );

		it( 'responds to font change Arial 17', function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="17px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 34, Windows: 32 }, Firefox: { default: 33 } }
			);
		} );

		it( 'responds to font change Verdana 11', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="11px";
			expect( elem.offsetHeight ).toBe( 28 );
		} );

		it( 'responds to font change Verdana 13', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="13px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 29, Windows: 28 }, Firefox: { default: 29 } }
			);
		} );

		it( 'responds to font change Verdana 15', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="15px";
			expect( elem.offsetHeight ).toBeOnBrowser( { 'default' : 30, 'Firefox' : 32 } );
		} );

		it( 'responds to font change Verdana 17', function() {
			document.body.style.fontFamily="Verdana";
			document.body.style.fontSize="17px";
			expect( elem.offsetHeight ).toBeOnAgent(
				{ default: { default: 33, Windows: 32 }, Firefox: { default: 34 }, Chrome: { default: 33 } }
			);
		} );

		afterEach( function() {
			document.body.removeChild(elem);
		} );
	};

	describe( 'vui-button', function() {

		beforeEach( function() {
			document.body.style.fontFamily="Arial";
			document.body.style.fontSize="13px";
		} );

		var createVUIButton = function( tag ) {
			var vuib = document.createElement( tag );
			vuib.className = 'vui-button';
			return vuib;
		};

		describe ( 'anchor', function() {

			verifyElementDimensions(
				function() {
					var anc = createVUIButton( 'a' );
					anc.innerHTML = "test";
					return anc;
				}
			);

{'fraction_non_alphanumeric': 0.1597146844472011, 'fraction_numerical': 0.024344859668165606, 'mean_word_length': 3.445210199862164, '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': '1633979', 'n_tokens_mistral': 2624, 'n_tokens_neox': 2112, 'n_words': 484}