Skip to main content

Bug Tracker

Side navigation

Ticket #5659: reduction.html
File reduction.html, 0.8 KB (added by dwt, December 15, 2009 01:49PM UTC)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
	<script type="text/javascript" charset="utf-8">
		$(function(){
			try {
				$('#colorator').animate({ backgroundColor: '#ECF2F8'}, 400);
			}
			catch (exception) {
				alert('expected no exception but got ' + exception);
			}
			
			$.fx.off = true;
			// this dies
			try {
				$('#colorator').animate({ backgroundColor: '#ECF2F8'});
			}
			catch (exception) {
				alert('expected exception and got ' + exception);
			}
		});
	</script>
</head>
<body>

<div id="colorator" style="width:200px; height:200px; background-color:green;">
	
</div>

</body>
</html>

Download in other formats:

Original Format