diff options
author | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-30 13:06:35 +0100 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@canonical.com> | 2012-10-30 13:06:35 +0100 |
commit | fac3a657a39bb9c3e9fa3c0b3ff22533b2e7e3ba (patch) | |
tree | ccd8ebede33d7d8b7385b7d67c4ad172dc6d0607 /tests | |
parent | fd715d4758a1ebf92c30b7194af39fd7e924a473 (diff) | |
parent | 035b6086485dcd3b42abc5d1fab2b155ccd16027 (diff) | |
download | qmenumodel-fac3a657a39bb9c3e9fa3c0b3ff22533b2e7e3ba.tar.gz qmenumodel-fac3a657a39bb9c3e9fa3c0b3ff22533b2e7e3ba.tar.bz2 qmenumodel-fac3a657a39bb9c3e9fa3c0b3ff22533b2e7e3ba.zip |
Used utf8 instead of latin1 for strings.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/modeltest.cpp | 8 | ||||
-rwxr-xr-x | tests/client/script_modeltest.py | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/tests/client/modeltest.cpp b/tests/client/modeltest.cpp index 1c2eeca..93677db 100644 --- a/tests/client/modeltest.cpp +++ b/tests/client/modeltest.cpp @@ -212,7 +212,13 @@ private Q_SLOTS: QCOMPARE(v.type(), QVariant::Map); QCOMPARE(v.toMap(), map); - } + + // Utf8 + v = extra["utf8"]; + QCOMPARE(v.type(), QVariant::String); + QCOMPARE(v.toString(), QString("dança")); + + } /* * Test if model is destroyed without crash diff --git a/tests/client/script_modeltest.py b/tests/client/script_modeltest.py index 95df442..fdfbff4 100755 --- a/tests/client/script_modeltest.py +++ b/tests/client/script_modeltest.py @@ -1,4 +1,5 @@ #!/usr/bin/python2.7 +# -*- coding: utf-8 -*- import time from gi.repository import GLib @@ -21,6 +22,7 @@ al.appendItem("Menu0", "Menu0Act", None, None, {'x-boolean' : GLib.Variant('b', 'x-uint64' : GLib.Variant('t', 42), 'x-double' : GLib.Variant('d', 42.42), 'x-string' : GLib.Variant('s', u'42'), + 'x-utf8' : GLib.Variant('s', u'dança'), 'x-map' : GLib.Variant('a{sv}', pmap), }) al.appendItem("Menu1", "Menu1Act") |