File tree Expand file tree Collapse file tree
src/test/java/org/htmlunit/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 */
1515package org .htmlunit .javascript ;
1616
17+ import org .htmlunit .ScriptException ;
1718import org .htmlunit .WebDriverTestCase ;
1819import org .htmlunit .junit .BrowserRunner ;
1920import org .htmlunit .junit .BrowserRunner .Alerts ;
21+ import org .htmlunit .junit .BrowserRunner .HtmlUnitNYI ;
22+ import org .htmlunit .junit .BrowserRunner .NotYetImplemented ;
2023import org .junit .Test ;
2124import 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 "
You can’t perform that action at this time.
0 commit comments