diff options
Diffstat (limited to 'kate/tests/test.js')
-rw-r--r-- | kate/tests/test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kate/tests/test.js b/kate/tests/test.js index 2dfe86c5b..b268c9149 100644 --- a/kate/tests/test.js +++ b/kate/tests/test.js @@ -15,7 +15,7 @@ */ // test if regex support works - nice with new fallthrough prop in context:) -somestring.replace( /dooh/ , "bah!"); +somestring.tqreplace( /dooh/ , "bah!"); re=/foo/ig; // hehe somestring.search( @@ -60,14 +60,14 @@ re = /*/foo/*/ /bar/; /* Some tests if the fallthrough works. The fallthrough happens if a regexp is not found in a possible (!) position, - which is after "search(" or "replace(" or "=" or "?" or ":" in version 0.1 of the xml file + which is after "search(" or "tqreplace(" or "=" or "?" or ":" in version 0.1 of the xml file */ var foo = 'bar'; // ^ fallthrough! -somestring.replace( new RegExp("\\b\\w+\\b"), "word: $1"); +somestring.tqreplace( new RegExp("\\b\\w+\\b"), "word: $1"); // ^ fallthrough expected. ("new" whould be bold) |