Skip to content

Commit fc4cc7b

Browse files
Copilotrbri
andauthored
Stabilize RequestTest constructorWithInit log ordering
Agent-Logs-Url: https://github.com/HtmlUnit/htmlunit/sessions/0dd452a0-f05e-464b-934c-dc260b71a140 Co-authored-by: rbri <2544132+rbri@users.noreply.github.com>
1 parent 8a1b118 commit fc4cc7b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/test/java/org/htmlunit/javascript/host/fetch/RequestTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ public void constructorSimple() throws Exception {
5555
* @throws Exception if the test fails
5656
*/
5757
@Test
58-
@Alerts({"POST", "v", "body", "false", "cors", "include", "no-cache", "manual", "", "strict-origin", "abc", "true", "true"})
58+
@Alerts({"POST", "v", "false", "cors", "include", "no-cache", "manual", "",
59+
"strict-origin", "abc", "true", "true", "body"})
5960
public void constructorWithInit() throws Exception {
6061
final String html = DOCTYPE_HTML
6162
+ "<html><head><script>\n"
@@ -77,7 +78,6 @@ public void constructorWithInit() throws Exception {
7778
+ " });\n"
7879
+ " log(req.method);\n"
7980
+ " log(req.headers.get('x-a'));\n"
80-
+ " req.text().then(t => log(t));\n"
8181
+ " log(req.bodyUsed);\n"
8282
+ " log(req.mode);\n"
8383
+ " log(req.credentials);\n"
@@ -88,6 +88,7 @@ public void constructorWithInit() throws Exception {
8888
+ " log(req.integrity);\n"
8989
+ " log(req.keepalive);\n"
9090
+ " log(req.signal === sig);\n"
91+
+ " req.text().then(t => log(t));\n"
9192
+ "</script></head><body></body></html>";
9293

9394
final WebDriver driver = loadPage2(html);

0 commit comments

Comments
 (0)