Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
676ff7d6
V
vscode
项目概览
xxadev
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
676ff7d6
编写于
6月 26, 2017
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Restore mocha --browser
上级
eafce452
变更
8
显示空白变更内容
内联
并排
Showing
8 changed file
with
22 addition
and
13 deletion
+22
-13
src/vs/base/test/common/filters.perf.data.d.ts
src/vs/base/test/common/filters.perf.data.d.ts
+5
-0
src/vs/base/test/common/filters.perf.data.js
src/vs/base/test/common/filters.perf.data.js
+7
-1
src/vs/base/test/common/filters.perf.test.ts
src/vs/base/test/common/filters.perf.test.ts
+1
-1
src/vs/platform/extensionManagement/test/common/extensionEnablementService.test.ts
...Management/test/common/extensionEnablementService.test.ts
+1
-4
src/vs/platform/instantiation/test/common/instantiationServiceMock.ts
...orm/instantiation/test/common/instantiationServiceMock.ts
+1
-4
test/browser.js
test/browser.js
+3
-2
test/index.html
test/index.html
+2
-1
tslint.json
tslint.json
+2
-0
未找到文件。
src/vs/base/test/common/filters.perf.data.d.ts
0 → 100644
浏览文件 @
676ff7d6
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
export
const
data
:
string
[];
\ No newline at end of file
src/vs/base/test/common/filters.perf.data.js
on
→
src/vs/base/test/common/filters.perf.data.js
浏览文件 @
676ff7d6
因为 它太大了无法显示 source diff 。你可以改为
查看blob
。
src/vs/base/test/common/filters.perf.test.ts
浏览文件 @
676ff7d6
...
...
@@ -6,8 +6,8 @@
// import * as assert from 'assert';
import
*
as
filters
from
'
vs/base/common/filters
'
;
import
{
data
}
from
'
./filters.perf.data
'
;
const
data
=
<
string
[]
>
require
.
__$__nodeRequire
(
require
.
toUrl
(
'
./filters.perf.data.json
'
));
const
patterns
=
[
'
cci
'
,
'
ida
'
,
'
pos
'
,
'
CCI
'
,
'
enbled
'
,
'
callback
'
,
'
gGame
'
,
'
cons
'
];
const
_enablePerf
=
false
;
...
...
src/vs/platform/extensionManagement/test/common/extensionEnablementService.test.ts
浏览文件 @
676ff7d6
...
...
@@ -5,6 +5,7 @@
'
use strict
'
;
import
*
as
assert
from
'
assert
'
;
import
*
as
sinon
from
'
sinon
'
;
import
{
IExtensionManagementService
,
IExtensionEnablementService
,
DidUninstallExtensionEvent
}
from
'
vs/platform/extensionManagement/common/extensionManagement
'
;
import
{
ExtensionEnablementService
}
from
'
vs/platform/extensionManagement/common/extensionEnablementService
'
;
import
{
TestInstantiationService
}
from
'
vs/platform/instantiation/test/common/instantiationServiceMock
'
;
...
...
@@ -14,10 +15,6 @@ import { IStorageService } from 'vs/platform/storage/common/storage';
import
{
IWorkspaceContextService
}
from
'
vs/platform/workspace/common/workspace
'
;
import
{
IEnvironmentService
}
from
'
vs/platform/environment/common/environment
'
;
// TODO@Sandeep layer breaker: cannot depend on node modules from /common/ and sinon is a node module
// tslint:disable-next-line:import-patterns
import
*
as
sinon
from
'
sinon
'
;
// TODO@Sandeep layer breaker: cannot depend on /workbench/ from /platform/
// tslint:disable-next-line:import-patterns
import
{
TestContextService
}
from
'
vs/workbench/test/workbenchTestServices
'
;
...
...
src/vs/platform/instantiation/test/common/instantiationServiceMock.ts
浏览文件 @
676ff7d6
...
...
@@ -5,16 +5,13 @@
'
use strict
'
;
import
*
as
sinon
from
'
sinon
'
;
import
{
TPromise
}
from
'
vs/base/common/winjs.base
'
;
import
*
as
types
from
'
vs/base/common/types
'
;
import
{
InstantiationService
}
from
'
vs/platform/instantiation/common/instantiationService
'
;
import
{
ServiceCollection
}
from
'
vs/platform/instantiation/common/serviceCollection
'
;
import
{
ServiceIdentifier
}
from
'
vs/platform/instantiation/common/instantiation
'
;
// TODO@Sandeep layer breaker: cannot depend on node modules from /common/ and sinon is a node module
// tslint:disable-next-line:import-patterns
import
*
as
sinon
from
'
sinon
'
;
interface
IServiceMock
<
T
>
{
id
:
ServiceIdentifier
<
T
>
;
service
:
any
;
...
...
test/browser.js
浏览文件 @
676ff7d6
...
...
@@ -21,11 +21,12 @@ var app = express();
app
.
use
(
'
/out
'
,
express
.
static
(
path
.
join
(
root
,
'
out
'
)));
app
.
use
(
'
/test
'
,
express
.
static
(
path
.
join
(
root
,
'
test
'
)));
app
.
use
(
'
/node_modules
'
,
express
.
static
(
path
.
join
(
root
,
'
node_modules
'
)));
app
.
get
(
'
/
'
,
function
(
req
,
res
)
{
glob
(
'
**/
test/**/*
.js
'
,
{
glob
(
'
**/
vs/{base,platform,editor}/**/test/{common,browser}/**/*.test
.js
'
,
{
cwd
:
path
.
join
(
root
,
'
out
'
),
ignore
:
[
'
**/test/{node,electron*}/**/*.js
'
]
//
ignore: ['**/test/{node,electron*}/**/*.js']
},
function
(
err
,
files
)
{
if
(
err
)
{
return
res
.
sendStatus
(
500
);
}
...
...
test/index.html
浏览文件 @
676ff7d6
...
...
@@ -18,7 +18,8 @@
require
.
config
({
baseUrl
:
'
/out
'
,
paths
:
{
assert
:
'
/test/assert.js
'
assert
:
'
/test/assert.js
'
,
sinon
:
'
/node_modules/sinon/pkg/sinon-1.17.7.js
'
}
});
...
...
tslint.json
浏览文件 @
676ff7d6
...
...
@@ -116,6 +116,7 @@
"target"
:
"**/vs/platform/*/test/common/**"
,
"restrictions"
:
[
"assert"
,
"sinon"
,
"vs/nls"
,
"**/vs/base/common/**"
,
"**/vs/platform/*/common/**"
,
...
...
@@ -136,6 +137,7 @@
"target"
:
"**/vs/platform/*/test/browser/**"
,
"restrictions"
:
[
"assert"
,
"sinon"
,
"vs/nls"
,
"**/vs/base/{common,browser}/**"
,
"**/vs/platform/*/{common,browser}/**"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录