fix(ShadowCss): support [attr="value with space"]

fixes #6249
This commit is contained in:
Victor Berchet
2016-09-26 09:55:05 -07:00
committed by Chuck Jazdzewski
parent 2dd399658d
commit bd012efcc4
2 changed files with 22 additions and 7 deletions

View File

@ -91,6 +91,7 @@ export function main() {
expect(s('one[attr*="value"] {}', 'a')).toEqual('one[attr*="value"][a] {}');
expect(s('one[attr|="value"] {}', 'a')).toEqual('one[attr|="value"][a] {}');
expect(s('one[attr~="value"] {}', 'a')).toEqual('one[attr~="value"][a] {}');
expect(s('one[attr="va lue"] {}', 'a')).toEqual('one[attr="va lue"][a] {}');
expect(s('one[attr] {}', 'a')).toEqual('one[attr][a] {}');
expect(s('[is="one"] {}', 'a')).toEqual('[is="one"][a] {}');
});