summaryrefslogtreecommitdiffstats
path: root/kate/tests/test.js
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kate/tests/test.js
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/tests/test.js')
-rw-r--r--kate/tests/test.js6
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)