Skip to content

Commit d66d5a0

Browse files
committed
fix test case
1 parent 7b7b313 commit d66d5a0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/test/java/org/htmlunit/javascript/FunctionsTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
*/
1515
package org.htmlunit.javascript;
1616

17+
import org.htmlunit.ScriptException;
1718
import org.htmlunit.WebDriverTestCase;
1819
import org.htmlunit.junit.BrowserRunner;
1920
import org.htmlunit.junit.BrowserRunner.Alerts;
21+
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
22+
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
2023
import org.junit.Test;
2124
import org.junit.runner.RunWith;
2225

@@ -126,6 +129,7 @@ public void boundFunction_toString() throws Exception {
126129
*/
127130
@Test
128131
@Alerts({"foo = undefined", "1"})
132+
@NotYetImplemented
129133
public void conditionallyCreatedFunction() throws Exception {
130134
final String html
131135
= "<html><head></head>\n"
@@ -157,7 +161,7 @@ public void conditionallyCreatedFunctionStrict() throws Exception {
157161
+ LOG_TITLE_FUNCTION
158162
+ " try {\n"
159163
+ " log('foo = ' + foo);\n"
160-
+ " } catch(e) { log('error ' + e); }\n"
164+
+ " } catch(e) { log('error'); }\n"
161165
+ " if (true) {\n"
162166
+ " log(foo());\n"
163167
+ " function foo() { return 1; }\n"

0 commit comments

Comments
 (0)