diff options
Diffstat (limited to 'tests/testcodeinjection.cpp')
-rw-r--r-- | tests/testcodeinjection.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/testcodeinjection.cpp b/tests/testcodeinjection.cpp index e3619a202..b056ead83 100644 --- a/tests/testcodeinjection.cpp +++ b/tests/testcodeinjection.cpp @@ -34,6 +34,7 @@ void TestCodeInjections::testReadFileUtf8() QString xmlCode = "\ <typesystem package=\"Foo\"> \ <value-type name='A'> \ + <conversion-rule file='"+filePath+"/utf8code.txt'/>\ <inject-code class='target' file='"+filePath+"/utf8code.txt' />\ </value-type>\ <value-type name='A::B'/> \ @@ -45,6 +46,8 @@ void TestCodeInjections::testReadFileUtf8() QString code = classA->typeEntry()->codeSnips().first().code(); QString utf8Data = QString::fromUtf8("\xC3\xA1\xC3\xA9\xC3\xAD\xC3\xB3\xC3\xBA"); QVERIFY(code.indexOf(utf8Data) != -1); + code = classA->typeEntry()->conversionRule(); + QVERIFY(code.indexOf(utf8Data) != -1); } QTEST_APPLESS_MAIN(TestCodeInjections) |