From 50de53fd6278537c78db3e9c0558a6c7bd82915f Mon Sep 17 00:00:00 2001 From: dkf Date: Mon, 19 May 2003 21:19:51 +0000 Subject: Fixed test suite breakage that I inadvertently introduced [Bug 739965] --- ChangeLog | 4 ++++ generic/tkText.c | 49 ++++++++++++++++++++++++++++--------------------- tests/text.test | 4 ++-- tests/textImage.test | 6 +++--- 4 files changed, 37 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index 90df1a8..da7eb59 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2003-05-19 Donal K. Fellows + * tests/textImage.test: Fixed faults in option parsing and + * tests/text.test: made tests conformant. [Bug 739965] + * generic/tkText.c (TextSearchCmd): + * library/demos/en.msg: Base catalog for the widget demo. * library/demos/widget: Added message-catalog support. * library/console.tcl: Reworked to use tk::AmpMenuArgs and be more diff --git a/generic/tkText.c b/generic/tkText.c index 377217f..b6fbcbe 100644 --- a/generic/tkText.c +++ b/generic/tkText.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkText.c,v 1.35 2003/05/19 14:37:20 dkf Exp $ + * RCS: @(#) $Id: tkText.c,v 1.36 2003/05/19 21:19:51 dkf Exp $ */ #include "default.h" @@ -2107,8 +2107,8 @@ TextSearchCmd(textPtr, interp, objc, objv) SearchSpec searchSpec; static CONST char *switchStrings[] = { - "--", "-all", "-backward", "-count", "-elide", "-exact", - "-forward", "-hidden", "-nocase", "-nolinestop", "-regexp", NULL + "--", "-all", "-backwards", "-count", "-elide", "-exact", + "-forwards", "-hidden", "-nocase", "-nolinestop", "-regexp", NULL }; enum SearchSwitches { SEARCH_END, SEARCH_ALL, SEARCH_BACK, SEARCH_COUNT, SEARCH_ELIDE, @@ -2139,7 +2139,7 @@ TextSearchCmd(textPtr, interp, objc, objv) * Parse switches and other arguments. */ - for (i = 2; i < objc; i++) { + for (i=2 ; i