diff options
author | Maximilian Goldstein <max.goldstein@qt.io> | 2020-06-12 13:52:38 +0200 |
---|---|---|
committer | Maximilian Goldstein <max.goldstein@qt.io> | 2020-06-17 13:04:42 +0200 |
commit | 237a0e86c700116bfa55a1e1ee6fdabcc1ca5c9c (patch) | |
tree | 3784c29ca262b71ec7f070f8bd405efcee68baae /tests/auto/qml/qmlformat/data | |
parent | 3615c72b666633cef9045012bbb05d5372c35cdf (diff) |
qmlformat: Copy string literals verbatim
Copy string literals verbatim instead of reformatting them.
Fixes: QTBUG-84599
Change-Id: I36307eb30faa586f50cf0ce2660fb4e2686a3e4a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/qml/qmlformat/data')
-rw-r--r-- | tests/auto/qml/qmlformat/data/verbatimString.formatted.qml | 4 | ||||
-rw-r--r-- | tests/auto/qml/qmlformat/data/verbatimString.qml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlformat/data/verbatimString.formatted.qml b/tests/auto/qml/qmlformat/data/verbatimString.formatted.qml new file mode 100644 index 0000000000..fa7fbbe32b --- /dev/null +++ b/tests/auto/qml/qmlformat/data/verbatimString.formatted.qml @@ -0,0 +1,4 @@ +Item { + property string verbatim1: 'A "verbatim" string!' + property string verbatim2: "A 'verbatim' string\u2757" +} diff --git a/tests/auto/qml/qmlformat/data/verbatimString.qml b/tests/auto/qml/qmlformat/data/verbatimString.qml new file mode 100644 index 0000000000..15b080a87b --- /dev/null +++ b/tests/auto/qml/qmlformat/data/verbatimString.qml @@ -0,0 +1,4 @@ +Item { +property string verbatim1: 'A "verbatim" string!' +property string verbatim2: "A 'verbatim' string\u2757" +}
\ No newline at end of file |