| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
gTestfile = 'definition-1.js'; |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
var SECTION = "function/definition-1.js"; |
| 18 |
var VERSION = "JS_12"; |
| 19 |
startTest(); |
| 20 |
var TITLE = "Regression test for 111284"; |
| 21 |
|
| 22 |
writeHeaderToLog( SECTION + " "+ TITLE); |
| 23 |
|
| 24 |
f1 = function() { return "passed!" } |
| 25 |
|
| 26 |
function f2() { f3 = function() { return "passed!" }; return f3(); } |
| 27 |
|
| 28 |
new TestCase( SECTION, |
| 29 |
'f1 = function() { return "passed!" }; f1()', |
| 30 |
"passed!", |
| 31 |
f1() ); |
| 32 |
|
| 33 |
new TestCase( SECTION, |
| 34 |
'function f2() { f3 = function { return "passed!" }; return f3() }; f2()', |
| 35 |
"passed!", |
| 36 |
f2() ); |
| 37 |
|
| 38 |
new TestCase( SECTION, |
| 39 |
'f3()', |
| 40 |
"passed!", |
| 41 |
f3() ); |
| 42 |
|
| 43 |
test(); |
| 44 |
|