fix data-aksrt-video 属性
This commit is contained in:
@@ -171,6 +171,14 @@ test('lazySizes has one auto_fun integration owner and loader boots main once',
|
||||
assert.match(read('assets/js/pay-vip.js'), /document\.createElement\("img"\)/);
|
||||
});
|
||||
|
||||
test('widget video init flag stays out of the AksrtVideoPlayer attribute namespace', () => {
|
||||
const widgets = read('assets/widgets/frontend.js');
|
||||
// data-aksrt-video 是 video-player.js 的自动初始化选择器:小工具容器若带上
|
||||
// 该属性,会被再挂一个无源播放器(黑条 + 遮罩叠在 DPlayer 上)。
|
||||
assert.doesNotMatch(widgets, /dataset\.aksrtVideo\s*=/);
|
||||
assert.match(widgets, /once\(el, 'WidgetVideo'\)/);
|
||||
});
|
||||
|
||||
test('post lists have no second lazy switch and keep legacy fallback thumbnails', () => {
|
||||
const config = read('inc/helpers/posts-renderer/config.php');
|
||||
const postData = read('inc/helpers/posts-renderer/post-data.php');
|
||||
|
||||
Reference in New Issue
Block a user