vendor dependencies with dep

This commit is contained in:
dhax 2017-09-25 20:20:52 +02:00
parent 93d8310491
commit 1384296a47
2712 changed files with 965742 additions and 0 deletions

27
vendor/github.com/vanng822/css/charset_parser_test.go generated vendored Normal file
View file

@ -0,0 +1,27 @@
package css
import (
"github.com/gorilla/css/scanner"
"github.com/stretchr/testify/assert"
"testing"
)
func TestCharsetDoubleQ(t *testing.T) {
css := Parse(`@charset "UTF-8";`)
assert.Equal(t, css.CssRuleList[0].Style.SelectorText, "\"UTF-8\"")
assert.Equal(t, css.CssRuleList[0].Type, CHARSET_RULE)
}
func TestCharsetSingleQ(t *testing.T) {
css := Parse(`@charset 'iso-8859-15';`)
assert.Equal(t, css.CssRuleList[0].Style.SelectorText, "'iso-8859-15'")
assert.Equal(t, css.CssRuleList[0].Type, CHARSET_RULE)
}
func TestCharsetIgnore(t *testing.T) {
css := parseCharset(scanner.New(` 'iso-8859-15'`))
assert.Nil(t, css)
}