diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2023-04-20 14:29:13 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2023-04-25 16:53:00 +0200 |
commit | 9f1c31f57d21cfc68520166b5b2cbf9aaff17898 (patch) | |
tree | dc8d5264eb1d32334cad743864b2c6586e65913d /tests/auto/qml/qqmlxmlhttprequest | |
parent | 0ca564ed40e353a7b0851ccc7b81975b194f1cda (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.qml | 6 |
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() { |