No emmet at value part of property Fixes #34162

This commit is contained in:
Ramya Achutha Rao
2017-09-18 18:24:21 -07:00
parent b6e7279be4
commit 4571d387c9
3 changed files with 37 additions and 6 deletions

View File

@@ -211,6 +211,29 @@ suite('Tests for Expand Abbreviations (CSS)', () => {
});
});
});
test('Invalid locations for abbreviations in css', () => {
const scssContentsNoExpand = `
m10
.boo {
margin: 10px;
.hoo {
background:
}
}
`
return withRandomFileEditor(scssContentsNoExpand, 'scss', (editor, doc) => {
editor.selections = [
new Selection(1, 3, 1, 3), // outside rule
new Selection(5, 15, 5, 15) // in the value part of property value
];
return expandEmmetAbbreviation(null).then(() => {
assert.equal(editor.document.getText(), scssContentsNoExpand);
return Promise.resolve();
});
});
});
});
suite('Tests for Wrap with Abbreviations', () => {