@@ -6,7 +6,7 @@ $(document).ready(function(){
6
6
thisIsAGlobalVariable = 77 ;
7
7
8
8
test ( "global variables" , function ( ) {
9
- equals ( thisIsAGlobalVariable , __ , 'is thisIsAGlobalVariable defined in this scope?' ) ;
9
+ equals ( thisIsAGlobalVariable , 77 , 'is thisIsAGlobalVariable defined in this scope?' ) ;
10
10
} ) ;
11
11
12
12
test ( "variables declared inside of a function" , function ( ) {
@@ -15,20 +15,20 @@ $(document).ready(function(){
15
15
// this is a self-invoking function. Notice that it calls itself at the end ().
16
16
( function ( ) {
17
17
var innerVariable = "inner" ;
18
- equals ( outerVariable , __ , 'is outerVariable defined in this scope?' ) ;
19
- equals ( innerVariable , __ , 'is innerVariable defined in this scope?' ) ;
18
+ equals ( outerVariable , "outer" , 'is outerVariable defined in this scope?' ) ;
19
+ equals ( innerVariable , "inner" , 'is innerVariable defined in this scope?' ) ;
20
20
} ) ( ) ;
21
21
22
- equals ( outerVariable , __ , 'is outerVariable defined in this scope?' ) ;
22
+ equals ( outerVariable , "outer" , 'is outerVariable defined in this scope?' ) ;
23
23
var isInnerVariableDefined = true ;
24
24
try {
25
25
innerVariable
26
26
} catch ( e ) {
27
27
isInnerVariableDefined = false ;
28
28
}
29
- equals ( isInnerVariableDefined , __ , 'is innerVariable defined in this scope?' ) ;
29
+ equals ( isInnerVariableDefined , false , 'is innerVariable defined in this scope?' ) ;
30
30
} ) ;
31
31
32
32
33
33
} ) ;
34
-
34
+
0 commit comments