Skip to content

Commit 995988b

Browse files
committed
fix format
1 parent 1ce77ce commit 995988b

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

src/test/java/org/htmlunit/WebDriverTestCase.java

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -167,24 +167,24 @@ public abstract class WebDriverTestCase extends WebTestCase {
167167

168168
private static final String LOG_EX_FUNCTION =
169169
" function logEx(e) {\n"
170-
+ " let toStr = null;\n"
171-
+ " if (toStr === null && e instanceof EvalError) { toStr = ''; }\n"
172-
+ " if (toStr === null && e instanceof RangeError) { toStr = ''; }\n"
173-
+ " if (toStr === null && e instanceof ReferenceError) { toStr = ''; }\n"
174-
+ " if (toStr === null && e instanceof SyntaxError) { toStr = ''; }\n"
175-
+ " if (toStr === null && e instanceof TypeError) { toStr = ''; }\n"
176-
+ " if (toStr === null && e instanceof URIError) { toStr = ''; }\n"
177-
+ " if (toStr === null && e instanceof AggregateError) { toStr = '/AggregateError'; }\n"
178-
+ " if (toStr === null && typeof InternalError == 'function' "
179-
+ "&& e instanceof InternalError) { toStr = '/InternalError'; }\n"
180-
+ " if (toStr === null) {\n"
181-
+ " let rx = /\\[object (.*)\\]/;\n"
182-
+ " toStr = Object.prototype.toString.call(e);\n"
183-
+ " let match = rx.exec(toStr);\n"
184-
+ " if (match != null) { toStr = '/' + match[1]; }\n"
185-
+ " }"
186-
+ " log(e.name + toStr);\n"
187-
+ "}\n";
170+
+ " let toStr = null;\n"
171+
+ " if (toStr === null && e instanceof EvalError) { toStr = ''; }\n"
172+
+ " if (toStr === null && e instanceof RangeError) { toStr = ''; }\n"
173+
+ " if (toStr === null && e instanceof ReferenceError) { toStr = ''; }\n"
174+
+ " if (toStr === null && e instanceof SyntaxError) { toStr = ''; }\n"
175+
+ " if (toStr === null && e instanceof TypeError) { toStr = ''; }\n"
176+
+ " if (toStr === null && e instanceof URIError) { toStr = ''; }\n"
177+
+ " if (toStr === null && e instanceof AggregateError) { toStr = '/AggregateError'; }\n"
178+
+ " if (toStr === null && typeof InternalError == 'function' "
179+
+ "&& e instanceof InternalError) { toStr = '/InternalError'; }\n"
180+
+ " if (toStr === null) {\n"
181+
+ " let rx = /\\[object (.*)\\]/;\n"
182+
+ " toStr = Object.prototype.toString.call(e);\n"
183+
+ " let match = rx.exec(toStr);\n"
184+
+ " if (match != null) { toStr = '/' + match[1]; }\n"
185+
+ " }"
186+
+ " log(e.name + toStr);\n"
187+
+ " }\n";
188188

189189
/**
190190
* Function used in many tests.

0 commit comments

Comments
 (0)