Changeset 4123da1


Ignore:
Timestamp:
Apr 26, 2010, 3:46:12 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
ae333f0
Parents:
1ea0249
git-author:
David Benjamin <davidben@mit.edu> (04/26/10 12:49:41)
git-committer:
David Benjamin <davidben@mit.edu> (04/26/10 15:46:12)
Message:
Fix references to old editwin API in tester
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester.c

    rd564c3d r4123da1  
    329329
    330330  owl_editwin *oe;
    331   oe = owl_editwin_allocate();
    332   owl_editwin_init(oe, NULL, 80, 80, OWL_EDITWIN_STYLE_MULTILINE, NULL);
     331  oe = owl_editwin_new(NULL, 80, 80, OWL_EDITWIN_STYLE_MULTILINE, NULL);
    333332
    334333  /* TODO: make the strings a little more lenient w.r.t trailing whitespace */
     
    344343                                                            "blah"));
    345344
     345  owl_editwin_delete(oe); oe = NULL;
     346  oe = owl_editwin_new(NULL, 80, 80, OWL_EDITWIN_STYLE_MULTILINE, NULL);
     347
    346348  /* check that lines ending with ". " correctly fill */
    347   owl_editwin_fullclear(oe);
    348349  owl_editwin_insert_string(oe, "blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah. \n\nblah");
    349350  owl_editwin_move_to_top(oe);
     
    355356                                                            "blah"));
    356357
    357   owl_editwin_delete(oe);
     358  owl_editwin_delete(oe); oe = NULL;
    358359
    359360  printf("# END testing owl_editwin (%d failures)\n", numfailed);
Note: See TracChangeset for help on using the changeset viewer.