Compare commits
356 Commits
research/t
...
master
Author | SHA1 | Date |
---|---|---|
|
dac6341348 | 2 weeks ago |
|
b7f58f9963 | 2 weeks ago |
|
835c271d11 | 3 weeks ago |
|
f3f24621c3 | 3 weeks ago |
|
e35e089fb8 | 2 months ago |
|
e54a6eaf0e | 2 months ago |
|
17c4dfd321 | 2 months ago |
|
28b0750e6d | 2 months ago |
|
6ab23c0bd3 | 2 months ago |
|
304eca0684 | 2 months ago |
|
064340bac4 | 2 months ago |
|
c4f9b6ab0f | 2 months ago |
|
50568d50b8 | 2 months ago |
|
3f3072a382 | 2 months ago |
|
43ac6f9b1a | 2 months ago |
|
afa712fc93 | 2 months ago |
|
51fc78227f | 2 months ago |
|
65d4baf0a4 | 2 months ago |
|
fc847c9ee3 | 2 months ago |
|
71fa452dc9 | 2 months ago |
|
e3899c6962 | 2 months ago |
|
b617898f23 | 2 months ago |
|
04d503911c | 2 months ago |
|
9098fd9c2b | 2 months ago |
|
a8aeed2a32 | 2 months ago |
|
3c91972edb | 2 months ago |
|
4e3eed5094 | 2 months ago |
|
ccdae39675 | 2 months ago |
|
085c6328bb | 2 months ago |
|
18b1f64d8a | 2 months ago |
|
831ef87d35 | 2 months ago |
|
cbaaad43d0 | 2 months ago |
|
0ddb922130 | 2 months ago |
|
ebf96fb845 | 2 months ago |
|
92d1302f71 | 2 months ago |
|
f6940f04de | 2 months ago |
|
a0dc9822c1 | 2 months ago |
|
999aee2ae8 | 2 months ago |
|
a354a72ee5 | 2 months ago |
|
e4136d4ec2 | 2 months ago |
|
315a689901 | 3 months ago |
|
f366c28a50 | 3 months ago |
|
ae4c0bff61 | 3 months ago |
|
486db8cc5c | 3 months ago |
|
f8469a4ffb | 3 months ago |
|
55612d6b01 | 3 months ago |
|
47b705ed64 | 3 months ago |
|
c51dec6e65 | 3 months ago |
|
ddc4156b37 | 3 months ago |
|
995145fa4f | 3 months ago |
|
9e3bbaa872 | 3 months ago |
|
5c3d224610 | 3 months ago |
|
201258ca98 | 3 months ago |
|
c6c0caeebd | 3 months ago |
|
edecbe0c02 | 3 months ago |
|
5406efcdb8 | 3 months ago |
|
60f50c5f76 | 3 months ago |
|
eeb7b6f5ae | 3 months ago |
|
370b226c91 | 3 months ago |
|
d6916c4f48 | 3 months ago |
|
f562dc17dc | 3 months ago |
|
5529014af9 | 3 months ago |
|
240591cb99 | 3 months ago |
|
d791c7d09e | 3 months ago |
|
aec558e98f | 3 months ago |
|
3d0f0fd5ab | 3 months ago |
|
6dd4ea67ba | 3 months ago |
|
2f2d743669 | 4 months ago |
|
ad160661ef | 4 months ago |
|
ed4954af28 | 4 months ago |
|
7e5a5febe6 | 4 months ago |
|
24a6253b12 | 4 months ago |
|
a88cd1f8d0 | 4 months ago |
|
1dc4256416 | 4 months ago |
|
103a5068da | 4 months ago |
|
40b664c511 | 4 months ago |
|
a274513cdb | 4 months ago |
|
97d6987aae | 4 months ago |
|
9536cf974d | 4 months ago |
|
9ee8c8cd8a | 4 months ago |
|
80cda54d95 | 4 months ago |
|
eb4a3e5f4b | 4 months ago |
|
8c24e5d353 | 4 months ago |
|
ab0a2c7d01 | 4 months ago |
|
51e1831760 | 4 months ago |
|
b9f247fd99 | 4 months ago |
|
3448ddf422 | 4 months ago |
|
fa87bf8175 | 4 months ago |
|
2ef56cd93d | 4 months ago |
|
504a65e04e | 4 months ago |
|
9a269e5f5a | 4 months ago |
|
8ce815c7fd | 4 months ago |
|
ded0c6ca0b | 4 months ago |
|
7414c1302b | 4 months ago |
|
b3b96840b3 | 4 months ago |
|
b7cc0b4d5a | 4 months ago |
|
03be191bf0 | 4 months ago |
|
6a15a83734 | 4 months ago |
|
041e7d8707 | 4 months ago |
|
2eda6cd069 | 4 months ago |
|
fce1c89ac5 | 4 months ago |
|
9d1d4ca5ed | 4 months ago |
|
99e282996d | 4 months ago |
|
b94d2da2c8 | 4 months ago |
|
afa62a9743 | 4 months ago |
|
0409431be2 | 4 months ago |
|
4f5bfe9967 | 4 months ago |
|
4412c8cc12 | 4 months ago |
|
03ed736f4f | 4 months ago |
|
41070d94c1 | 4 months ago |
|
6078e5031c | 4 months ago |
|
403e0f10cf | 4 months ago |
|
4f6215e203 | 4 months ago |
|
e43cf72a86 | 4 months ago |
|
420a89c41f | 5 months ago |
|
0a328f5807 | 5 months ago |
|
f20898f8f5 | 5 months ago |
|
5c6564db22 | 5 months ago |
|
ad0c75d4d7 | 5 months ago |
|
2ca1c7bca0 | 5 months ago |
|
9bdefbc00c | 5 months ago |
|
5f18b11539 | 5 months ago |
|
0664def54e | 5 months ago |
|
dc40fc4231 | 5 months ago |
|
d20172e23d | 5 months ago |
|
f62d6ef118 | 5 months ago |
|
6fdb0ced94 | 5 months ago |
|
456fc07fd0 | 5 months ago |
|
8cf59fa5e0 | 5 months ago |
|
0d5656af05 | 5 months ago |
|
8df1568895 | 5 months ago |
|
868bc2650d | 5 months ago |
|
3109b6a6e6 | 5 months ago |
|
00a9ac9cb4 | 5 months ago |
|
af8f11c8b4 | 5 months ago |
|
2541b80dda | 5 months ago |
|
70398dc693 | 5 months ago |
|
fe88c68d4c | 5 months ago |
|
2ebeaea723 | 5 months ago |
|
ddfb42d603 | 5 months ago |
|
7628077495 | 5 months ago |
|
eba5b19c51 | 5 months ago |
|
9a47c14a1a | 5 months ago |
|
fd14436ef5 | 5 months ago |
|
d9c5c91f16 | 5 months ago |
|
0259ad5770 | 5 months ago |
|
dec3e9aa3d | 5 months ago |
|
4839754703 | 5 months ago |
|
7b56bad08c | 6 months ago |
|
de59128cd9 | 6 months ago |
|
51bc6e0a1e | 6 months ago |
|
f57f490911 | 6 months ago |
|
1c3f7487f8 | 6 months ago |
|
3b1803803b | 6 months ago |
|
0f7d3e273f | 6 months ago |
|
a18e7b58e2 | 6 months ago |
|
07b2b1371a | 6 months ago |
|
1667f4027c | 6 months ago |
|
1e192d1ab7 | 6 months ago |
|
03d67523e2 | 6 months ago |
|
71bccebb01 | 6 months ago |
|
ad1c582fa5 | 6 months ago |
|
8f43e2edd0 | 6 months ago |
|
90c334eb6b | 7 months ago |
|
b88df2cebe | 7 months ago |
|
91ce429bc4 | 7 months ago |
|
97a1326fbb | 7 months ago |
|
224adfb287 | 7 months ago |
|
b43a965129 | 7 months ago |
|
ab5ba86ad2 | 7 months ago |
|
2afc95338e | 7 months ago |
|
4992342fb4 | 7 months ago |
|
e08301be71 | 7 months ago |
|
972cb3e3a8 | 7 months ago |
|
a5f594f459 | 7 months ago |
|
af0fb62ed6 | 7 months ago |
|
d99be89566 | 7 months ago |
|
a1d6d677c9 | 7 months ago |
|
e158840ea2 | 7 months ago |
|
39b15b4d95 | 7 months ago |
|
0161e21fdd | 7 months ago |
|
7b9ac61899 | 7 months ago |
|
14353b915c | 7 months ago |
|
0395933470 | 7 months ago |
|
5a053e72ce | 7 months ago |
|
50477a38e8 | 7 months ago |
|
4d544143ee | 7 months ago |
|
1cc207c31c | 7 months ago |
|
df79823d5a | 7 months ago |
|
4c1e562b55 | 7 months ago |
|
1636d613b3 | 7 months ago |
|
4b0f0a951b | 7 months ago |
|
48e2ba0f9a | 7 months ago |
|
06435006a4 | 7 months ago |
|
f4d0d83e23 | 8 months ago |
|
5fb9c3a0f2 | 8 months ago |
|
34e92d0ab7 | 8 months ago |
|
deddfff869 | 8 months ago |
|
238ea0f7c2 | 8 months ago |
|
22e9daa70c | 8 months ago |
|
0a544c3d77 | 8 months ago |
|
a375d14791 | 8 months ago |
|
c2dd955f76 | 8 months ago |
|
60c26badc9 | 8 months ago |
|
21b31324e5 | 8 months ago |
|
d161133498 | 8 months ago |
|
b12fec6362 | 8 months ago |
|
5c0d4a81c9 | 8 months ago |
|
d3a97b3bfc | 8 months ago |
|
191175deea | 8 months ago |
|
ead8ffff91 | 8 months ago |
|
cc1364720c | 8 months ago |
|
270b1cd58b | 8 months ago |
|
902346f237 | 8 months ago |
|
2a77e6e8f5 | 8 months ago |
|
94c5b7a93d | 8 months ago |
|
d452f1b4dc | 8 months ago |
|
c0594d0d94 | 8 months ago |
|
504af4e069 | 8 months ago |
|
c89b353b52 | 8 months ago |
|
b6d47c5b86 | 8 months ago |
|
012115c61c | 8 months ago |
|
7c4b771af1 | 8 months ago |
|
4d41e71764 | 8 months ago |
|
702363ed00 | 8 months ago |
|
1d925a259c | 8 months ago |
|
6b4e1d2bb5 | 8 months ago |
|
454f8fb1a1 | 8 months ago |
|
17805ff4ff | 8 months ago |
|
993fbe3bf8 | 8 months ago |
|
ac1f441731 | 8 months ago |
|
a88db276d5 | 8 months ago |
|
b3acef3f4c | 8 months ago |
|
363869773d | 8 months ago |
|
a5802380dc | 8 months ago |
|
edf219cc89 | 8 months ago |
|
418e514ce8 | 8 months ago |
|
dd523e0492 | 8 months ago |
|
f0750f646f | 8 months ago |
|
4f842fffdd | 9 months ago |
|
6cba1eb920 | 9 months ago |
|
e45076d172 | 9 months ago |
|
c9b0e82ddb | 9 months ago |
|
73240b6e05 | 9 months ago |
|
93dd40d362 | 9 months ago |
|
b97ea33003 | 9 months ago |
|
cdec6f784f | 9 months ago |
|
8e32510ae7 | 9 months ago |
|
039ec622c4 | 9 months ago |
|
d5ee4e67f9 | 9 months ago |
|
feadcf975f | 9 months ago |
|
04a58a4a0b | 9 months ago |
|
26b2e1332f | 9 months ago |
|
e761ce76fe | 9 months ago |
|
77477f1bfd | 9 months ago |
|
cbdc63081f | 9 months ago |
|
41609ada7e | 9 months ago |
|
37fbf06103 | 9 months ago |
|
e100e4115e | 9 months ago |
|
ebbd7e6056 | 9 months ago |
|
3063da4874 | 9 months ago |
|
736980cb6e | 9 months ago |
|
bcedb54782 | 9 months ago |
|
bbd0315030 | 9 months ago |
|
2109dee89d | 9 months ago |
|
c8d04fabdb | 9 months ago |
|
d421c97306 | 9 months ago |
|
b6ad497984 | 9 months ago |
|
a6b9042a49 | 9 months ago |
|
6a17673c96 | 9 months ago |
|
45172096df | 9 months ago |
|
1c7689361d | 9 months ago |
|
572d216e64 | 9 months ago |
|
aaf988b6fe | 9 months ago |
|
aed35bbce6 | 9 months ago |
|
f9b75be7ea | 9 months ago |
|
eacdf59bed | 9 months ago |
|
91c81250fc | 9 months ago |
|
bb260ec29a | 9 months ago |
|
e4aafdc056 | 9 months ago |
|
9189327b54 | 9 months ago |
|
02361b2675 | 10 months ago |
|
1909ba3ef7 | 10 months ago |
|
8a57bcb479 | 10 months ago |
|
7bcfbc79d2 | 10 months ago |
|
304126a7f1 | 10 months ago |
|
fba8461b98 | 10 months ago |
|
8f41724169 | 10 months ago |
|
9ab289d8c3 | 10 months ago |
|
117d7fb659 | 10 months ago |
|
a26102950d | 10 months ago |
|
4e63a7ef55 | 10 months ago |
|
b74eba39f0 | 10 months ago |
|
e1593bc0fc | 10 months ago |
|
a33d9862b0 | 10 months ago |
|
2d7d80e719 | 10 months ago |
|
535f7128fe | 10 months ago |
|
fbe18a5138 | 10 months ago |
|
c22c5d43dd | 10 months ago |
|
7b407d4aa1 | 10 months ago |
|
1b4e6e43b1 | 10 months ago |
|
70e2f876da | 10 months ago |
|
d3ab2af3fd | 10 months ago |
|
067435dd1e | 10 months ago |
|
f00e4c5b6c | 10 months ago |
|
5bff3e170e | 10 months ago |
|
59a4e56d5f | 10 months ago |
|
9bb7c12459 | 10 months ago |
|
05f6c41996 | 10 months ago |
|
7fc5c63af9 | 10 months ago |
|
fba1af3f9b | 10 months ago |
|
12899d2e88 | 10 months ago |
|
3fe3b3d8e9 | 10 months ago |
|
3b060f11a2 | 10 months ago |
|
3f55e7a72b | 10 months ago |
|
a01610e2ab | 10 months ago |
|
e8f7a6c60b | 10 months ago |
|
74ccf2f8cc | 10 months ago |
|
f752b70990 | 11 months ago |
|
7beaeccebb | 11 months ago |
|
8dbbbd5e2c | 11 months ago |
|
2f199552b9 | 11 months ago |
|
212e8315f4 | 11 months ago |
|
b87665d7be | 11 months ago |
|
6378314e1b | 11 months ago |
|
877e71adfc | 11 months ago |
|
4a69f2f440 | 11 months ago |
|
e712b52428 | 11 months ago |
|
f0e91077bb | 11 months ago |
|
00a60c6a63 | 11 months ago |
|
083ad18c21 | 11 months ago |
|
3e44318c7e | 11 months ago |
|
8d4b0a67cc | 11 months ago |
|
36083aca64 | 11 months ago |
|
ca3659e5e3 | 11 months ago |
|
ecbc12af1b | 11 months ago |
|
6c0c17ac8b | 11 months ago |
|
de3dd7a48a | 11 months ago |
|
d19aa45390 | 12 months ago |
|
d03dff4c64 | 12 months ago |
|
9a244ce9cb | 12 months ago |
|
201d665d25 | 12 months ago |
|
5a7d85e730 | 12 months ago |
|
4e2d22a017 | 12 months ago |
|
930ebedede | 12 months ago |
|
7cb4f23775 | 12 months ago |
|
e8fa741855 | 12 months ago |
|
198d1fcb6f | 12 months ago |
|
7c95e8c1fb | 12 months ago |
|
9288b7bd0d | 12 months ago |
|
fdb47604f7 | 12 months ago |
|
af7e395d4a | 12 months ago |
|
42deeb4a67 | 12 months ago |
|
0537e0c4e9 | 12 months ago |
|
f4a5e2e574 | 12 months ago |
|
c87867cf2e | 12 months ago |
173 changed files with 2236 additions and 1691 deletions
@ -1,2 +1,2 @@ |
|||||||
PUPPETEER_DOWNLOAD_BASE_URL=https://cdn.npmmirror.com/binaries/chrome-for-testing |
puppeteer_download_host=https://npm.taobao.org/mirrors |
||||||
@fui:registry=https://npm.fineres.com/ |
@fui:registry=https://npm.fineres.com/ |
Binary file not shown.
Before Width: | Height: | Size: 1.0 MiB After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,51 +0,0 @@ |
|||||||
import type { Config } from "jest"; |
|
||||||
// import webpackConfig from "./webpack/webpack.dev";
|
|
||||||
|
|
||||||
export default { |
|
||||||
// testEnvironment: "<rootDir>/test/testEnvironmentJsdom.ts",
|
|
||||||
testEnvironment: "jsdom", |
|
||||||
testEnvironmentOptions: { |
|
||||||
// html: fs.readFileSync(path.join(__dirname, "test/index.html")),
|
|
||||||
}, |
|
||||||
testMatch: ["<rootDir>/src/**/*.test.js"], |
|
||||||
collectCoverage: false, |
|
||||||
collectCoverageFrom: ["src/**/*.js", "!src/**/*.test.js"], |
|
||||||
coverageDirectory: "coverage", |
|
||||||
coverageReporters: ["html", "json-summary", "cobertura"], |
|
||||||
|
|
||||||
reporters: [ |
|
||||||
"default", |
|
||||||
[ |
|
||||||
"jest-html-reporters", |
|
||||||
{ |
|
||||||
publicPath: "./html-report", |
|
||||||
openReport: true, |
|
||||||
}, |
|
||||||
], |
|
||||||
], |
|
||||||
|
|
||||||
transform: { |
|
||||||
"^.+\\.jsx?$": "babel-jest", |
|
||||||
"^.+\\.tsx?$": "babel-jest", |
|
||||||
}, |
|
||||||
|
|
||||||
preset: "jest-puppeteer", |
|
||||||
verbose: true, |
|
||||||
watchman: true, |
|
||||||
injectGlobals: true, |
|
||||||
globals: { |
|
||||||
"ts-jest": { |
|
||||||
tsconfig: "tsconfig.json", |
|
||||||
}, |
|
||||||
}, |
|
||||||
setupFilesAfterEnv: [ |
|
||||||
"<rootDir>/src/bundle.js", |
|
||||||
"<rootDir>/src/core/platform/web/config.js", |
|
||||||
"<rootDir>/../demo/i18n/i18n.cn.js", |
|
||||||
"<rootDir>/test/utils.js", |
|
||||||
"<rootDir>/test/prepare.js", |
|
||||||
], |
|
||||||
moduleNameMapper: { |
|
||||||
"@/(.*)$": "<rootDir>/src/$1", |
|
||||||
}, |
|
||||||
} as Config; |
|
@ -1,167 +0,0 @@ |
|||||||
// Karma configuration
|
|
||||||
// Generated on Mon Nov 27 2017 11:16:26 GMT+0800 (中国标准时间)
|
|
||||||
|
|
||||||
const os = require("os"); |
|
||||||
const webpackConfig = require("./webpack/webpack.dev") |
|
||||||
|
|
||||||
process.env.CHROME_BIN = require("puppeteer").executablePath(); |
|
||||||
|
|
||||||
module.exports = function (config) { |
|
||||||
config.set({ |
|
||||||
|
|
||||||
// base path that will be used to resolve all patterns (eg. files, exclude)
|
|
||||||
basePath: "", |
|
||||||
|
|
||||||
|
|
||||||
// frameworks to use
|
|
||||||
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
|
|
||||||
frameworks: ["webpack", "mocha", "chai"], |
|
||||||
|
|
||||||
|
|
||||||
// list of files / patterns to load in the browser
|
|
||||||
files: [].concat( |
|
||||||
webpackConfig.entry.fineui, |
|
||||||
["test/**/*.js", "src/**/*.test.js"] |
|
||||||
), |
|
||||||
|
|
||||||
exclude: [ |
|
||||||
"src/base/tree/ztree/jquery.ztree.core-3.5.js", |
|
||||||
"src/base/tree/ztree/jquery.ztree.excheck-3.5.js", |
|
||||||
"src/base/single/input/file.js", |
|
||||||
"src/case/loading/loading_pane.js", |
|
||||||
"src/base/tree/ztree/**/*.js", |
|
||||||
"src/case/tree/ztree/*.js", |
|
||||||
"src/widget/multitree/**/*.js", |
|
||||||
"src/widget/multiselecttree/**/*.js", |
|
||||||
"src/component/treevaluechooser/*.js" |
|
||||||
], |
|
||||||
|
|
||||||
|
|
||||||
// preprocess matching files before serving them to the browser
|
|
||||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
|
||||||
preprocessors: { |
|
||||||
"src/less/**/*.less": ["webpack"], |
|
||||||
"ui/**/*.less": ["webpack"], |
|
||||||
"src/*.js": ["webpack"], |
|
||||||
"src/**/!(*.test).js": ["webpack"], |
|
||||||
}, |
|
||||||
|
|
||||||
|
|
||||||
// test results reporter to use
|
|
||||||
// possible values: 'dots', 'progress'
|
|
||||||
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
|
|
||||||
reporters: ["progress", "coverage", "html"], |
|
||||||
|
|
||||||
browserDisconnectTolerance: 3, |
|
||||||
browserDisconnectTimeout : 300000, |
|
||||||
browserNoActivityTimeout : 300000, |
|
||||||
|
|
||||||
coverageReporter: { |
|
||||||
// specify a common output directory
|
|
||||||
dir: "coverage/", |
|
||||||
reporters: [ |
|
||||||
// reporters not supporting the `file` property
|
|
||||||
{ type: "html", subdir: "report-html" }, |
|
||||||
{ type: "json-summary", subdir: "report-json-summary" }, |
|
||||||
{ type: "cobertura", subdir: "report-cobertura"} |
|
||||||
] |
|
||||||
}, |
|
||||||
|
|
||||||
htmlReporter: { |
|
||||||
outputFile: "logs/test-report.html" |
|
||||||
}, |
|
||||||
|
|
||||||
|
|
||||||
// web server port
|
|
||||||
port: 9878, |
|
||||||
|
|
||||||
|
|
||||||
// enable / disable colors in the output (reporters and logs)
|
|
||||||
colors: true, |
|
||||||
|
|
||||||
|
|
||||||
// level of logging
|
|
||||||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
|
|
||||||
logLevel: config.LOG_INFO, |
|
||||||
|
|
||||||
loggers: [ |
|
||||||
{ |
|
||||||
type: "console" |
|
||||||
}, |
|
||||||
{ |
|
||||||
type: "file", |
|
||||||
filename: "logs/karma.log" |
|
||||||
} |
|
||||||
], |
|
||||||
|
|
||||||
|
|
||||||
// enable / disable watching file and executing tests whenever any file changes
|
|
||||||
autoWatch: true, |
|
||||||
|
|
||||||
// you can define custom flags
|
|
||||||
customLaunchers: { |
|
||||||
HeadlessChrome: { |
|
||||||
base: "ChromeHeadless", |
|
||||||
flags: [ |
|
||||||
"--no-sandbox", |
|
||||||
"--remote-debugging-port=9222", |
|
||||||
"--enable-logging", |
|
||||||
"--user-data-dir=./karma-chrome", |
|
||||||
"--v=1", |
|
||||||
"--disable-background-timer-throttling", |
|
||||||
"--disable-renderer-backgrounding", |
|
||||||
"--proxy-bypass-list=*", |
|
||||||
"--disable-web-security", |
|
||||||
"--disable-gpu", |
|
||||||
], |
|
||||||
}, |
|
||||||
ChromeDebug: { |
|
||||||
base: "Chrome", |
|
||||||
flags: [ |
|
||||||
"--no-sandbox", |
|
||||||
"--remote-debugging-port=9222", |
|
||||||
"--enable-logging", |
|
||||||
"--user-data-dir=./karma-chrome", |
|
||||||
"--v=1", |
|
||||||
"--disable-background-timer-throttling", |
|
||||||
"--disable-renderer-backgrounding", |
|
||||||
"--proxy-bypass-list=*", |
|
||||||
"--disable-web-security", |
|
||||||
"--disable-gpu", |
|
||||||
], |
|
||||||
}, |
|
||||||
}, |
|
||||||
|
|
||||||
// // start these browsers
|
|
||||||
// // available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
|
|
||||||
browsers: [os.platform() === "win32" |
|
||||||
&& parseFloat(os.release() |
|
||||||
.split(".") |
|
||||||
.slice(0, 2) |
|
||||||
.join(".")) <= 6.1 |
|
||||||
? "HeadlessChrome" : "ChromeHeadless"], |
|
||||||
|
|
||||||
retryLimit: 30, |
|
||||||
|
|
||||||
captureTimeout: 30000, |
|
||||||
|
|
||||||
// Continuous Integration mode
|
|
||||||
// if true, Karma captures browsers, runs the tests and exits
|
|
||||||
singleRun: true, |
|
||||||
|
|
||||||
// Concurrency level
|
|
||||||
// how many browser should be started simultaneous
|
|
||||||
concurrency: Infinity, |
|
||||||
|
|
||||||
webpack: webpackConfig, |
|
||||||
|
|
||||||
plugins: [ |
|
||||||
"karma-webpack", |
|
||||||
"karma-mocha", |
|
||||||
"karma-chai", |
|
||||||
"karma-chrome-launcher", |
|
||||||
"karma-coverage", |
|
||||||
"karma-htmlfile-reporter", |
|
||||||
] |
|
||||||
}); |
|
||||||
}; |
|
@ -1,31 +1,31 @@ |
|||||||
/** |
/** |
||||||
* Created by windy on 2018/01/23. |
* Created by windy on 2018/01/23. |
||||||
*/ |
*/ |
||||||
describe("dateFunctionTest", () => { |
describe("dateFunctionTest", function () { |
||||||
|
|
||||||
beforeAll(() => { |
before(function () { |
||||||
|
|
||||||
}); |
}); |
||||||
|
|
||||||
/** |
/** |
||||||
* test_author_windy |
* test_author_windy |
||||||
*/ |
*/ |
||||||
it("getWeekNumber", () => { |
it("getWeekNumber", function () { |
||||||
expect(BI.print(BI.getDate(2005, 0, 1), "%Y-%W")).toBe("2004-53"); |
expect(BI.print(BI.getDate(2005, 0, 1), "%Y-%W")).to.equal("2004-53"); |
||||||
expect(BI.print(BI.getDate(2005, 0, 2), "%Y-%W")).toBe("2004-53"); |
expect(BI.print(BI.getDate(2005, 0, 2), "%Y-%W")).to.equal("2004-53"); |
||||||
expect(BI.print(BI.getDate(2005, 11, 31), "%Y-%W")).toBe("2005-52"); |
expect(BI.print(BI.getDate(2005, 11, 31), "%Y-%W")).to.equal("2005-52"); |
||||||
expect(BI.print(BI.getDate(2007, 0, 1), "%Y-%W")).toBe("2007-01"); |
expect(BI.print(BI.getDate(2007, 0, 1), "%Y-%W")).to.equal("2007-01"); |
||||||
expect(BI.print(BI.getDate(2007, 11, 30), "%Y-%W")).toBe("2007-52"); |
expect(BI.print(BI.getDate(2007, 11, 30), "%Y-%W")).to.equal("2007-52"); |
||||||
expect(BI.print(BI.getDate(2007, 11, 31), "%Y-%W")).toBe("2008-01"); |
expect(BI.print(BI.getDate(2007, 11, 31), "%Y-%W")).to.equal("2008-01"); |
||||||
expect(BI.print(BI.getDate(2008, 0, 1), "%Y-%W")).toBe("2008-01"); |
expect(BI.print(BI.getDate(2008, 0, 1), "%Y-%W")).to.equal("2008-01"); |
||||||
expect(BI.print(BI.getDate(2008, 11, 28), "%Y-%W")).toBe("2008-52"); |
expect(BI.print(BI.getDate(2008, 11, 28), "%Y-%W")).to.equal("2008-52"); |
||||||
expect(BI.print(BI.getDate(2008, 11, 29), "%Y-%W")).toBe("2009-01"); |
expect(BI.print(BI.getDate(2008, 11, 29), "%Y-%W")).to.equal("2009-01"); |
||||||
expect(BI.print(BI.getDate(2008, 11, 30), "%Y-%W")).toBe("2009-01"); |
expect(BI.print(BI.getDate(2008, 11, 30), "%Y-%W")).to.equal("2009-01"); |
||||||
expect(BI.print(BI.getDate(2008, 11, 31), "%Y-%W")).toBe("2009-01"); |
expect(BI.print(BI.getDate(2008, 11, 31), "%Y-%W")).to.equal("2009-01"); |
||||||
expect(BI.print(BI.getDate(2009, 0, 1), "%Y-%W")).toBe("2009-01"); |
expect(BI.print(BI.getDate(2009, 0, 1), "%Y-%W")).to.equal("2009-01"); |
||||||
expect(BI.print(BI.getDate(2009, 11, 31), "%Y-%W")).toBe("2009-53"); |
expect(BI.print(BI.getDate(2009, 11, 31), "%Y-%W")).to.equal("2009-53"); |
||||||
expect(BI.print(BI.getDate(2010, 0, 1), "%Y-%W")).toBe("2009-53"); |
expect(BI.print(BI.getDate(2010, 0, 1), "%Y-%W")).to.equal("2009-53"); |
||||||
expect(BI.print(BI.getDate(2010, 0, 2), "%Y-%W")).toBe("2009-53"); |
expect(BI.print(BI.getDate(2010, 0, 2), "%Y-%W")).to.equal("2009-53"); |
||||||
expect(BI.print(BI.getDate(2010, 0, 3), "%Y-%W")).toBe("2009-53"); |
expect(BI.print(BI.getDate(2010, 0, 3), "%Y-%W")).to.equal("2009-53"); |
||||||
}); |
}); |
||||||
}); |
}); |
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue