Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xxadev
vscode
提交
d558497c
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,发现更多精彩内容 >>
提交
d558497c
编写于
8月 10, 2017
作者:
M
Martin Aeschlimann
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Colorizer tests: Accept tests when only scopes have changed
上级
9a9f97ce
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
53 addition
and
34 deletion
+53
-34
extensions/json/test/colorize-results/test_json.json
extensions/json/test/colorize-results/test_json.json
+27
-27
extensions/typescript/test/colorize-results/tsconfig_json.json
...sions/typescript/test/colorize-results/tsconfig_json.json
+6
-6
extensions/vscode-colorize-tests/src/colorizer.test.ts
extensions/vscode-colorize-tests/src/colorizer.test.ts
+20
-1
未找到文件。
extensions/json/test/colorize-results/test_json.json
浏览文件 @
d558497c
...
...
@@ -56,7 +56,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -67,7 +67,7 @@
},
{
"c"
:
"options"
,
"t"
:
"source.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -78,7 +78,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -133,7 +133,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -144,7 +144,7 @@
},
{
"c"
:
"myBool"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -155,7 +155,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -221,7 +221,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -232,7 +232,7 @@
},
{
"c"
:
"myInteger"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -243,7 +243,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -309,7 +309,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -320,7 +320,7 @@
},
{
"c"
:
"myString"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -331,7 +331,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -430,7 +430,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -441,7 +441,7 @@
},
{
"c"
:
"myNumber"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -452,7 +452,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -518,7 +518,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -529,7 +529,7 @@
},
{
"c"
:
"myNull"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -540,7 +540,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -606,7 +606,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -617,7 +617,7 @@
},
{
"c"
:
"myArray"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -628,7 +628,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -936,7 +936,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -947,7 +947,7 @@
},
{
"c"
:
"myObject"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -958,7 +958,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -1024,7 +1024,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -1035,7 +1035,7 @@
},
{
"c"
:
"foo"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -1046,7 +1046,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
extensions/typescript/test/colorize-results/tsconfig_json.json
浏览文件 @
d558497c
...
...
@@ -23,7 +23,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -34,7 +34,7 @@
},
{
"c"
:
"compilerOptions"
,
"t"
:
"source.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -45,7 +45,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -100,7 +100,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.begin.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -111,7 +111,7 @@
},
{
"c"
:
"target"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
@@ -122,7 +122,7 @@
},
{
"c"
:
"
\"
"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json punctuation.support.type.property-name.end.json"
,
"t"
:
"source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json s
tring.json s
upport.type.property-name.json punctuation.support.type.property-name.end.json"
,
"r"
:
{
"dark_plus"
:
"support.type.property-name: #9CDCFE"
,
"light_plus"
:
"support.type.property-name.json: #0451A5"
,
...
...
extensions/vscode-colorize-tests/src/colorizer.test.ts
浏览文件 @
d558497c
...
...
@@ -26,7 +26,16 @@ function assertUnchangedTokens(testFixurePath: string, done) {
assert
.
deepEqual
(
data
,
previousData
);
}
catch
(
e
)
{
fs
.
writeFileSync
(
resultPath
,
JSON
.
stringify
(
data
,
null
,
'
\t
'
),
{
flag
:
'
w
'
});
throw
e
;
if
(
Array
.
isArray
(
data
)
&&
Array
.
isArray
(
previousData
)
&&
data
.
length
===
previousData
.
length
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
let
d
=
data
[
i
];
let
p
=
previousData
[
i
];
if
(
d
.
c
!==
p
.
c
||
hasThemeChange
(
d
.
r
,
p
.
r
))
{
throw
e
;
}
}
}
// different but no tokenization ot color change: no failure
}
}
else
{
fs
.
writeFileSync
(
resultPath
,
JSON
.
stringify
(
data
,
null
,
'
\t
'
));
...
...
@@ -38,6 +47,16 @@ function assertUnchangedTokens(testFixurePath: string, done) {
},
done
);
}
function
hasThemeChange
(
d
:
any
,
p
:
any
)
:
boolean
{
let
keys
=
Object
.
keys
(
d
);
for
(
let
key
of
keys
)
{
if
(
d
[
key
]
!==
p
[
key
])
{
return
true
;
}
}
return
false
;
};
suite
(
'
colorization
'
,
()
=>
{
let
extensionsFolder
=
normalize
(
join
(
__dirname
,
'
../../
'
));
let
extensions
=
fs
.
readdirSync
(
extensionsFolder
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录