san-html-cases
Advanced tools
Comparing version 3.14.4 to 3.14.5
{ | ||
"name": "san-html-cases", | ||
"version": "3.14.4", | ||
"version": "3.14.5", | ||
"description": "本仓库维护 San 在不同的使用场景下正确的 HTML 是什么。即 [san-ssr][san-ssr] 应当产出怎样的 HTML,以及 [san 核心][san] 正确反解依赖怎样的 HTML。因此本仓库就是 San HTML 的规范,并由 san 和 san-ssr 两个仓库的 e2e 测试来确保有效。", | ||
@@ -5,0 +5,0 @@ "scripts": { |
var san = require('san'); | ||
var Inner = san.defineComponent({ | ||
template: '<span title="nothing"><slot/></span>' | ||
template: '<span title="nothing" data-other="inner"><slot/></span>' | ||
}); | ||
@@ -6,0 +6,0 @@ |
@@ -8,2 +8,3 @@ it("Component Attribute Inherit precedence", function (done) { | ||
expect(span.getAttribute('data-t')).toBe('state:Hahaha'); | ||
expect(span.getAttribute('data-other')).toBe('inner'); | ||
@@ -10,0 +11,0 @@ myComponent.data.set('text', 'Wuwuwu'); |
Sorry, the diff of this file is not supported yet
258139
6548