@@ -334,35 +334,23 @@ define(function (require, exports, module) {
334334 expect ( providers ) . toNotBe ( null ) ;
335335 expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html5" , "html1" , "html2" , "html3" , "html4" ] ) ;
336336
337- setAtLocation ( CodeInspection . _PREF_FIRST_ONLY , true ) ;
338- providers = CodeInspection . getProvidersForPath ( "index.html" ) ;
339- expect ( providers ) . toNotBe ( null ) ;
340- expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html5" ] ) ;
341-
342337 setAtLocation ( CodeInspection . _PREF_PREFER_PROVIDERS , [ "html19" , "html100" ] ) ;
343- setAtLocation ( CodeInspection . _PREF_FIRST_ONLY , true ) ;
344338 providers = CodeInspection . getProvidersForPath ( "index.html" ) ;
345339 expect ( providers ) . toNotBe ( null ) ;
346- expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html1" ] ) ;
340+ expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html1" , "html2" , "html3" , "html4" , "html5" ] ) ;
347341
348342 setAtLocation ( CodeInspection . _PREF_PREFERRED_ONLY , true ) ;
349343 providers = CodeInspection . getProvidersForPath ( "test.html" ) ;
350344 expect ( providers ) . toEqual ( [ ] ) ;
351345
352346 setAtLocation ( CodeInspection . _PREF_PREFER_PROVIDERS , [ "html2" , "html1" ] ) ;
353347 setAtLocation ( CodeInspection . _PREF_PREFERRED_ONLY , true ) ;
354- setAtLocation ( CodeInspection . _PREF_FIRST_ONLY , false ) ;
355348 providers = CodeInspection . getProvidersForPath ( "c:/temp/another.html" ) ;
356349 expect ( providers ) . toNotBe ( null ) ;
357350 expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html2" , "html1" ] ) ;
358351
359352 setAtLocation ( CodeInspection . _PREF_PREFER_PROVIDERS , undefined ) ;
360353 setAtLocation ( CodeInspection . _PREF_PREFERRED_ONLY , undefined ) ;
361- setAtLocation ( CodeInspection . _PREF_FIRST_ONLY , true ) ;
362- providers = CodeInspection . getProvidersForPath ( "test/index.html" ) ;
363- expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html1" ] ) ;
364-
365- setAtLocation ( CodeInspection . _PREF_FIRST_ONLY , undefined ) ;
366354 providers = CodeInspection . getProvidersForPath ( "index.html" ) ;
367355 expect ( providers ) . toNotBe ( null ) ;
368356 expect ( _ . pluck ( providers , "name" ) ) . toEqual ( [ "html1" , "html2" , "html3" , "html4" , "html5" ] ) ;
0 commit comments