@@ -3,7 +3,7 @@ module("About Scope (topics/about_scope.js)");
33thisIsAGlobalVariable = 77 ;
44
55test ( "global variables" , function ( ) {
6- equal ( __ , thisIsAGlobalVariable , 'is thisIsAGlobalVariable defined in this scope?' ) ;
6+ equal ( 77 , thisIsAGlobalVariable , 'is thisIsAGlobalVariable defined in this scope?' ) ;
77} ) ;
88
99test ( "variables declared inside of a function" , function ( ) {
@@ -12,10 +12,10 @@ test("variables declared inside of a function", function() {
1212 // this is a self-invoking function. Notice that it calls itself at the end ().
1313 ( function ( ) {
1414 var innerVariable = "inner" ;
15- equal ( __ , outerVariable , 'is outerVariable defined in this scope?' ) ;
16- equal ( __ , innerVariable , 'is innerVariable defined in this scope?' ) ;
15+ equal ( "outer" , outerVariable , 'is outerVariable defined in this scope?' ) ;
16+ equal ( "inner" , innerVariable , 'is innerVariable defined in this scope?' ) ;
1717 } ) ( ) ;
1818
19- equal ( __ , outerVariable , 'is outerVariable defined in this scope?' ) ;
20- equal ( __ , typeof ( innerVariable ) , 'is innerVariable defined in this scope?' ) ;
19+ equal ( "outer" , outerVariable , 'is outerVariable defined in this scope?' ) ;
20+ equal ( "undefined" , typeof ( innerVariable ) , 'is innerVariable defined in this scope?' ) ;
2121} ) ;
0 commit comments