index.uts 2.7 KB
Newer Older
Y
yurj26 已提交
1 2 3 4
import { testArray } from './Array.uts'
import { testDate } from './Date.uts'
import { testString } from './String.uts'
import { testError } from './Error.uts'
杜庆泉's avatar
杜庆泉 已提交
5
import { testKeyWord } from './KeyWord.uts'
M
mahaifeng 已提交
6 7 8 9
import { testJSON } from './JSON.uts'
import { testJSONLarge } from './JSON_large.uts'
import { testUTSJSONObject } from './UTSJSONObject.uts'
import { testConsole } from './console.uts'
Y
yurj26 已提交
10 11 12 13 14 15
import { testNumber } from './Number.uts'
import { testMap } from './Map.uts'
import { testSet } from './Set.uts'
import { testOperators } from './Operators.uts'
import { testMath } from './Math.uts'
import { testRegExp } from './RegExp.uts'
16
import { testForLoop } from './ForLoop.uts'
lizhongyi_'s avatar
lizhongyi_ 已提交
17
import { testGlobal } from './Global.uts'
18
import { testType } from './Type.uts'
M
mahaifeng 已提交
19 20 21
export { Result } from './tests.uts'
import { testArrayBuffer } from './ArrayBuffer.uts'
import { testNativeCode } from './NativeCode.uts'
22
import { testPromise} from "./Promise.uts"
23 24
import { testEncoder} from "./TextEncoder.uts"
import { testDecoder} from "./TextDecoder.uts"
25
// Proxy、Reflect、Weakmap、WeakSet 不支持
Y
yurj26 已提交
26
export function runTests() : UTSJSONObject {
Y
yurj26 已提交
27 28 29 30 31 32 33 34 35 36 37 38
  const ArrayRes = testArray();
  const DateRes = testDate();
  const StringRes = testString();
  const ErrorRes = testError();
  const JsonRes = testJSON();
  const NumberRes = testNumber();
  const MapRes = testMap();
  const SetRes = testSet();
  const OperatorsRes = testOperators();
  const MathRes = testMath();
  const RegExpRes = testRegExp();
  const KeyWordRes = testKeyWord();
39
  const ForLoopRes = testForLoop();
lizhongyi_'s avatar
lizhongyi_ 已提交
40
  const GlobalRes = testGlobal();
M
mahaifeng 已提交
41
  const TypeRes = testType();
42
  const JSONLargeRes = testJSONLarge();
M
mahaifeng 已提交
43
  const consoleRes = testConsole();
44
  const UTSJSONObjectRes = testUTSJSONObject();
M
mahaifeng 已提交
45 46 47 48

  // #ifdef  APP-ANDROID || WEB
  const ArrayBufferRes = testArrayBuffer();
  // #endif
49
  const NativeCodeRes = testNativeCode();
M
mahaifeng 已提交
50 51 52
  const PromiseRes = testPromise();
  // #ifdef  APP-ANDROID || WEB
  const TextEncoderRes = testEncoder();
53
  const TextDecoderRes = testDecoder();
M
mahaifeng 已提交
54
  // #endif
Y
yurj26 已提交
55 56 57 58 59
  return {
    Array: ArrayRes,
    Date: DateRes,
    String: StringRes,
    Error: ErrorRes,
M
mahaifeng 已提交
60 61
    Json: JsonRes,
    JSONLarge: JSONLargeRes,
Y
yurj26 已提交
62 63 64 65 66 67 68
    Number: NumberRes,
    Map: MapRes,
    Set: SetRes,
    Operators: OperatorsRes,
    Math: MathRes,
    RegExp: RegExpRes,
    KeyWord: KeyWordRes,
69
    ForLoop: ForLoopRes,
M
mahaifeng 已提交
70 71 72 73 74
    Global: GlobalRes,
    Type: TypeRes,
    console: consoleRes,
    UTSJSONObject: UTSJSONObjectRes,
    // #ifdef  APP-ANDROID || WEB
M
mahaifeng 已提交
75
    ArrayBuffer: ArrayBufferRes,
76 77
    TextEncoder: TextEncoderRes,
    TextDecoder: TextDecoderRes,
M
mahaifeng 已提交
78
    // #endif
79
    NativeCode: NativeCodeRes,
80
    Primise: PromiseRes
Y
yurj26 已提交
81
  }
Y
yurj26 已提交
82
}