forked from ncsoft/Unreal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
//~ Application context required for the test - not specifying means it will be valid for any context | ||
// Test is suitable for running within the editor | ||
EditorContext = 0x00000001, | ||
// Test is suitable for running within the client | ||
ClientContext = 0x00000002, | ||
// Test is suitable for running within the server | ||
ServerContext = 0x00000004, | ||
// Test is suitable for running within a commandlet | ||
CommandletContext = 0x00000008, | ||
ApplicationContextMask = EditorContext | ClientContext | ServerContext | CommandletContext, | ||
//~ Features required for the test - not specifying means it is valid for any feature combination | ||
// Test requires a non-null RHI to run correctly | ||
NonNullRHI = 0x00000100, | ||
// Test requires a user instigated session | ||
RequiresUser = 0x00000200, | ||
FeatureMask = NonNullRHI | RequiresUser, | ||
//~ One-off flag to allow for fast disabling of tests without commenting code out | ||
// Temp disabled and never returns for a filter | ||
Disabled = 0x00010000, | ||
//~ Speed of the test | ||
//Super Fast Filter | ||
SmokeFilter = 0x01000000, | ||
//Engine Level Test | ||
EngineFilter = 0x02000000, | ||
//Product Level Test | ||
ProductFilter = 0x04000000, | ||
//Performance Test | ||
PerfFilter = 0x08000000, | ||
//Stress Test | ||
StressFilter = 0x10000000, | ||
*/ | ||
|
||
describe('Javascript_Test1', {TestFlags : 0x02000000 | 0x00000001 | 0x00000002}, function () { | ||
before(function () { | ||
console.log('before test1') | ||
}) | ||
after(function () { | ||
console.log('after test1') | ||
}) | ||
it('should fail properly',function () { | ||
throw new Error("1") | ||
}) | ||
describe('async', function () { | ||
before(function () { | ||
console.log('before inner') | ||
}) | ||
it('handle time out properly', function (done) { | ||
setTimeout(function () { | ||
done() | ||
},500) | ||
}) | ||
}) | ||
}) |