[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:19 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 77dfbc4e2ebcc2ae18887ec4ca0314de4da17933
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Sep 26 18:06:02 2001 +0000
Added tests for count, = and clear methods to qdict-test.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@201 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/kwq/tests/qt/qdict-test.chk b/WebCore/kwq/tests/qt/qdict-test.chk
index dd181c7..a3ff749 100644
--- a/WebCore/kwq/tests/qt/qdict-test.chk
+++ b/WebCore/kwq/tests/qt/qdict-test.chk
@@ -3,3 +3,6 @@ item keyed to 'one': 1
remove item keyed to 'three': QDict: [size: 4; items: (one,1), (five,5), (four,4), (two,2)]
d0 is empty: 1
d1 is empty: 0
+d1 count: 4
+d2 = d1: QDict: [size: 4; items: (one,1), (five,5), (two,2), (four,4)]
+d1 cleared: QDict: [size: 0; items: ]
diff --git a/WebCore/kwq/tests/qt/qdict-test.cpp b/WebCore/kwq/tests/qt/qdict-test.cpp
index 1d1603d..a564f53 100644
--- a/WebCore/kwq/tests/qt/qdict-test.cpp
+++ b/WebCore/kwq/tests/qt/qdict-test.cpp
@@ -7,7 +7,8 @@ int main() {
QDict<int> d0;
QDict<int> d1;
-
+ QDict<int> d2;
+
int v1 = 1;
int v2 = 2;
int v3 = 3;
@@ -29,6 +30,16 @@ int main() {
cout << "d0 is empty: " << d0.isEmpty() << endl;
cout << "d1 is empty: " << d1.isEmpty() << endl;
-
+
+ cout << "d1 count: " << d1.count() << endl;
+
+ d2 = d1;
+ cout << "d2 = d1: " << d2 << endl;
+
+ d1.clear();
+ cout << "d1 cleared: " << d1 << endl;
+
+
+
return 0;
}
diff --git a/WebCore/src/kwq/tests/qt/qdict-test.chk b/WebCore/src/kwq/tests/qt/qdict-test.chk
index dd181c7..a3ff749 100644
--- a/WebCore/src/kwq/tests/qt/qdict-test.chk
+++ b/WebCore/src/kwq/tests/qt/qdict-test.chk
@@ -3,3 +3,6 @@ item keyed to 'one': 1
remove item keyed to 'three': QDict: [size: 4; items: (one,1), (five,5), (four,4), (two,2)]
d0 is empty: 1
d1 is empty: 0
+d1 count: 4
+d2 = d1: QDict: [size: 4; items: (one,1), (five,5), (two,2), (four,4)]
+d1 cleared: QDict: [size: 0; items: ]
diff --git a/WebCore/src/kwq/tests/qt/qdict-test.cpp b/WebCore/src/kwq/tests/qt/qdict-test.cpp
index 1d1603d..a564f53 100644
--- a/WebCore/src/kwq/tests/qt/qdict-test.cpp
+++ b/WebCore/src/kwq/tests/qt/qdict-test.cpp
@@ -7,7 +7,8 @@ int main() {
QDict<int> d0;
QDict<int> d1;
-
+ QDict<int> d2;
+
int v1 = 1;
int v2 = 2;
int v3 = 3;
@@ -29,6 +30,16 @@ int main() {
cout << "d0 is empty: " << d0.isEmpty() << endl;
cout << "d1 is empty: " << d1.isEmpty() << endl;
-
+
+ cout << "d1 count: " << d1.count() << endl;
+
+ d2 = d1;
+ cout << "d2 = d1: " << d2 << endl;
+
+ d1.clear();
+ cout << "d1 cleared: " << d1 << endl;
+
+
+
return 0;
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list