Problem finding in Qunit

Problem finding in Qunit

Hi,
I m new in Qunit. Could You please help me in below.

      If I wanted to test Textarea's or textbox's maxlength or maxlimit then what code should i Prefer. I tried a lot but its not working. 
Here is my code:

<html>
<head>
  <meta charset="utf-8">
  <title>QUnit Example</title>
  <link rel="stylesheet" href="Qunit.css">
</head>
<body>
  <div id="qunit"></div>
<input type="text" id="fname"/>
  <script src="Qunit.js"></script>
  <script src="jquery-1.7.2.js"/>
  <script src="tests.js"></script>
  <script>
  test( "hello test", function() {
  ok( 1 == "1", "Passed!" );
});
$('#fname').on('keypress',function(e){
var fname=$(this).val().length;
equal('fname',7,"Maxlength exceeds");
});

</script>
</body>
</html>


It throws an error below:


Pls help me in this

Thanks in Advance,
Gauri Rane