chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -16,9 +16,9 @@
|
||||
|
||||
import { getImageDisplayAttribute } from '../../src/utils/image/get-image-display-attribute';
|
||||
|
||||
// 测试套件
|
||||
// Test Suite
|
||||
describe('getImageDisplayAttribute', () => {
|
||||
// 测试用例:长横图
|
||||
// Test case: Long horizontal graph
|
||||
it('should return cover attributes for a wide image', () => {
|
||||
const contentWidth = 500;
|
||||
const result = getImageDisplayAttribute(600, 100, contentWidth);
|
||||
@@ -29,7 +29,7 @@ describe('getImageDisplayAttribute', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// 测试用例:长竖图
|
||||
// Test Case: Long Vertical Diagram
|
||||
it('should return cover attributes for a tall image', () => {
|
||||
const contentWidth = 500;
|
||||
const result = getImageDisplayAttribute(100, 600, contentWidth);
|
||||
@@ -40,7 +40,7 @@ describe('getImageDisplayAttribute', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// 测试用例:等比展示图
|
||||
// Test Case: Symmetric Display Diagram
|
||||
it('should return proportional attributes for an image', () => {
|
||||
const contentWidth = 500;
|
||||
const result = getImageDisplayAttribute(240, 240, contentWidth);
|
||||
@@ -51,7 +51,7 @@ describe('getImageDisplayAttribute', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// 测试用例:中长横图
|
||||
// Test Case: Medium and Long Horizontal Graphs
|
||||
it('should return proportional attributes for a medium-wide image', () => {
|
||||
const contentWidth = 500;
|
||||
const result = getImageDisplayAttribute(500, 250, contentWidth);
|
||||
@@ -62,7 +62,7 @@ describe('getImageDisplayAttribute', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// 测试用例:小尺寸图
|
||||
// Test Case: Small Size Diagram
|
||||
it('should return actual dimensions for a small image', () => {
|
||||
const contentWidth = 500;
|
||||
const result = getImageDisplayAttribute(200, 150, contentWidth);
|
||||
@@ -73,5 +73,5 @@ describe('getImageDisplayAttribute', () => {
|
||||
});
|
||||
});
|
||||
|
||||
// ...更多测试用例
|
||||
// ... More test cases
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user