File tree 3 files changed +23
-2
lines changed
test/java/org/htmlunit/javascript 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 27
27
28
28
<htmlunitcssparser .version>3.0.0</htmlunitcssparser .version>
29
29
<htmlunitneko .version>3.1.0-SNAPSHOT</htmlunitneko .version>
30
- <htmlunitcorejs .version>3.0.0 </htmlunitcorejs .version>
30
+ <htmlunitcorejs .version>3.1.0-SNAPSHOT </htmlunitcorejs .version>
31
31
<htmlunitxpath .version>3.0.0</htmlunitxpath .version>
32
32
33
33
<htmlunitdriver .version>4.8.3-SNAPSHOT</htmlunitdriver .version>
Original file line number Diff line number Diff line change 13
13
<a href="http://code.google.com/p/googleappengine/issues/detail?id=4784"> is solved.
14
14
</action>
15
15
<action type="fix" dev="rbri" issue="578">
16
- Calls to hasOwnProperty() and getOwnPropertyDescriptor now takes care of form elements accessable from
16
+ Calls to hasOwnProperty() and getOwnPropertyDescriptor now taking care of form elements accessible from
17
17
the form object.
18
18
</action>
19
19
<action type="fix" dev="rbri">
Original file line number Diff line number Diff line change @@ -120,4 +120,25 @@ public void boundFunction_toString() throws Exception {
120
120
121
121
loadPageVerifyTitle2 (html );
122
122
}
123
+
124
+ /**
125
+ * @throws Exception if the test fails
126
+ */
127
+ @ Test
128
+ @ Alerts ("foo = undefined" )
129
+ public void conditionallyCreatedFunction () throws Exception {
130
+ final String html
131
+ = "<html><head></head>\n "
132
+ + "<body>\n "
133
+ + "<script>\n "
134
+ + LOG_TITLE_FUNCTION
135
+ + " log('foo = ' + foo);\n "
136
+ + " if (false) {\n "
137
+ + " function foo() { return 1; }\n "
138
+ + " }\n "
139
+ + "</script>\n "
140
+ + "</body></html>" ;
141
+
142
+ loadPageVerifyTitle2 (html );
143
+ }
123
144
}
You can’t perform that action at this time.
0 commit comments