fix(i18n): chinese test suite (#38220)
* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
6a7a7e6d7d
commit
b3213fc892
@ -29,11 +29,11 @@ localeTitle: 使图片根据设备尺寸自如响应
|
||||
```yml
|
||||
tests:
|
||||
- text: '<code>img</code> 标签应设置 <code>max-width</code> 为 100%。'
|
||||
testString: 'assert(code.match(/max-width:\s*?100%;/g), ''<code>img</code> 标签应设置 <code>max-width</code> 为 100%。'');'
|
||||
testString: assert(code.match(/max-width:\s*?100%;/g));
|
||||
- text: '<code>img</code> 标签应设置 <code>display</code> 为 block。'
|
||||
testString: assert($('img').css('display') == 'block', '<code>img</code> 标签应设置 <code>display</code> 为 block。');
|
||||
testString: assert($('img').css('display') == 'block');
|
||||
- text: '<code>img</code> 标签应设置 <code>height</code> 为 auto。'
|
||||
testString: 'assert(code.match(/height:\s*?auto;/g), ''<code>img</code> 标签应设置 <code>height</code> 为 auto。'');'
|
||||
testString: assert(code.match(/height:\s*?auto;/g));
|
||||
|
||||
```
|
||||
|
||||
|
@ -28,9 +28,9 @@ localeTitle: 使排版根据设备尺寸自如响应
|
||||
```yml
|
||||
tests:
|
||||
- text: '<code>h2</code> 标签 <code>width</code> 应为 80vw。'
|
||||
testString: 'assert(code.match(/h2\s*?{\s*?width:\s*?80vw;\s*?}/g), ''<code>h2</code> 标签的 <code>width</code> 应为 80vw。'');'
|
||||
testString: assert(code.match(/h2\s*?{\s*?width:\s*?80vw;\s*?}/g));
|
||||
- text: '<code>p</code> 标签 <code>width</code> 应为 75vmin。'
|
||||
testString: 'assert(code.match(/p\s*?{\s*?width:\s*?75vmin;\s*?}/g), ''<code>p</code> 标签的 <code>width</code> 应为 75vmin。'');'
|
||||
testString: assert(code.match(/p\s*?{\s*?width:\s*?75vmin;\s*?}/g));
|
||||
|
||||
```
|
||||
|
||||
|
@ -34,9 +34,9 @@ localeTitle: 针对高分辨率屏幕应使用视网膜图片
|
||||
```yml
|
||||
tests:
|
||||
- text: '<code>img</code> 标签的 <code>width</code> 值应为 100px。'
|
||||
testString: assert($('img').css('width') == '100px', '<code>img</code> 标签的 <code>width</code> 值应为 100px。');
|
||||
testString: assert($('img').css('width') == '100px');
|
||||
- text: '<code>img</code> 标签的 <code>height</code> 值应为 100px。'
|
||||
testString: assert($('img').css('height') == '100px', '<code>img</code> 标签的 <code>height</code> 值应为 100px。');
|
||||
testString: assert($('img').css('height') == '100px');
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user