-
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '6.0' of https://github.com/lucee/Lucee into 6.0
- Loading branch information
Showing
66 changed files
with
539 additions
and
391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
component extends="org.lucee.cfml.test.LuceeTestCase" { | ||
function beforeAll(){ | ||
variables.tempDir = getTempDirectory() & createUUID(); | ||
if ( !DirectoryExists( tempDir ) ){ | ||
DirectoryCreate( tempDir ); | ||
} | ||
|
||
variables.testFile = '#tempDir##server.separator.file#ldev0389.txt'; | ||
if ( !FileExists( variables.testFile ) ){ | ||
FileWrite( variables.testFile, "hello world"); | ||
} | ||
} | ||
|
||
function afterAll(){ | ||
if ( FileExists( variables.testFile ) ){ | ||
FileDelete( variables.testFile ); | ||
} | ||
if ( !DirectoryExists( tempDir ) ){ | ||
DirectoryDelete( tempDir ); | ||
} | ||
} | ||
|
||
function run( testResults , testBox ) { | ||
describe( "Test suite for LDEV-389", function() { | ||
it("Checking directoryList, callback function with no arguments", function( currentSpec ) { | ||
try { | ||
result = directoryList( variables.tempDir, true, "array", function(){ | ||
return true; | ||
}); | ||
} catch ( any e ){ | ||
result[1] = e.stacktrace; | ||
} | ||
expect( result[ 1 ] ).toBe( variables.testFile ); | ||
}); | ||
|
||
it("Checking directoryList, callback function with single argument", function( currentSpec ) { | ||
try { | ||
result = directoryList( variables.tempDir, true, "array", function(a){ | ||
return true; | ||
}); | ||
} catch ( any e ){ | ||
result[1] = e.stacktrace; | ||
} | ||
expect( result[ 1 ] ).toBe( variables.testFile ); | ||
}); | ||
|
||
// this isn't supported, throws UDF filter has too many arguments [2], should have at maximum 1 argument | ||
it(title="Checking directoryList, callback function with two arguments", skip=true, body=function( currentSpec ) { | ||
try { | ||
result = directoryList( variables.tempDir, true, "array", function( a, b ){ | ||
return true; | ||
}); | ||
} catch ( any e ){ | ||
result[1] = e.stacktrace; | ||
} | ||
expect( result[ 1 ] ).toBe( variables.testFile ); | ||
}); | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.