vendor dependencies with dep
This commit is contained in:
parent
93d8310491
commit
1384296a47
2712 changed files with 965742 additions and 0 deletions
16
vendor/github.com/vanng822/css/stylerule_test.go
generated
vendored
Normal file
16
vendor/github.com/vanng822/css/stylerule_test.go
generated
vendored
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
package css
|
||||
|
||||
import (
|
||||
"github.com/stretchr/testify/assert"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestStyleRuleText(t *testing.T) {
|
||||
sr := CSSStyleRule{}
|
||||
sr.SelectorText = ".box"
|
||||
sr.Styles = make(map[string]*CSSStyleDeclaration)
|
||||
sr.Styles["width"] = NewCSSStyleDeclaration("width", "10px", 0)
|
||||
sr.Styles["height"] = NewCSSStyleDeclaration("height", "100px", 0)
|
||||
|
||||
assert.Equal(t, sr.Text(), ".box {\nheight: 100px;\nwidth: 10px\n}")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue