File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/test/java/org/htmlunit/libraries Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -97,17 +97,18 @@ private void doTest(final String filename) throws Exception {
97
97
private void verify (final Duration maxWaitTime , final WebElement textArea ) throws Exception {
98
98
final long maxWait = System .currentTimeMillis () + maxWaitTime .toMillis ();
99
99
100
- String value = "nyi" ;
100
+ String result = "nyi" ;
101
101
while (System .currentTimeMillis () < maxWait ) {
102
- value = textArea .getDomProperty ("value" );
102
+ final String value = textArea .getDomProperty ("value" );
103
103
if (value != null && value .startsWith ("data:image/png;base64," )) {
104
+ result = value ;
104
105
break ;
105
106
}
106
107
107
- Thread .sleep (50 );
108
+ Thread .sleep (100 );
108
109
}
109
110
110
- Assertions .assertTrue (value .startsWith (getExpectedAlerts ()[0 ]),
111
- "'" + value + "' does not start with '" + getExpectedAlerts ()[0 ] + "'" );
111
+ Assertions .assertTrue (result .startsWith (getExpectedAlerts ()[0 ]),
112
+ "'" + result + "' does not start with '" + getExpectedAlerts ()[0 ] + "'" );
112
113
}
113
114
}
You can’t perform that action at this time.
0 commit comments