Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_43355755
engine
提交
9e1f3318
E
engine
项目概览
weixin_43355755
/
engine
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
9e1f3318
编写于
7月 20, 2021
作者:
Y
Yegor
提交者:
GitHub
7月 20, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[web] disable golden check for Noto-rendered text (#27612)
上级
651dd485
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
24 addition
and
16 deletion
+24
-16
lib/web_ui/test/canvaskit/canvas_golden_test.dart
lib/web_ui/test/canvaskit/canvas_golden_test.dart
+24
-16
未找到文件。
lib/web_ui/test/canvaskit/canvas_golden_test.dart
浏览文件 @
9e1f3318
...
...
@@ -15,6 +15,12 @@ import 'package:web_engine_tester/golden_tester.dart';
import
'common.dart'
;
// TODO(yjbanov): tests that render using Noto are not hermetic, as those fonts
// come from fonts.google.com, where fonts can change any time.
// These tests are skipped.
// https://github.com/flutter/flutter/issues/86432
const
bool
kIssue86432Exists
=
true
;
void
main
(
)
{
internalBootstrapBrowserTest
(()
=>
testMain
);
}
...
...
@@ -307,28 +313,28 @@ void testMain() {
outerText:
'次 化 刃 直 入 令'
,
innerText:
''
,
paragraphLocale:
const
ui
.
Locale
(
'zh'
,
'CN'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - paragraph locale zh_TW'
,
()
async
{
await
testTextStyle
(
'paragraph locale zh_TW'
,
outerText:
'次 化 刃 直 入 令'
,
innerText:
''
,
paragraphLocale:
const
ui
.
Locale
(
'zh'
,
'TW'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - paragraph locale ja'
,
()
async
{
await
testTextStyle
(
'paragraph locale ja'
,
outerText:
'次 化 刃 直 入 令'
,
innerText:
''
,
paragraphLocale:
const
ui
.
Locale
(
'ja'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - paragraph locale ko'
,
()
async
{
await
testTextStyle
(
'paragraph locale ko'
,
outerText:
'次 化 刃 直 入 令'
,
innerText:
''
,
paragraphLocale:
const
ui
.
Locale
(
'ko'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - color'
,
()
async
{
await
testTextStyle
(
'color'
,
color:
const
ui
.
Color
(
0xFF009900
));
...
...
@@ -428,28 +434,28 @@ void testMain() {
innerText:
'次 化 刃 直 入 令'
,
outerText:
''
,
locale:
const
ui
.
Locale
(
'zh'
,
'CN'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - locale zh_TW'
,
()
async
{
await
testTextStyle
(
'locale zh_TW'
,
innerText:
'次 化 刃 直 入 令'
,
outerText:
''
,
locale:
const
ui
.
Locale
(
'zh'
,
'TW'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - locale ja'
,
()
async
{
await
testTextStyle
(
'locale ja'
,
innerText:
'次 化 刃 直 入 令'
,
outerText:
''
,
locale:
const
ui
.
Locale
(
'ja'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - locale ko'
,
()
async
{
await
testTextStyle
(
'locale ko'
,
innerText:
'次 化 刃 直 入 令'
,
outerText:
''
,
locale:
const
ui
.
Locale
(
'ko'
));
});
}
,
skip:
kIssue86432Exists
);
test
(
'text styles - background'
,
()
async
{
await
testTextStyle
(
'background'
,
...
...
@@ -565,7 +571,7 @@ void testMain() {
outerText:
'欢'
,
innerText:
''
,
);
});
}
,
skip:
kIssue86432Exists
);
test
(
'text style - symbols'
,
()
async
{
// One of the CJK fonts loaded in one of the tests above also contains
...
...
@@ -578,7 +584,7 @@ void testMain() {
outerText:
'← ↑ → ↓ '
,
innerText:
''
,
);
});
}
,
skip:
kIssue86432Exists
);
test
(
'text style - foreground/background/color do not leak across paragraphs'
,
...
...
@@ -846,12 +852,14 @@ Future<void> testSampleText(String language, String text,
paragraphHeight
=
paragraph
.
height
;
return
recorder
.
endRecording
();
});
if
(!
kIssue86432Exists
)
{
await
matchPictureGolden
(
'canvaskit_sample_text_
$language
.png'
,
picture
,
region:
ui
.
Rect
.
fromLTRB
(
0
,
0
,
testWidth
,
paragraphHeight
+
20
),
write:
write
,
);
}
}
typedef
ParagraphFactory
=
CkParagraph
Function
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录