@@ -4,7 +4,7 @@ module("About Scope (topics/about_scope.js)");
44thisIsAGlobalVariable = 77 ;
55
66test ( "global variables" , function ( ) {
7- equals ( thisIsAGlobalVariable , __ , 'is thisIsAGlobalVariable defined in this scope?' ) ;
7+ equals ( thisIsAGlobalVariable , 77 , 'is thisIsAGlobalVariable defined in this scope?' ) ;
88} ) ;
99
1010test ( "variables declared inside of a function" , function ( ) {
@@ -13,10 +13,10 @@ test("variables declared inside of a function", function() {
1313 // this is a self-invoking function. Notice that it calls itself at the end ().
1414 ( function ( ) {
1515 var innerVariable = "inner" ;
16- equals ( outerVariable , __ , 'is outerVariable defined in this scope?' ) ;
17- equals ( innerVariable , __ , 'is innerVariable defined in this scope?' ) ;
16+ equals ( outerVariable , "outer" , 'is outerVariable defined in this scope?' ) ;
17+ equals ( innerVariable , "inner" , 'is innerVariable defined in this scope?' ) ;
1818 } ) ( ) ;
1919
20- equals ( outerVariable , __ , 'is outerVariable defined in this scope?' ) ;
20+ equals ( outerVariable , "outer" , 'is outerVariable defined in this scope?' ) ;
2121 equals ( typeof ( innerVariable ) , "undefined" , 'is innerVariable defined in this scope?' ) ;
2222} ) ;
0 commit comments