summaryrefslogtreecommitdiffstats
path: root/tests/auto/xml/sax/qxmlsimplereader/encodings
diff options
context:
space:
mode:
authorJo Asplin <jo.asplin@nokia.com>2011-09-06 10:01:38 +0200
committerJo Asplin <jo.asplin@nokia.com>2011-09-06 10:31:40 +0200
commit665e4ec0ec959a12a6b66cdd0533bd40b29cd56d (patch)
tree98dd4ebb79d76067c3ec6dca15455e29fa35baae /tests/auto/xml/sax/qxmlsimplereader/encodings
parent48ba459580c9e4ce28dbb2c3ce433175148da5a1 (diff)
Moved xml autotests into new directory structure
Task-number: QTBUG-21260 Change-Id: I7bc30227d4e71e8783f274dbfa758399dca546d4 Reviewed-on: http://codereview.qt.nokia.com/4146 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
Diffstat (limited to 'tests/auto/xml/sax/qxmlsimplereader/encodings')
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/encodings/doc_euc-jp.xml78
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/encodings/doc_iso-2022-jp.xml.ref4
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/encodings/doc_little-endian.xmlbin0 -> 3186 bytes
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-16.xmlbin0 -> 3186 bytes
-rw-r--r--tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-8.xml77
5 files changed, 159 insertions, 0 deletions
diff --git a/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_euc-jp.xml b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_euc-jp.xml
new file mode 100644
index 0000000000..887ab5ec30
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_euc-jp.xml
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="euc-jp"?>
+<!DOCTYPE 週報 SYSTEM "weekly-euc-jp.dtd">
+<!-- 週報サンプル -->
+<週報>
+ <年月週>
+ <年度>1997</年度>
+ <月度>1</月度>
+ <週>1</週>
+ </年月週>
+
+ <氏名>
+ <氏>山田</氏>
+ <名>太郎</名>
+ </氏名>
+
+ <業務報告リスト>
+ <業務報告>
+ <業務名>XMLエディターの作成</業務名>
+ <業務コード>X3355-23</業務コード>
+ <工数管理>
+ <見積もり工数>1600</見積もり工数>
+ <実績工数>320</実績工数>
+ <当月見積もり工数>160</当月見積もり工数>
+ <当月実績工数>24</当月実績工数>
+ </工数管理>
+ <予定項目リスト>
+ <予定項目>
+ <P>XMLエディターの基本仕様の作成</P>
+ </予定項目>
+ </予定項目リスト>
+ <実施事項リスト>
+ <実施事項>
+ <P>XMLエディターの基本仕様の作成</P>
+ </実施事項>
+ <実施事項>
+ <P>競合他社製品の機能調査</P>
+ </実施事項>
+ </実施事項リスト>
+ <上長への要請事項リスト>
+ <上長への要請事項>
+ <P>特になし</P>
+ </上長への要請事項>
+ </上長への要請事項リスト>
+ <問題点対策>
+ <P>XMLとは何かわからない。</P>
+ </問題点対策>
+ </業務報告>
+
+ <業務報告>
+ <業務名>検索エンジンの開発</業務名>
+ <業務コード>S8821-76</業務コード>
+ <工数管理>
+ <見積もり工数>120</見積もり工数>
+ <実績工数>6</実績工数>
+ <当月見積もり工数>32</当月見積もり工数>
+ <当月実績工数>2</当月実績工数>
+ </工数管理>
+ <予定項目リスト>
+ <予定項目>
+ <P><A href="http://www.goo.ne.jp">goo</A>の機能を調べてみる</P>
+ </予定項目>
+ </予定項目リスト>
+ <実施事項リスト>
+ <実施事項>
+ <P>更に、どういう検索エンジンがあるか調査する</P>
+ </実施事項>
+ </実施事項リスト>
+ <上長への要請事項リスト>
+ <上長への要請事項>
+ <P>開発をするのはめんどうなので、Yahoo!を買収して下さい。</P>
+ </上長への要請事項>
+ </上長への要請事項リスト>
+ <問題点対策>
+ <P>検索エンジンで車を走らせることができない。(要調査)</P>
+ </問題点対策>
+ </業務報告>
+ </業務報告リスト>
+</週報>
diff --git a/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_iso-2022-jp.xml.ref b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_iso-2022-jp.xml.ref
new file mode 100644
index 0000000000..28dcdd98c4
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_iso-2022-jp.xml.ref
@@ -0,0 +1,4 @@
+setDocumentLocator(locator={columnNumber=1, lineNumber=1})
+startDocument()
+ processingInstruction(target="xml", data="version='1.0' encoding='iso-2022-jp'")
+ fatalError(exception={columnNumber=11, lineNumber=2, publicId="", systemId="", message="letter is expected"})
diff --git a/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_little-endian.xml b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_little-endian.xml
new file mode 100644
index 0000000000..81f72e59e8
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_little-endian.xml
Binary files differ
diff --git a/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-16.xml b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-16.xml
new file mode 100644
index 0000000000..6c8622aa43
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-16.xml
Binary files differ
diff --git a/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-8.xml b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-8.xml
new file mode 100644
index 0000000000..402c163c5f
--- /dev/null
+++ b/tests/auto/xml/sax/qxmlsimplereader/encodings/doc_utf-8.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<!-- 怨宴泣潟 -->
+<怨>
+ <綛贋>
+ <綛翫墾>1997</綛翫墾>
+ <綺>1</綺>
+ <>1</>
+ </綛贋>
+
+ <羂>
+ <羂>絮援</羂>
+ <>紊</>
+ </羂>
+
+ <罐怨鴻>
+ <罐怨>
+ <罐>XMLc帥若篏</罐>
+ <罐潟若>X3355-23</罐潟若>
+ <綏ユ亥∞>
+ <荀腥綏ユ>1600</荀腥綏ユ>
+ <絎膰上轡>320</絎膰上轡>
+ <綵荀腥綏ユ>160</綵荀腥綏ユ>
+ <綵絎膰上轡>24</綵絎膰上轡>
+ </綏ユ亥∞>
+ <篋絎鴻>
+ <篋絎>
+ <P>XMLc帥若堺篁罕篏</P>
+ </篋絎>
+ </篋絎鴻>
+ <絎巡鴻>
+ <絎巡>
+ <P>XMLc帥若堺篁罕篏</P>
+ </絎巡>
+ <絎巡>
+ <P>腴九篁腓乗遵罘処炊</P>
+ </絎巡>
+ </絎巡鴻>
+ <筝激吾荀茫篋鴻>
+ <筝激吾荀茫篋>
+ <P>鴻</P>
+ </筝激吾荀茫篋>
+ </筝激吾荀茫篋鴻>
+ <馹劫丞>
+ <P>XML篏</P>
+ </馹劫丞>
+ </罐怨>
+
+ <罐怨>
+ <罐>罎膣≪潟吾潟</罐>
+ <罐潟若>S8821-76</罐潟若>
+ <綏ユ亥∞>
+ <荀腥綏ユ>120</荀腥綏ユ>
+ <絎膰上轡>6</絎膰上轡>
+ <綵荀腥綏ユ>32</綵荀腥綏ユ>
+ <綵絎膰上轡>2</綵絎膰上轡>
+ </綏ユ亥∞>
+ <篋絎鴻>
+ <篋絎>
+ <P><A href="http://www.goo.ne.jp">goo</A>罘純茯帥鴻帥</P>
+ </篋絎>
+ </篋絎鴻>
+ <絎巡鴻>
+ <絎巡>
+ <P>眼罎膣≪潟吾潟茯炊祉</P>
+ </絎巡>
+ </絎巡鴻>
+ <筝激吾荀茫篋鴻>
+ <筝激吾荀茫篋>
+ <P>冴сYahoo!莢桁筝</P>
+ </筝激吾荀茫篋>
+ </筝激吾荀茫篋鴻>
+ <馹劫丞>
+ <P>罎膣≪潟吾潟ц莎違с鐚荀茯炊誌</P>
+ </馹劫丞>
+ </罐怨>
+ </罐怨鴻>
+</怨>