@@ -227,32 +227,32 @@ suite('Tests for Expand Abbreviations (HTML)', () => {
227227 } ) ;
228228 } ) ;
229229
230- test ( 'Expand css when inside style tag in completion list (HTML)' , ( ) => {
231- const abbreviation = 'm10' ;
232- const expandedText = 'margin: 10px;' ;
233-
234- return withRandomFileEditor ( htmlContents , 'html' , ( editor , doc ) => {
235- editor . selection = new Selection ( 13 , 3 , 13 , 6 ) ;
236- const cancelSrc = new CancellationTokenSource ( ) ;
237- const completionPromise = completionProvider . provideCompletionItems ( editor . document , editor . selection . active , cancelSrc . token ) ;
238- if ( ! completionPromise ) {
239- assert . equal ( 1 , 2 , `Problem with expanding m10` ) ;
240- return Promise . resolve ( ) ;
241- }
242-
243- return completionPromise . then ( ( completionList : CompletionList ) => {
244- if ( ! completionList . items || ! completionList . items . length ) {
245- assert . equal ( 1 , 2 , `Problem with expanding m10` ) ;
246- return Promise . resolve ( ) ;
247- }
248- const emmetCompletionItem = completionList . items [ 0 ] ;
249- assert . equal ( emmetCompletionItem . label , expandedText , `Label of completion item doesnt match.` ) ;
250- assert . equal ( ( < string > emmetCompletionItem . documentation || '' ) . replace ( / \| / g, '' ) , expandedText , `Docs of completion item doesnt match.` ) ;
251- assert . equal ( emmetCompletionItem . filterText , abbreviation , `FilterText of completion item doesnt match.` ) ;
252- return Promise . resolve ( ) ;
253- } ) ;
254- } ) ;
255- } ) ;
230+ // test('Expand css when inside style tag in completion list (HTML)', () => {
231+ // const abbreviation = 'm10';
232+ // const expandedText = 'margin: 10px;';
233+
234+ // return withRandomFileEditor(htmlContents, 'html', (editor, doc) => {
235+ // editor.selection = new Selection(13, 3, 13, 6);
236+ // const cancelSrc = new CancellationTokenSource();
237+ // const completionPromise = completionProvider.provideCompletionItems(editor.document, editor.selection.active, cancelSrc.token);
238+ // if (!completionPromise) {
239+ // assert.equal(1, 2, `Problem with expanding m10`);
240+ // return Promise.resolve();
241+ // }
242+
243+ // return completionPromise.then((completionList: CompletionList) => {
244+ // if (!completionList.items || !completionList.items.length) {
245+ // assert.equal(1, 2, `Problem with expanding m10`);
246+ // return Promise.resolve();
247+ // }
248+ // const emmetCompletionItem = completionList.items[0];
249+ // assert.equal(emmetCompletionItem.label, expandedText, `Label of completion item doesnt match.`);
250+ // assert.equal((<string>emmetCompletionItem.documentation || '').replace(/\|/g, ''), expandedText, `Docs of completion item doesnt match.`);
251+ // assert.equal(emmetCompletionItem.filterText, abbreviation, `FilterText of completion item doesnt match.`);
252+ // return Promise.resolve();
253+ // });
254+ // });
255+ // });
256256
257257 test ( 'No expanding when html is excluded in the settings' , ( ) => {
258258 return workspace . getConfiguration ( 'emmet' ) . update ( 'excludeLanguages' , [ 'html' ] ) . then ( ( ) => {
0 commit comments