Skip to main content

Bug Tracker

Side navigation

Ticket #5765: index.html

File index.html, 1.2 KB (added by travi, January 07, 2010 03:55AM UTC)

QUnit test

<!DOCTYPE html>
		<link rel="stylesheet" href="" type="text/css" media="screen" />
		<script src=""></script>
		<script type="text/javascript" src=""></script>
		<script type="text/javascript">
			var checkboxState;
			$(document).ready(function () {
				module(".click() timing bug");
				test("Inconsistent state reporting between .click() and manual user click of checkbox", function () {
					$('body').append('<input type="checkbox">');
					$('input:checkbox').click(function () {
						checkboxState = $(this).attr('checked');
					ok($('input:checkbox').is(':checked'),"Checkbox is checked");
					ok(checkboxState === true,"Checkbox reported that it is checked in the .click() handler");
		<h1 id="qunit-header">.click() timing bug</h1>
 		<h2 id="qunit-banner"></h2>
 		<h2 id="qunit-userAgent"></h2>
 		<ol id="qunit-tests"></ol>

Download in other formats:

Original Format