@@ -74,21 +74,21 @@ if( typeof define === "function" )
7474 var controller = puremvc . Controller . getInstance ( 'ControllerTestKey2' ) ;
7575 controller . registerCommand ( 'ControllerTest' , test . ControllerTestCommand ) ;
7676 var vo = new test . ControllerTestVO ( 12 ) ;
77- var note = new puremvc . Notification ( 'ControllerTest' , vo ) ;
78- controller . executeCommand ( note ) ;
77+ var notification = new puremvc . Notification ( 'ControllerTest' , vo ) ;
78+ controller . executeCommand ( notification ) ;
7979 YUITest . Assert . areEqual ( 24 , vo . result , "Expecting vo.result == 24" ) ;
8080 puremvc . Controller . removeController ( 'ControllerTestKey2' ) ;
8181 } ;
8282 ControllerTest . prototype . testRegisterAndRemoveCommand = function ( ) {
8383 var controller = puremvc . Controller . getInstance ( 'ControllerTestKey3' ) ;
8484 controller . registerCommand ( 'ControllerRemoveTest' , test . ControllerTestCommand ) ;
8585 var vo = new test . ControllerTestVO ( 12 ) ;
86- var note = new puremvc . Notification ( 'ControllerRemoveTest' , vo ) ;
87- controller . executeCommand ( note ) ;
86+ var notification = new puremvc . Notification ( 'ControllerRemoveTest' , vo ) ;
87+ controller . executeCommand ( notification ) ;
8888 YUITest . Assert . areEqual ( 24 , vo . result , "Expecting vo.result == 24" ) ;
8989 vo . result = 0 ;
9090 controller . removeCommand ( 'ControllerRemoveTest' ) ;
91- controller . executeCommand ( note ) ;
91+ controller . executeCommand ( notification ) ;
9292 YUITest . Assert . areEqual ( 0 , vo . result , "Expecting vo.result == 0" ) ;
9393 puremvc . Controller . removeController ( 'ControllerTestKey3' ) ;
9494 } ;
@@ -106,11 +106,11 @@ if( typeof define === "function" )
106106 controller . removeCommand ( 'ControllerTest2' ) ;
107107 controller . registerCommand ( 'ControllerTest2' , test . ControllerTestCommand2 ) ;
108108 var vo = new test . ControllerTestVO ( 12 ) ;
109- var note = new puremvc . Notification ( 'ControllerTest2' , vo ) ;
109+ var notification = new puremvc . Notification ( 'ControllerTest2' , vo ) ;
110110 var view = puremvc . View . getInstance ( 'ControllerTestKey5' ) ;
111- view . notifyObservers ( note ) ;
111+ view . notifyObservers ( notification ) ;
112112 YUITest . Assert . areEqual ( 24 , vo . result , "Expecting vo.result == 24" ) ;
113- view . notifyObservers ( note ) ;
113+ view . notifyObservers ( notification ) ;
114114 YUITest . Assert . areEqual ( 48 , vo . result , "Expecting vo.result == 48" ) ;
115115 puremvc . Controller . removeController ( 'ControllerTestKey5' ) ;
116116 } ;
@@ -400,8 +400,8 @@ if( typeof define === "function" )
400400 var view = puremvc . View . getInstance ( 'ViewTestKey2' ) ;
401401 var observer = new puremvc . Observer ( this . viewTestMethod , this ) ;
402402 view . registerObserver ( test . ViewTestNote . NAME , observer ) ;
403- var note = test . ViewTestNote . create ( 10 ) ;
404- view . notifyObservers ( note ) ;
403+ var notification = test . ViewTestNote . create ( 10 ) ;
404+ view . notifyObservers ( notification ) ;
405405 YUITest . Assert . areEqual ( 10 , this . viewTestVar , "Expecting viewTestVar = 10" ) ;
406406 puremvc . View . removeView ( 'ViewTestKey2' ) ;
407407 } ;
@@ -578,8 +578,8 @@ if( typeof define === "function" )
578578 _super . apply ( this , arguments ) ;
579579
580580 }
581- MacroCommandTestSub1Command . prototype . execute = function ( note ) {
582- var vo = note . getBody ( ) ;
581+ MacroCommandTestSub1Command . prototype . execute = function ( notification ) {
582+ var vo = notification . getBody ( ) ;
583583 vo . result1 = 2 * vo . input ;
584584 } ;
585585 return MacroCommandTestSub1Command ;
@@ -637,9 +637,9 @@ if( typeof define === "function" )
637637 } ;
638638 MacroCommandTest . prototype . testMacroCommandExecute = function ( ) {
639639 var vo = new test . MacroCommandTestVO ( 5 ) ;
640- var note = new puremvc . Notification ( 'MacroCommandTest' , vo ) ;
640+ var notification = new puremvc . Notification ( 'MacroCommandTest' , vo ) ;
641641 var command = new test . MacroCommandTestCommand ( ) ;
642- command . execute ( note ) ;
642+ command . execute ( notification ) ;
643643 YUITest . Assert . areEqual ( 10 , vo . result1 , "Expecting vo.result1 == 10" ) ;
644644 YUITest . Assert . areEqual ( 25 , vo . result2 , "Expecting vo.result2 == 25" ) ;
645645 } ;
@@ -711,9 +711,9 @@ if( typeof define === "function" )
711711 } ;
712712 SimpleCommandTest . prototype . testSimpleCommandExecute = function ( ) {
713713 var vo = new test . SimpleCommandTestVO ( 5 ) ;
714- var note = new puremvc . Notification ( 'SimpleCommandTestNote' , vo ) ;
714+ var notification = new puremvc . Notification ( 'SimpleCommandTestNote' , vo ) ;
715715 var command = new test . SimpleCommandTestCommand ( ) ;
716- command . execute ( note ) ;
716+ command . execute ( notification ) ;
717717 YUITest . Assert . areEqual ( 10 , vo . result , "Expecting vo.result == 10" ) ;
718718 } ;
719719 return SimpleCommandTest ;
@@ -904,28 +904,28 @@ if( typeof define === "function" )
904904 this . name = "PureMVC Notification class tests" ;
905905 }
906906 NotificationTest . prototype . testNameAccessors = function ( ) {
907- var note = new puremvc . Notification ( 'TestNote' ) ;
908- YUITest . Assert . areEqual ( 'TestNote' , note . getName ( ) , "Expecting note .getName() == 'TestNote'" ) ;
907+ var notification = new puremvc . Notification ( 'TestNote' ) ;
908+ YUITest . Assert . areEqual ( 'TestNote' , notification . getName ( ) , "Expecting notification .getName() == 'TestNote'" ) ;
909909 } ;
910910 NotificationTest . prototype . testBodyAccessors = function ( ) {
911- var note = new puremvc . Notification ( null ) ;
912- note . setBody ( 5 ) ;
913- YUITest . Assert . areSame ( 5 , note . getBody ( ) , "Expecting note .getBody() === 5" ) ;
911+ var notification = new puremvc . Notification ( null ) ;
912+ notification . setBody ( 5 ) ;
913+ YUITest . Assert . areSame ( 5 , notification . getBody ( ) , "Expecting notification .getBody() === 5" ) ;
914914 } ;
915915 NotificationTest . prototype . testConstructor = function ( ) {
916- var note = new puremvc . Notification ( 'TestNote' , 5 , 'TestNoteType' ) ;
917- YUITest . Assert . areEqual ( "TestNote" , note . getName ( ) , "Expecting note .getName() == 'TestNote'" ) ;
918- YUITest . Assert . areSame ( 5 , note . getBody ( ) , "Expecting note .getBody() === 5" ) ;
919- YUITest . Assert . areEqual ( "TestNoteType" , note . getType ( ) , "Expecting note .getType() == 'TestNoteType'" ) ;
916+ var notification = new puremvc . Notification ( 'TestNote' , 5 , 'TestNoteType' ) ;
917+ YUITest . Assert . areEqual ( "TestNote" , notification . getName ( ) , "Expecting notification .getName() == 'TestNote'" ) ;
918+ YUITest . Assert . areSame ( 5 , notification . getBody ( ) , "Expecting notification .getBody() === 5" ) ;
919+ YUITest . Assert . areEqual ( "TestNoteType" , notification . getType ( ) , "Expecting notification .getType() == 'TestNoteType'" ) ;
920920 } ;
921921 NotificationTest . prototype . testToString = function ( ) {
922- var note = new puremvc . Notification ( 'TestNote' , [
922+ var notification = new puremvc . Notification ( 'TestNote' , [
923923 1 ,
924924 3 ,
925925 5
926926 ] , 'TestType' ) ;
927927 var ts = "Notification Name: TestNote\nBody:1,3,5\nType:TestType" ;
928- YUITest . Assert . areEqual ( ts , note . toString ( ) , "Expecting note .testToString() == '" + ts + "'" ) ;
928+ YUITest . Assert . areEqual ( ts , notification . toString ( ) , "Expecting notification .testToString() == '" + ts + "'" ) ;
929929 } ;
930930 return NotificationTest ;
931931 } ) ( ) ;
@@ -1017,14 +1017,14 @@ if( typeof define === "function" )
10171017 var observer = new puremvc . Observer ( null , null ) ;
10181018 observer . setNotifyContext ( this ) ;
10191019 observer . setNotifyMethod ( this . observerTestMethod ) ;
1020- var note = new puremvc . Notification ( 'ObserverTestNote' , 10 ) ;
1021- observer . notifyObserver ( note ) ;
1020+ var notification = new puremvc . Notification ( 'ObserverTestNote' , 10 ) ;
1021+ observer . notifyObserver ( notification ) ;
10221022 YUITest . Assert . areSame ( 10 , this . observerTestVar , "Expecting observerTestVar === 10" ) ;
10231023 } ;
10241024 ObserverTest . prototype . testObserverConstructor = function ( ) {
10251025 var observer = new puremvc . Observer ( this . observerTestMethod , this ) ;
1026- var note = new puremvc . Notification ( 'ObserverTestNote' , 5 ) ;
1027- observer . notifyObserver ( note ) ;
1026+ var notification = new puremvc . Notification ( 'ObserverTestNote' , 5 ) ;
1027+ observer . notifyObserver ( notification ) ;
10281028 YUITest . Assert . areSame ( 5 , this . observerTestVar , "Expecting observerTestVar === 5" ) ;
10291029 } ;
10301030 ObserverTest . prototype . testCompareNotifyContext = function ( ) {
0 commit comments