[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:18 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit 1dc140de833eb0d2a9e7e3adffd890b9c69ecd64
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Sep 26 17:49:00 2001 +0000

    Added tests for at and duplicate to qarray-test. Commented out uneccessary tests.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/kwq/tests/qt/qarray-test.chk b/WebCore/kwq/tests/qt/qarray-test.chk
index 4d812c2..8c4cdbb 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 e1465c1..03cd5a8 100644
--- a/WebCore/kwq/tests/qt/qarray-test.cpp
+++ b/WebCore/kwq/tests/qt/qarray-test.cpp
@@ -32,7 +32,7 @@ int main() {
     cout << "a3 is null: " << (a3.isNull()) << endl;
     cout << "a3 is empty: " << (a3.isEmpty()) << endl;
 
-    cout << "a0 count: " << (a3.count()) << endl;
+    cout << "a0 count: " << (a0.count()) << endl;
     
     ch = a0.data();
     cout << "a0 data: " << ch << endl;
@@ -43,33 +43,40 @@ int main() {
     }
     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 find 'j': " << a0.find('j') << endl;
     
-    cout << "a0 nrefs: " << a0.nrefs() << endl;
+    //cout << "a0 nrefs: " << a0.nrefs() << endl;
     
-    QArray<char> a5 = QArray<char>(10);
-    a5 = a0.copy();
-    cout << "a5 copy a0: " << a5 << 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> 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;
-    }
+    //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;
+    
+    
+    char ch2;
+    ch2 = a0.at(4);
+    cout << "a0 at 4: " << ch2 << endl;
     
-    cout << "a7 unsorted: " << a7 << endl;
-    a7.sort();
-    cout << "a7 sorted: " << a7 << endl;
+    char *ch3;
+    ch3 = a4.data();
+    a0 = a0.duplicate(ch3, 10);
+    cout << "a0 duplicate from a4: " << a0 << endl;
     
     return 0;
 }
diff --git a/WebCore/src/kwq/tests/qt/qarray-test.chk b/WebCore/src/kwq/tests/qt/qarray-test.chk
index 4d812c2..8c4cdbb 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 e1465c1..03cd5a8 100644
--- a/WebCore/src/kwq/tests/qt/qarray-test.cpp
+++ b/WebCore/src/kwq/tests/qt/qarray-test.cpp
@@ -32,7 +32,7 @@ int main() {
     cout << "a3 is null: " << (a3.isNull()) << endl;
     cout << "a3 is empty: " << (a3.isEmpty()) << endl;
 
-    cout << "a0 count: " << (a3.count()) << endl;
+    cout << "a0 count: " << (a0.count()) << endl;
     
     ch = a0.data();
     cout << "a0 data: " << ch << endl;
@@ -43,33 +43,40 @@ int main() {
     }
     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 find 'j': " << a0.find('j') << endl;
     
-    cout << "a0 nrefs: " << a0.nrefs() << endl;
+    //cout << "a0 nrefs: " << a0.nrefs() << endl;
     
-    QArray<char> a5 = QArray<char>(10);
-    a5 = a0.copy();
-    cout << "a5 copy a0: " << a5 << 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> 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;
-    }
+    //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;
+    
+    
+    char ch2;
+    ch2 = a0.at(4);
+    cout << "a0 at 4: " << ch2 << endl;
     
-    cout << "a7 unsorted: " << a7 << endl;
-    a7.sort();
-    cout << "a7 sorted: " << a7 << endl;
+    char *ch3;
+    ch3 = a4.data();
+    a0 = a0.duplicate(ch3, 10);
+    cout << "a0 duplicate from a4: " << a0 << endl;
     
     return 0;
 }

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list