[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
kocienda
kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:46:47 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit ef84bafdf4ff81d284c27a398641c5b70edad916
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Sep 24 18:33:18 2001 +0000
Added some more test programs
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/kwq/tests/Makefile.in b/WebCore/kwq/tests/Makefile.in
index 5207acc..5daaf3a 100644
--- a/WebCore/kwq/tests/Makefile.in
+++ b/WebCore/kwq/tests/Makefile.in
@@ -41,6 +41,9 @@ all: $(OBJECTS) $(PROGRAM)
$(PROGRAM): harness.o
$(CC) -o $@ $< $(LDFLAGS)
+test:
+ $(MAKE) && ./harness
+
depend:
#----------------------------------------------------------------------
diff --git a/WebCore/kwq/tests/qt/Makefile.in b/WebCore/kwq/tests/qt/Makefile.in
index a36f9dd..63a4122 100644
--- a/WebCore/kwq/tests/qt/Makefile.in
+++ b/WebCore/kwq/tests/qt/Makefile.in
@@ -23,6 +23,7 @@ PROGRAMS = \
qpoint-test \
qsize-test \
qrect-test \
+ qcstring-test \
qarray-test \
qmap-test \
qvaluelist-test \
@@ -66,10 +67,13 @@ all: $(OBJECTS) $(PROGRAMS)
qpoint-test: qpoint-test.o
$(CXX) -o $@ $< $(LDFLAGS)
+qsize-test: qsize-test.o
+ $(CXX) -o $@ $< $(LDFLAGS)
+
qrect-test: qrect-test.o
$(CXX) -o $@ $< $(LDFLAGS)
-qsize-test: qsize-test.o
+qcstring-test: qcstring-test.o
$(CXX) -o $@ $< $(LDFLAGS)
qarray-test: qarray-test.o
diff --git a/WebCore/kwq/tests/qt/qcstring-test.chk b/WebCore/kwq/tests/qt/qcstring-test.chk
new file mode 100644
index 0000000..967d330
--- /dev/null
+++ b/WebCore/kwq/tests/qt/qcstring-test.chk
@@ -0,0 +1,12 @@
+this is a string
+this is another string
+jazz hype loves two mugs for dire quixotic knobs
+(null)
+this is a string
+upper case: THIS IS A STRING
+lower case: this is a string
+left four chars: jazz
+right five chars: knobs
+jazz hype loves
+jazz hype loves two mugs for dire quixotic knobs
+should be non-zero: 1
diff --git a/WebCore/kwq/tests/qt/qcstring-test.cpp b/WebCore/kwq/tests/qt/qcstring-test.cpp
new file mode 100644
index 0000000..e473402
--- /dev/null
+++ b/WebCore/kwq/tests/qt/qcstring-test.cpp
@@ -0,0 +1,35 @@
+#include <iostream>
+
+#include <qcstring.h>
+
+int main() {
+
+ QCString s1 = "this is a string";
+ QCString s2 = "this is another string";
+ QCString s3 = "jazz hype loves two mugs for dire quixotic knobs";
+ QCString s4;
+ QCString s5 = s1;
+
+ cout << s1 << endl;
+ cout << s2 << endl;
+ cout << s3 << endl;
+ cout << s4 << endl;
+ cout << s5 << endl;
+
+ QCString s6 = s1.upper();
+ cout << "upper case: " << s6 << endl;
+ cout << "lower case: " << s6.lower() << endl;
+
+ cout << "left four chars: " << s3.left(4) << endl;
+ cout << "right five chars: " << s3.right(5) << endl;
+
+ s6 = s3;
+ s6.truncate(15);
+ cout << s6 << endl;
+
+ s6 += " two mugs for dire quixotic knobs";
+ cout << s6 << endl;
+ cout << "should be non-zero: " << (s3 == s6) << endl;
+
+ return 0;
+}
diff --git a/WebCore/kwq/tests/test.list b/WebCore/kwq/tests/test.list
index 72bea17..be692b0 100644
--- a/WebCore/kwq/tests/test.list
+++ b/WebCore/kwq/tests/test.list
@@ -1,6 +1,12 @@
# Qt suite
qt/qpoint-test
qt/qsize-test
+qt/qcstring-test
qt/qrect-test
+qt/qarray-test
qt/qmap-test
-qt/qchar-test
\ No newline at end of file
+qt/qvaluelist-test
+qt/qstringlist-test
+qt/qlist-test
+qt/qregexp-test
+qt/qchar-test
diff --git a/WebCore/src/kwq/tests/Makefile.in b/WebCore/src/kwq/tests/Makefile.in
index 5207acc..5daaf3a 100644
--- a/WebCore/src/kwq/tests/Makefile.in
+++ b/WebCore/src/kwq/tests/Makefile.in
@@ -41,6 +41,9 @@ all: $(OBJECTS) $(PROGRAM)
$(PROGRAM): harness.o
$(CC) -o $@ $< $(LDFLAGS)
+test:
+ $(MAKE) && ./harness
+
depend:
#----------------------------------------------------------------------
diff --git a/WebCore/src/kwq/tests/qt/Makefile.in b/WebCore/src/kwq/tests/qt/Makefile.in
index a36f9dd..63a4122 100644
--- a/WebCore/src/kwq/tests/qt/Makefile.in
+++ b/WebCore/src/kwq/tests/qt/Makefile.in
@@ -23,6 +23,7 @@ PROGRAMS = \
qpoint-test \
qsize-test \
qrect-test \
+ qcstring-test \
qarray-test \
qmap-test \
qvaluelist-test \
@@ -66,10 +67,13 @@ all: $(OBJECTS) $(PROGRAMS)
qpoint-test: qpoint-test.o
$(CXX) -o $@ $< $(LDFLAGS)
+qsize-test: qsize-test.o
+ $(CXX) -o $@ $< $(LDFLAGS)
+
qrect-test: qrect-test.o
$(CXX) -o $@ $< $(LDFLAGS)
-qsize-test: qsize-test.o
+qcstring-test: qcstring-test.o
$(CXX) -o $@ $< $(LDFLAGS)
qarray-test: qarray-test.o
diff --git a/WebCore/src/kwq/tests/qt/qcstring-test.chk b/WebCore/src/kwq/tests/qt/qcstring-test.chk
new file mode 100644
index 0000000..967d330
--- /dev/null
+++ b/WebCore/src/kwq/tests/qt/qcstring-test.chk
@@ -0,0 +1,12 @@
+this is a string
+this is another string
+jazz hype loves two mugs for dire quixotic knobs
+(null)
+this is a string
+upper case: THIS IS A STRING
+lower case: this is a string
+left four chars: jazz
+right five chars: knobs
+jazz hype loves
+jazz hype loves two mugs for dire quixotic knobs
+should be non-zero: 1
diff --git a/WebCore/src/kwq/tests/qt/qcstring-test.cpp b/WebCore/src/kwq/tests/qt/qcstring-test.cpp
new file mode 100644
index 0000000..e473402
--- /dev/null
+++ b/WebCore/src/kwq/tests/qt/qcstring-test.cpp
@@ -0,0 +1,35 @@
+#include <iostream>
+
+#include <qcstring.h>
+
+int main() {
+
+ QCString s1 = "this is a string";
+ QCString s2 = "this is another string";
+ QCString s3 = "jazz hype loves two mugs for dire quixotic knobs";
+ QCString s4;
+ QCString s5 = s1;
+
+ cout << s1 << endl;
+ cout << s2 << endl;
+ cout << s3 << endl;
+ cout << s4 << endl;
+ cout << s5 << endl;
+
+ QCString s6 = s1.upper();
+ cout << "upper case: " << s6 << endl;
+ cout << "lower case: " << s6.lower() << endl;
+
+ cout << "left four chars: " << s3.left(4) << endl;
+ cout << "right five chars: " << s3.right(5) << endl;
+
+ s6 = s3;
+ s6.truncate(15);
+ cout << s6 << endl;
+
+ s6 += " two mugs for dire quixotic knobs";
+ cout << s6 << endl;
+ cout << "should be non-zero: " << (s3 == s6) << endl;
+
+ return 0;
+}
diff --git a/WebCore/src/kwq/tests/test.list b/WebCore/src/kwq/tests/test.list
index 72bea17..be692b0 100644
--- a/WebCore/src/kwq/tests/test.list
+++ b/WebCore/src/kwq/tests/test.list
@@ -1,6 +1,12 @@
# Qt suite
qt/qpoint-test
qt/qsize-test
+qt/qcstring-test
qt/qrect-test
+qt/qarray-test
qt/qmap-test
-qt/qchar-test
\ No newline at end of file
+qt/qvaluelist-test
+qt/qstringlist-test
+qt/qlist-test
+qt/qregexp-test
+qt/qchar-test
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list