@@ -18,29 +18,29 @@ describe("my app", function() {
1818
1919 it ( "should support binding through model" , function ( ) {
2020 //set value to the input, which represents the model
21- util . executeScript ( '$(" #gridmodel input[ng-model=\'product.ProductName\']:eq(0)" ).val(" test" ).trigger(" input")' ) ;
22- var cellText = util . getResult ( '$(" #grid1" ).igGrid(" getCellText" , 1, " ProductName")' ) ;
21+ util . executeScript ( "$(' #gridmodel input[ng-model=\'product.ProductName\']:eq(0)' ).val(' test' ).trigger(' input')" ) ;
22+ var cellText = util . getResult ( "$(' #grid1' ).igGrid(' getCellText' , 1, ' ProductName')" ) ;
2323 expect ( cellText ) . toBe ( "test" ) ;
2424 } ) ;
2525
2626 it ( "should support binding through the view from API" , function ( ) {
27- util . executeScript ( '$(" #grid1" ).igGridUpdating(" setCellValue" , 1, " ProductName", " Headlights");' ) ;
27+ util . executeScript ( "$(' #grid1' ).igGridUpdating(' setCellValue' , 1, ' ProductName', ' Headlights');" ) ;
2828 //API requires calling $apply to the scope
29- util . executeScript ( ' angular.element(" #grid1" ).scope().$apply();' ) ;
30- expect ( util . getResult ( '$(" input[ng-model=\'product.ProductName\']:first" ).val()' ) ) . toBe ( "Headlights" ) ;
29+ util . executeScript ( " angular.element(' #grid1' ).scope().$apply();" ) ;
30+ expect ( util . getResult ( "$(' input[ng-model=\'product.ProductName\']:first' ).val()" ) ) . toBe ( "Headlights" ) ;
3131 } ) ;
3232
3333 it ( "should update view when the scope is directly edited" , function ( ) {
34- util . executeScript ( ' angular.element(" #grid1" ).scope().northwind[1].ProductName = " Writing Pad"' ) ;
35- util . executeScript ( ' angular.element(" #grid1" ).scope().$apply();' )
36- var cellText = util . getResult ( '$(" #grid1" ).igGrid(" getCellText" , 2, " ProductName");' )
34+ util . executeScript ( " angular.element(' #grid1' ).scope().northwind[1].ProductName = ' Writing Pad'" ) ;
35+ util . executeScript ( " angular.element(' #grid1' ).scope().$apply();" )
36+ var cellText = util . getResult ( "$(' #grid1' ).igGrid(' getCellText' , 2, ' ProductName');" )
3737 expect ( cellText ) . toBe ( "Writing Pad" ) ;
3838 } ) ;
3939
4040 it ( "should initialize Filtering, Updating and Sorting" , function ( ) {
41- expect ( util . getResult ( '$(" #grid1" ).data(" igGridFiltering" ) != undefined' ) ) . toBe ( true ) ;
42- expect ( util . getResult ( '$(" #grid1" ).data(" igGridUpdating" ) != undefined' ) ) . toBe ( true ) ;
43- expect ( util . getResult ( '$(" #grid1" ).data(" igGridSorting" ) != undefined' ) ) . toBe ( true ) ;
41+ expect ( util . getResult ( "$(' #grid1' ).data(' igGridFiltering' ) != undefined" ) ) . toBe ( true ) ;
42+ expect ( util . getResult ( "$(' #grid1' ).data(' igGridUpdating' ) != undefined" ) ) . toBe ( true ) ;
43+ expect ( util . getResult ( "$(' #grid1' ).data(' igGridSorting' ) != undefined" ) ) . toBe ( true ) ;
4444 } ) ;
4545
4646 it ( "should retain the values from scope when a column is sorted" , function ( ) {
0 commit comments