Compare commits
352 Commits
research/t
...
master
Author | SHA1 | Date |
---|---|---|
Aeolus.Zhang-张敬峥 | e35e089fb8 | 1 week ago |
superman | e54a6eaf0e | 1 week ago |
stan.yang-黄子丹阳 | 17c4dfd321 | 1 week ago |
stan.yang | 28b0750e6d | 1 week ago |
stan.yang | 6ab23c0bd3 | 1 week ago |
superman | 304eca0684 | 2 weeks ago |
superman | 064340bac4 | 2 weeks ago |
superman | c4f9b6ab0f | 2 weeks ago |
Aeolus.Zhang-张敬峥 | 50568d50b8 | 2 weeks ago |
superman | 3f3072a382 | 2 weeks ago |
stan.yang-黄子丹阳 | 43ac6f9b1a | 2 weeks ago |
Aeolus.Zhang-张敬峥 | afa712fc93 | 2 weeks ago |
superman | 51fc78227f | 2 weeks ago |
stan.yang | 65d4baf0a4 | 2 weeks ago |
stan.yang | fc847c9ee3 | 2 weeks ago |
stan.yang-黄子丹阳 | 71fa452dc9 | 2 weeks ago |
stan.yang | e3899c6962 | 2 weeks ago |
stan.yang | b617898f23 | 2 weeks ago |
stan.yang-黄子丹阳 | 04d503911c | 2 weeks ago |
stan.yang | 9098fd9c2b | 2 weeks ago |
stan.yang-黄子丹阳 | a8aeed2a32 | 2 weeks ago |
stan.yang | 3c91972edb | 2 weeks ago |
stan.yang | 4e3eed5094 | 2 weeks ago |
superman | ccdae39675 | 3 weeks ago |
superman | 085c6328bb | 3 weeks ago |
superman | 18b1f64d8a | 3 weeks ago |
superman | 831ef87d35 | 3 weeks ago |
superman | cbaaad43d0 | 3 weeks ago |
superman | 0ddb922130 | 3 weeks ago |
superman | ebf96fb845 | 3 weeks ago |
superman | 92d1302f71 | 3 weeks ago |
superman | f6940f04de | 3 weeks ago |
Zoey.Chen-陈泽语 | a0dc9822c1 | 3 weeks ago |
superman | 999aee2ae8 | 1 month ago |
superman | a354a72ee5 | 1 month ago |
superman | e4136d4ec2 | 1 month ago |
Aeolus.Zhang-张敬峥 | 315a689901 | 1 month ago |
superman | f366c28a50 | 1 month ago |
superman | ae4c0bff61 | 1 month ago |
Jimmy.Chai-柴嘉明 | 486db8cc5c | 1 month ago |
Jimmy.Chai | f8469a4ffb | 1 month ago |
Zoey.Chen-陈泽语 | 55612d6b01 | 1 month ago |
chenzeyu | 47b705ed64 | 1 month ago |
Xavier.Meng-孟宇翔 | c51dec6e65 | 1 month ago |
Xavier.Meng | ddc4156b37 | 1 month ago |
Xavier.Meng | 995145fa4f | 1 month ago |
superman | 9e3bbaa872 | 1 month ago |
superman | 5c3d224610 | 1 month ago |
superman | 201258ca98 | 1 month ago |
superman | c6c0caeebd | 1 month ago |
stan.yang-黄子丹阳 | edecbe0c02 | 1 month ago |
stan.yang | 5406efcdb8 | 1 month ago |
Dailer-刘荣歆 | 60f50c5f76 | 1 month ago |
superman | eeb7b6f5ae | 1 month ago |
Dailer-刘荣歆 | 370b226c91 | 1 month ago |
stan.yang-黄子丹阳 | d6916c4f48 | 1 month ago |
stan.yang | f562dc17dc | 1 month ago |
stan.yang | 5529014af9 | 1 month ago |
superman | 240591cb99 | 2 months ago |
superman | d791c7d09e | 2 months ago |
superman | aec558e98f | 2 months ago |
superman | 3d0f0fd5ab | 2 months ago |
superman | 6dd4ea67ba | 2 months ago |
superman | 2f2d743669 | 2 months ago |
superman | ad160661ef | 2 months ago |
superman | ed4954af28 | 2 months ago |
superman | 7e5a5febe6 | 2 months ago |
superman | 24a6253b12 | 2 months ago |
superman | a88cd1f8d0 | 2 months ago |
superman | 1dc4256416 | 2 months ago |
superman | 103a5068da | 2 months ago |
superman | 40b664c511 | 2 months ago |
superman | a274513cdb | 2 months ago |
superman | 97d6987aae | 2 months ago |
North-陈鼎 | 9536cf974d | 2 months ago |
pionpill | 9ee8c8cd8a | 3 months ago |
superman | 80cda54d95 | 3 months ago |
superman | eb4a3e5f4b | 3 months ago |
Zoey.Chen-陈泽语 | 8c24e5d353 | 3 months ago |
superman | ab0a2c7d01 | 3 months ago |
Aeolus.Zhang-张敬峥 | 51e1831760 | 3 months ago |
superman | b9f247fd99 | 3 months ago |
treecat-罗群 | 3448ddf422 | 3 months ago |
Treecat | fa87bf8175 | 3 months ago |
Kobi-蒋科斌 | 2ef56cd93d | 3 months ago |
Kobi | 504a65e04e | 3 months ago |
superman | 9a269e5f5a | 3 months ago |
superman | 8ce815c7fd | 3 months ago |
superman | ded0c6ca0b | 3 months ago |
superman | 7414c1302b | 3 months ago |
Aeolus.Zhang-张敬峥 | b3b96840b3 | 3 months ago |
superman | b7cc0b4d5a | 3 months ago |
superman | 03be191bf0 | 3 months ago |
superman | 6a15a83734 | 3 months ago |
stan.yang-黄子丹阳 | 041e7d8707 | 3 months ago |
stan.yang | 2eda6cd069 | 3 months ago |
stan.yang | fce1c89ac5 | 3 months ago |
superman | 9d1d4ca5ed | 3 months ago |
superman | 99e282996d | 3 months ago |
superman | b94d2da2c8 | 3 months ago |
superman | afa62a9743 | 3 months ago |
Aeolus.Zhang-张敬峥 | 0409431be2 | 3 months ago |
Rex-张岚奕 | 4f5bfe9967 | 3 months ago |
Rex | 4412c8cc12 | 3 months ago |
Rex | 03ed736f4f | 3 months ago |
superman | 41070d94c1 | 3 months ago |
Oliver.Ke-柯键基 | 6078e5031c | 3 months ago |
Oliver.Ke | 403e0f10cf | 3 months ago |
superman | 4f6215e203 | 3 months ago |
superman | e43cf72a86 | 3 months ago |
superman | 420a89c41f | 3 months ago |
superman | 0a328f5807 | 3 months ago |
superman | f20898f8f5 | 3 months ago |
superman | 5c6564db22 | 3 months ago |
superman | ad0c75d4d7 | 3 months ago |
Oliver.Ke-柯键基 | 2ca1c7bca0 | 3 months ago |
superman | 9bdefbc00c | 3 months ago |
superman | 5f18b11539 | 3 months ago |
Oliver.Ke | 0664def54e | 3 months ago |
superman | dc40fc4231 | 3 months ago |
superman | d20172e23d | 3 months ago |
Aeolus.Zhang-张敬峥 | f62d6ef118 | 3 months ago |
Rex-张岚奕 | 6fdb0ced94 | 3 months ago |
Rex | 456fc07fd0 | 3 months ago |
superman | 8cf59fa5e0 | 3 months ago |
superman | 0d5656af05 | 3 months ago |
superman | 8df1568895 | 3 months ago |
superman | 868bc2650d | 3 months ago |
superman | 3109b6a6e6 | 3 months ago |
Jimmy.Chai-柴嘉明 | 00a9ac9cb4 | 3 months ago |
Jimmy.Chai | af8f11c8b4 | 4 months ago |
Zoey.Chen-陈泽语 | 2541b80dda | 4 months ago |
chenzeyu | 70398dc693 | 4 months ago |
superman | fe88c68d4c | 4 months ago |
Aeolus.Zhang-张敬峥 | 2ebeaea723 | 4 months ago |
superman | ddfb42d603 | 4 months ago |
superman | 7628077495 | 4 months ago |
superman | eba5b19c51 | 4 months ago |
superman | 9a47c14a1a | 4 months ago |
superman | fd14436ef5 | 4 months ago |
Aeolus.Zhang-张敬峥 | d9c5c91f16 | 4 months ago |
superman | 0259ad5770 | 4 months ago |
Libq-李秉权 | dec3e9aa3d | 4 months ago |
superman | 4839754703 | 4 months ago |
Libq-李秉权 | 7b56bad08c | 4 months ago |
Jimmy.Chai-柴嘉明 | de59128cd9 | 4 months ago |
Jimmy.Chai | 51bc6e0a1e | 4 months ago |
superman | f57f490911 | 4 months ago |
superman | 1c3f7487f8 | 5 months ago |
Aeolus.Zhang-张敬峥 | 3b1803803b | 5 months ago |
superman | 0f7d3e273f | 5 months ago |
superman | a18e7b58e2 | 5 months ago |
Jimmy.Chai-柴嘉明 | 07b2b1371a | 5 months ago |
Jimmy.Chai | 1667f4027c | 5 months ago |
superman | 1e192d1ab7 | 5 months ago |
Aeolus.Zhang-张敬峥 | 03d67523e2 | 5 months ago |
superman | 71bccebb01 | 5 months ago |
superman | ad1c582fa5 | 5 months ago |
Zoey.Chen-陈泽语 | 8f43e2edd0 | 5 months ago |
Jimmy.Chai-柴嘉明 | 90c334eb6b | 5 months ago |
Jimmy.Chai | b88df2cebe | 5 months ago |
superman | 91ce429bc4 | 5 months ago |
Rex-张岚奕 | 97a1326fbb | 5 months ago |
Rex | 224adfb287 | 5 months ago |
Rex | b43a965129 | 5 months ago |
superman | ab5ba86ad2 | 5 months ago |
Jimmy.Chai-柴嘉明 | 2afc95338e | 5 months ago |
Dailer-刘荣歆 | 4992342fb4 | 5 months ago |
翠屏山最速下山传说 | e08301be71 | 5 months ago |
superman | 972cb3e3a8 | 5 months ago |
superman | a5f594f459 | 5 months ago |
superman | af0fb62ed6 | 5 months ago |
superman | d99be89566 | 5 months ago |
Jimmy.Chai-柴嘉明 | a1d6d677c9 | 5 months ago |
superman | e158840ea2 | 5 months ago |
Jimmy.Chai | 39b15b4d95 | 5 months ago |
Dailer-刘荣歆 | 0161e21fdd | 5 months ago |
Aeolus.Zhang-张敬峥 | 7b9ac61899 | 5 months ago |
Dailer-刘荣歆 | 14353b915c | 5 months ago |
翠屏山最速下山传说 | 0395933470 | 5 months ago |
翠屏山最速下山传说 | 5a053e72ce | 5 months ago |
Dailer-刘荣歆 | 50477a38e8 | 5 months ago |
Dailer-刘荣歆 | 4d544143ee | 5 months ago |
翠屏山最速下山传说 | 1cc207c31c | 5 months ago |
翠屏山最速下山传说 | df79823d5a | 5 months ago |
Jimmy.Chai-柴嘉明 | 4c1e562b55 | 5 months ago |
Aeolus.Zhang-张敬峥 | 1636d613b3 | 5 months ago |
Jimmy.Chai | 4b0f0a951b | 5 months ago |
Jimmy.Chai-柴嘉明 | 48e2ba0f9a | 5 months ago |
Jimmy.Chai | 06435006a4 | 5 months ago |
superman | f4d0d83e23 | 6 months ago |
superman | 5fb9c3a0f2 | 6 months ago |
superman | 34e92d0ab7 | 6 months ago |
superman | deddfff869 | 6 months ago |
superman | 238ea0f7c2 | 6 months ago |
superman | 22e9daa70c | 6 months ago |
superman | 0a544c3d77 | 6 months ago |
superman | a375d14791 | 6 months ago |
Dailer-刘荣歆 | c2dd955f76 | 6 months ago |
Dailer-刘荣歆 | 60c26badc9 | 6 months ago |
Jimmy.Chai-柴嘉明 | 21b31324e5 | 6 months ago |
Jimmy.Chai | d161133498 | 6 months ago |
Jimmy.Chai-柴嘉明 | b12fec6362 | 6 months ago |
Jimmy.Chai | 5c0d4a81c9 | 6 months ago |
Jimmy.Chai-柴嘉明 | d3a97b3bfc | 6 months ago |
Jimmy.Chai | 191175deea | 6 months ago |
Jimmy.Chai-柴嘉明 | ead8ffff91 | 6 months ago |
Jimmy.Chai | cc1364720c | 6 months ago |
Jimmy.Chai-柴嘉明 | 270b1cd58b | 6 months ago |
superman | 902346f237 | 6 months ago |
superman | 2a77e6e8f5 | 6 months ago |
superman | 94c5b7a93d | 6 months ago |
superman | d452f1b4dc | 6 months ago |
superman | c0594d0d94 | 6 months ago |
Jimmy.Chai | 504af4e069 | 6 months ago |
superman | c89b353b52 | 6 months ago |
superman | b6d47c5b86 | 6 months ago |
superman | 012115c61c | 6 months ago |
superman | 7c4b771af1 | 6 months ago |
Zoey.Chen-陈泽语 | 4d41e71764 | 6 months ago |
superman | 702363ed00 | 6 months ago |
superman | 1d925a259c | 6 months ago |
superman | 6b4e1d2bb5 | 6 months ago |
Zoey.Chen-陈泽语 | 454f8fb1a1 | 6 months ago |
chenzeyu | 17805ff4ff | 6 months ago |
superman | 993fbe3bf8 | 7 months ago |
superman | ac1f441731 | 7 months ago |
superman | a88db276d5 | 7 months ago |
Oliver.Chen-陈润桐 | b3acef3f4c | 7 months ago |
Oliver.Chen | 363869773d | 7 months ago |
superman | a5802380dc | 7 months ago |
superman | edf219cc89 | 7 months ago |
Oliver.Chen-陈润桐 | 418e514ce8 | 7 months ago |
Oliver.Chen | dd523e0492 | 7 months ago |
翠屏山最速下山传说 | f0750f646f | 7 months ago |
superman | 4f842fffdd | 7 months ago |
Dailer-刘荣歆 | 6cba1eb920 | 7 months ago |
Dailer-刘荣歆 | e45076d172 | 7 months ago |
Dailer-刘荣歆 | c9b0e82ddb | 7 months ago |
翠屏山最速下山传说 | 73240b6e05 | 7 months ago |
翠屏山最速下山传说 | 93dd40d362 | 7 months ago |
Oliver.Ke-柯键基 | b97ea33003 | 7 months ago |
Dailer-刘荣歆 | cdec6f784f | 7 months ago |
Oliver.Ke | 8e32510ae7 | 7 months ago |
Dailer-刘荣歆 | 039ec622c4 | 7 months ago |
翠屏山最速下山传说 | d5ee4e67f9 | 7 months ago |
superman | feadcf975f | 7 months ago |
Oliver.Chen-陈润桐 | 04a58a4a0b | 7 months ago |
Oliver.Chen | 26b2e1332f | 7 months ago |
superman | e761ce76fe | 7 months ago |
superman | 77477f1bfd | 7 months ago |
superman | cbdc63081f | 7 months ago |
Zoey.Chen-陈泽语 | 41609ada7e | 7 months ago |
chenzeyu | 37fbf06103 | 7 months ago |
superman | e100e4115e | 8 months ago |
superman | ebbd7e6056 | 8 months ago |
superman | 3063da4874 | 8 months ago |
superman | 736980cb6e | 8 months ago |
Zoey.Chen-陈泽语 | bcedb54782 | 8 months ago |
chenzeyu | bbd0315030 | 8 months ago |
Jimmy.Chai-柴嘉明 | 2109dee89d | 8 months ago |
Jimmy.Chai | c8d04fabdb | 8 months ago |
superman | d421c97306 | 8 months ago |
superman | b6ad497984 | 8 months ago |
superman | a6b9042a49 | 8 months ago |
superman | 6a17673c96 | 8 months ago |
superman | 45172096df | 8 months ago |
superman | 1c7689361d | 8 months ago |
superman | 572d216e64 | 8 months ago |
superman | aaf988b6fe | 8 months ago |
Xavier.Meng-孟宇翔 | aed35bbce6 | 8 months ago |
Xavier.Meng | f9b75be7ea | 8 months ago |
Jimmy.Chai-柴嘉明 | eacdf59bed | 8 months ago |
superman | 91c81250fc | 8 months ago |
fanglei-方磊 | bb260ec29a | 8 months ago |
方磊 | e4aafdc056 | 8 months ago |
superman | 9189327b54 | 8 months ago |
Jimmy.Chai | 02361b2675 | 8 months ago |
superman | 1909ba3ef7 | 8 months ago |
superman | 8a57bcb479 | 8 months ago |
superman | 7bcfbc79d2 | 8 months ago |
superman | 304126a7f1 | 8 months ago |
Zoey.Chen-陈泽语 | fba8461b98 | 8 months ago |
chenzeyu | 8f41724169 | 8 months ago |
Kevin.King-王凯壮 | 9ab289d8c3 | 8 months ago |
chenzeyu | 117d7fb659 | 8 months ago |
Dailer-刘荣歆 | a26102950d | 8 months ago |
superman | 4e63a7ef55 | 8 months ago |
fanglei-方磊 | b74eba39f0 | 8 months ago |
方磊 | e1593bc0fc | 8 months ago |
superman | a33d9862b0 | 8 months ago |
superman | 2d7d80e719 | 8 months ago |
superman | 535f7128fe | 8 months ago |
Kevin.King-王凯壮 | fbe18a5138 | 8 months ago |
Kevin.King-王凯壮 | c22c5d43dd | 8 months ago |
superman | 7b407d4aa1 | 8 months ago |
superman | 1b4e6e43b1 | 8 months ago |
superman | 70e2f876da | 8 months ago |
superman | d3ab2af3fd | 8 months ago |
Zoey.Chen-陈泽语 | 067435dd1e | 8 months ago |
chenzeyu | f00e4c5b6c | 8 months ago |
Dailer-刘荣歆 | 5bff3e170e | 9 months ago |
Dailer-刘荣歆 | 59a4e56d5f | 9 months ago |
superman | 9bb7c12459 | 9 months ago |
superman | 05f6c41996 | 9 months ago |
superman | 7fc5c63af9 | 9 months ago |
superman | fba1af3f9b | 9 months ago |
superman | 12899d2e88 | 9 months ago |
superman | 3fe3b3d8e9 | 9 months ago |
superman | 3b060f11a2 | 9 months ago |
superman | 3f55e7a72b | 9 months ago |
superman | a01610e2ab | 9 months ago |
Zoey.Chen-陈泽语 | e8f7a6c60b | 9 months ago |
chenzeyu | 74ccf2f8cc | 9 months ago |
Zoey.Chen-陈泽语 | f752b70990 | 9 months ago |
chenzeyu | 7beaeccebb | 9 months ago |
superman | 8dbbbd5e2c | 9 months ago |
superman | 2f199552b9 | 9 months ago |
superman | 212e8315f4 | 9 months ago |
superman | b87665d7be | 9 months ago |
Zoey.Chen-陈泽语 | 6378314e1b | 9 months ago |
Zoey.Chen-陈泽语 | 877e71adfc | 9 months ago |
chenzeyu | 4a69f2f440 | 9 months ago |
Zoey.Chen-陈泽语 | e712b52428 | 10 months ago |
chenzeyu | f0e91077bb | 10 months ago |
superman | 00a60c6a63 | 10 months ago |
superman | 083ad18c21 | 10 months ago |
Kevin.King-王凯壮 | 3e44318c7e | 10 months ago |
Kevin.King-王凯壮 | 8d4b0a67cc | 10 months ago |
superman | 36083aca64 | 10 months ago |
superman | ca3659e5e3 | 10 months ago |
superman | ecbc12af1b | 10 months ago |
superman | 6c0c17ac8b | 10 months ago |
superman | de3dd7a48a | 10 months ago |
superman | d19aa45390 | 10 months ago |
superman | d03dff4c64 | 10 months ago |
superman | 9a244ce9cb | 10 months ago |
superman | 201d665d25 | 10 months ago |
superman | 5a7d85e730 | 10 months ago |
superman | 4e2d22a017 | 10 months ago |
superman | 930ebedede | 10 months ago |
superman | 7cb4f23775 | 10 months ago |
superman | e8fa741855 | 10 months ago |
superman | 198d1fcb6f | 10 months ago |
Zoey.Chen-陈泽语 | 7c95e8c1fb | 10 months ago |
superman | 9288b7bd0d | 10 months ago |
chenzeyu | fdb47604f7 | 10 months ago |
superman | af7e395d4a | 10 months ago |
superman | 42deeb4a67 | 10 months ago |
superman | 0537e0c4e9 | 10 months ago |
Dailer-刘荣歆 | f4a5e2e574 | 10 months ago |
Dailer-刘荣歆 | c87867cf2e | 10 months ago |
172 changed files with 2223 additions and 1683 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/ |
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. |
||||
*/ |
||||
describe("dateFunctionTest", () => { |
||||
describe("dateFunctionTest", function () { |
||||
|
||||
beforeAll(() => { |
||||
before(function () { |
||||
|
||||
}); |
||||
|
||||
/** |
||||
* test_author_windy |
||||
*/ |
||||
it("getWeekNumber", () => { |
||||
expect(BI.print(BI.getDate(2005, 0, 1), "%Y-%W")).toBe("2004-53"); |
||||
expect(BI.print(BI.getDate(2005, 0, 2), "%Y-%W")).toBe("2004-53"); |
||||
expect(BI.print(BI.getDate(2005, 11, 31), "%Y-%W")).toBe("2005-52"); |
||||
expect(BI.print(BI.getDate(2007, 0, 1), "%Y-%W")).toBe("2007-01"); |
||||
expect(BI.print(BI.getDate(2007, 11, 30), "%Y-%W")).toBe("2007-52"); |
||||
expect(BI.print(BI.getDate(2007, 11, 31), "%Y-%W")).toBe("2008-01"); |
||||
expect(BI.print(BI.getDate(2008, 0, 1), "%Y-%W")).toBe("2008-01"); |
||||
expect(BI.print(BI.getDate(2008, 11, 28), "%Y-%W")).toBe("2008-52"); |
||||
expect(BI.print(BI.getDate(2008, 11, 29), "%Y-%W")).toBe("2009-01"); |
||||
expect(BI.print(BI.getDate(2008, 11, 30), "%Y-%W")).toBe("2009-01"); |
||||
expect(BI.print(BI.getDate(2008, 11, 31), "%Y-%W")).toBe("2009-01"); |
||||
expect(BI.print(BI.getDate(2009, 0, 1), "%Y-%W")).toBe("2009-01"); |
||||
expect(BI.print(BI.getDate(2009, 11, 31), "%Y-%W")).toBe("2009-53"); |
||||
expect(BI.print(BI.getDate(2010, 0, 1), "%Y-%W")).toBe("2009-53"); |
||||
expect(BI.print(BI.getDate(2010, 0, 2), "%Y-%W")).toBe("2009-53"); |
||||
expect(BI.print(BI.getDate(2010, 0, 3), "%Y-%W")).toBe("2009-53"); |
||||
it("getWeekNumber", function () { |
||||
expect(BI.print(BI.getDate(2005, 0, 1), "%Y-%W")).to.equal("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")).to.equal("2005-52"); |
||||
expect(BI.print(BI.getDate(2007, 0, 1), "%Y-%W")).to.equal("2007-01"); |
||||
expect(BI.print(BI.getDate(2007, 11, 30), "%Y-%W")).to.equal("2007-52"); |
||||
expect(BI.print(BI.getDate(2007, 11, 31), "%Y-%W")).to.equal("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")).to.equal("2008-52"); |
||||
expect(BI.print(BI.getDate(2008, 11, 29), "%Y-%W")).to.equal("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")).to.equal("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")).to.equal("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")).to.equal("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