[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
cblu
cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 05:47:14 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit ab3d17d70dea5401e4d3f0abc0760af0f95b70e2
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Sep 26 00:03:13 2001 +0000
Added more functions to qarray-test
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/kwq/tests/qt/qarray-test.chk b/WebCore/kwq/tests/qt/qarray-test.chk
index 8bfca21..4d812c2 100644
Binary files a/WebCore/kwq/tests/qt/qarray-test.chk and b/WebCore/kwq/tests/qt/qarray-test.chk differ
diff --git a/WebCore/kwq/tests/qt/qarray-test.cpp b/WebCore/kwq/tests/qt/qarray-test.cpp
index 67886f4..e1465c1 100644
--- a/WebCore/kwq/tests/qt/qarray-test.cpp
+++ b/WebCore/kwq/tests/qt/qarray-test.cpp
@@ -8,7 +8,8 @@ int main() {
QArray<char> a1 = QArray<char>(10);
QArray<char> a2 = QArray<char>(10);
QArray<char> a3;
-
+ char *ch;
+
char c = 'a';
for (int i = 0; i < 10; i++) {
a0[i] = c + i;
@@ -22,12 +23,53 @@ int main() {
cout << "a0 == a1: " << (a0 == a1) << endl;
cout << "a0 == a2: " << (a0 == a2) << endl;
-
+ cout << "a0 != a1: " << (a0 != a1) << endl;
+ cout << "a0 != a2: " << (a0 != a2) << endl;
+
cout << "a2 is null: " << (a2.isNull()) << endl;
cout << "a2 is empty: " << (a2.isEmpty()) << endl;
cout << "a3 is null: " << (a3.isNull()) << endl;
cout << "a3 is empty: " << (a3.isEmpty()) << endl;
+ cout << "a0 count: " << (a3.count()) << endl;
+
+ ch = a0.data();
+ cout << "a0 data: " << ch << endl;
+
+ a0.resize(15);
+ for (int i = 10; i < 15; i++) {
+ a0[i] = c + i;
+ }
+ cout << "a0 resize: " << a0 << endl;
+
+ a0.truncate(10);
+ cout << "a0 truncate: " << a0 << endl;
+
+ QArray<char> a4 = QArray<char>(10);
+ a4.fill('c');
+ cout << "a4 fill: " << a4 << endl;
+
+ cout << "a0 find 'j': " << a0.find('j') << endl;
+
+ cout << "a0 nrefs: " << a0.nrefs() << endl;
+
+ QArray<char> a5 = QArray<char>(10);
+ a5 = a0.copy();
+ cout << "a5 copy a0: " << a5 << endl;
+
+ QArray<char> a6 = QArray<char>(10);
+ a6 = a0.assign(a0); // hmm. Am I doing this right?
+ cout << "a6 assign a0: " << a6 << endl;
+
+ QArray<char> a7 = QArray<char>(10);
+ for (int i = 9; i >= 0; i--) {
+ a7[i] = 'j' - i;
+ }
+
+ cout << "a7 unsorted: " << a7 << endl;
+ a7.sort();
+ cout << "a7 sorted: " << a7 << endl;
+
return 0;
}
diff --git a/WebCore/src/kwq/tests/qt/qarray-test.chk b/WebCore/src/kwq/tests/qt/qarray-test.chk
index 8bfca21..4d812c2 100644
Binary files a/WebCore/src/kwq/tests/qt/qarray-test.chk and b/WebCore/src/kwq/tests/qt/qarray-test.chk differ
diff --git a/WebCore/src/kwq/tests/qt/qarray-test.cpp b/WebCore/src/kwq/tests/qt/qarray-test.cpp
index 67886f4..e1465c1 100644
--- a/WebCore/src/kwq/tests/qt/qarray-test.cpp
+++ b/WebCore/src/kwq/tests/qt/qarray-test.cpp
@@ -8,7 +8,8 @@ int main() {
QArray<char> a1 = QArray<char>(10);
QArray<char> a2 = QArray<char>(10);
QArray<char> a3;
-
+ char *ch;
+
char c = 'a';
for (int i = 0; i < 10; i++) {
a0[i] = c + i;
@@ -22,12 +23,53 @@ int main() {
cout << "a0 == a1: " << (a0 == a1) << endl;
cout << "a0 == a2: " << (a0 == a2) << endl;
-
+ cout << "a0 != a1: " << (a0 != a1) << endl;
+ cout << "a0 != a2: " << (a0 != a2) << endl;
+
cout << "a2 is null: " << (a2.isNull()) << endl;
cout << "a2 is empty: " << (a2.isEmpty()) << endl;
cout << "a3 is null: " << (a3.isNull()) << endl;
cout << "a3 is empty: " << (a3.isEmpty()) << endl;
+ cout << "a0 count: " << (a3.count()) << endl;
+
+ ch = a0.data();
+ cout << "a0 data: " << ch << endl;
+
+ a0.resize(15);
+ for (int i = 10; i < 15; i++) {
+ a0[i] = c + i;
+ }
+ cout << "a0 resize: " << a0 << endl;
+
+ a0.truncate(10);
+ cout << "a0 truncate: " << a0 << endl;
+
+ QArray<char> a4 = QArray<char>(10);
+ a4.fill('c');
+ cout << "a4 fill: " << a4 << endl;
+
+ cout << "a0 find 'j': " << a0.find('j') << endl;
+
+ cout << "a0 nrefs: " << a0.nrefs() << endl;
+
+ QArray<char> a5 = QArray<char>(10);
+ a5 = a0.copy();
+ cout << "a5 copy a0: " << a5 << endl;
+
+ QArray<char> a6 = QArray<char>(10);
+ a6 = a0.assign(a0); // hmm. Am I doing this right?
+ cout << "a6 assign a0: " << a6 << endl;
+
+ QArray<char> a7 = QArray<char>(10);
+ for (int i = 9; i >= 0; i--) {
+ a7[i] = 'j' - i;
+ }
+
+ cout << "a7 unsorted: " << a7 << endl;
+ a7.sort();
+ cout << "a7 sorted: " << a7 << endl;
+
return 0;
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list