aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlxmlhttprequest
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-04-20 14:29:13 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-04-25 16:53:00 +0200
commit9f1c31f57d21cfc68520166b5b2cbf9aaff17898 (patch)
treedc8d5264eb1d32334cad743864b2c6586e65913d /tests/auto/qml/qqmlxmlhttprequest
parent0ca564ed40e353a7b0851ccc7b81975b194f1cda (diff)
Split a long line in an XHR test using [].join()
This both makes the list of headers more readable and keeps the line of code within our 100-column limit. Change-Id: I7d53cca5beeeb9f6dd2b2a7c3311362750695d10 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlxmlhttprequest')
-rw-r--r--tests/auto/qml/qqmlxmlhttprequest/data/getAllResponseHeaders.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlxmlhttprequest/data/getAllResponseHeaders.qml b/tests/auto/qml/qqmlxmlhttprequest/data/getAllResponseHeaders.qml
index a9066093d4..9379e1c105 100644
--- a/tests/auto/qml/qqmlxmlhttprequest/data/getAllResponseHeaders.qml
+++ b/tests/auto/qml/qqmlxmlhttprequest/data/getAllResponseHeaders.qml
@@ -43,7 +43,11 @@ QtObject {
openedException = true;
}
- var headers = "connection: close\r\ncontent-type: text/html; charset=UTF-8\r\ntest-header: TestValue\r\nmultitest-header: TestValue, SecondTestValue\r\ncontent-length: 11";
+ var headers = [ "connection: close",
+ "content-type: text/html; charset=UTF-8",
+ "test-header: TestValue",
+ "multitest-header: TestValue, SecondTestValue",
+ "content-length: 11" ].join("\r\n");
// Test to the end
x.onreadystatechange = function() {