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


The following commit has been merged in the debian/unstable branch:
commit 12d4b24fd4a50dfa3fad042657acd460169ac2de
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Sep 24 18:24:14 2001 +0000

    Added Files:
    qchar-test.cpp
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@180 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/kwq/tests/qt/qchar-test.cpp b/WebCore/kwq/tests/qt/qchar-test.cpp
new file mode 100644
index 0000000..402af63
--- /dev/null
+++ b/WebCore/kwq/tests/qt/qchar-test.cpp
@@ -0,0 +1,38 @@
+#include <iostream>
+
+#include <qstring.h>
+
+int main() {
+
+    char c_char = 'a';
+    uchar c_uchar = 'b';
+    ushort c_ushort = 'd';
+    short c_short = ' ';
+    uint c_uint = 'f';
+    int c_int = '-';
+    
+    QChar q0 = QChar();
+    QChar q1 = QChar(c_char);
+    QChar q2 = QChar(c_uchar);
+    QChar q3 = QChar(c_uchar, 0);
+    QChar q4 = QChar(q1);
+    QChar q5 = QChar(c_ushort);
+    QChar q6 = QChar(c_short);
+    QChar q7 = QChar(c_uint);
+    QChar q8 = QChar(c_int);
+    
+    cout << q1 << endl;
+    cout << q2 << endl;
+    cout << q3 << endl;
+    cout << q4 << endl;
+    cout << q5 << endl;
+    cout << q6 << endl;
+    cout << q7 << endl;
+    cout << q8 << endl;
+    cout << q8.isPunct() << endl;
+    cout << q7.isPunct() << endl;
+    cout << q6.isSpace() << endl;
+    cout << q5.isSpace() << endl;
+    
+    return 0;
+}
diff --git a/WebCore/src/kwq/tests/qt/qchar-test.cpp b/WebCore/src/kwq/tests/qt/qchar-test.cpp
new file mode 100644
index 0000000..402af63
--- /dev/null
+++ b/WebCore/src/kwq/tests/qt/qchar-test.cpp
@@ -0,0 +1,38 @@
+#include <iostream>
+
+#include <qstring.h>
+
+int main() {
+
+    char c_char = 'a';
+    uchar c_uchar = 'b';
+    ushort c_ushort = 'd';
+    short c_short = ' ';
+    uint c_uint = 'f';
+    int c_int = '-';
+    
+    QChar q0 = QChar();
+    QChar q1 = QChar(c_char);
+    QChar q2 = QChar(c_uchar);
+    QChar q3 = QChar(c_uchar, 0);
+    QChar q4 = QChar(q1);
+    QChar q5 = QChar(c_ushort);
+    QChar q6 = QChar(c_short);
+    QChar q7 = QChar(c_uint);
+    QChar q8 = QChar(c_int);
+    
+    cout << q1 << endl;
+    cout << q2 << endl;
+    cout << q3 << endl;
+    cout << q4 << endl;
+    cout << q5 << endl;
+    cout << q6 << endl;
+    cout << q7 << endl;
+    cout << q8 << endl;
+    cout << q8.isPunct() << endl;
+    cout << q7.isPunct() << endl;
+    cout << q6.isSpace() << endl;
+    cout << q5.isSpace() << endl;
+    
+    return 0;
+}

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list