From 37ce28ddd4d4269ed7203783c9eb83882be9a962 Mon Sep 17 00:00:00 2001 From: "pschwartau%netscape.com" Date: Tue, 23 Oct 2001 17:39:31 +0000 Subject: [PATCH] Minor changes in style. --- js/tests/ecma_3/RegExp/shell.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/js/tests/ecma_3/RegExp/shell.js b/js/tests/ecma_3/RegExp/shell.js index 01e59e34f07a..27e41a2b6f59 100644 --- a/js/tests/ecma_3/RegExp/shell.js +++ b/js/tests/ecma_3/RegExp/shell.js @@ -22,8 +22,8 @@ * Functionality common to RegExp testing - */ //------------------------------------------------------------------------------------------------- -var MSG_PAT = '\nregexp = '; -var MSG_STR = '\nstring = '; +var MSG_PATTERN = '\nregexp = '; +var MSG_STRING = '\nstring = '; var MSG_EXPECT = '\nExpect: '; var MSG_ACTUAL = '\nActual: '; var ERR_LENGTH = '\nERROR !!! match arrays have different lengths:'; @@ -86,7 +86,6 @@ function testRegExp(statuses, patterns, strings, actualmatches, expectedmatches) MSG_ACTUAL + formatArray(actualmatch) + CHAR_NL ); - continue; } } @@ -98,7 +97,6 @@ function testRegExp(statuses, patterns, strings, actualmatches, expectedmatches) MSG_ACTUAL + formatArray(actualmatch) + CHAR_NL ); - continue; } } @@ -112,13 +110,11 @@ function testRegExp(statuses, patterns, strings, actualmatches, expectedmatches) MSG_ACTUAL + actualmatch + CHAR_NL ); - continue; } else // we did not expect a match { // Being ultra-cautious. Presumably expectedmatch===actualmatch===null reportCompare (expectedmatch, actualmatch, state); - continue; } } } @@ -145,7 +141,7 @@ function getState(status, pattern, string) string = string.replace(/\v/g, '\\v'); string = string.replace(/\f/g, '\\f'); - return (status + MSG_PAT + pattern + MSG_STR + quote(string)); + return (status + MSG_PATTERN + pattern + MSG_STRING + quote(string)); }