@@ -176,9 +176,9 @@ define(function (require, exports, module) {
176176 } ) ;
177177
178178 it ( "should registry update cache registry locally" , async function ( ) {
179- localStorage . removeItem ( ExtensionManager . EXTENSION_REGISTRY_LOCAL_STORAGE_KEY ) ;
179+ await ExtensionManager . _removeCachedRegistry ( ) ;
180180 await awaitsForDone ( ExtensionManager . downloadRegistry ( true ) , "fetching registry" ) ;
181- expect ( localStorage . getItem ( ExtensionManager . EXTENSION_REGISTRY_LOCAL_STORAGE_KEY ) ) . not . toBeNull ( ) ;
181+ expect ( await ExtensionManager . _getCachedRegistry ( ) ) . not . toBeNull ( ) ;
182182 } ) ;
183183
184184 it ( "should fail if it can't access the registry" , async function ( ) {
@@ -419,7 +419,7 @@ define(function (require, exports, module) {
419419 var model ;
420420
421421 beforeEach ( async function ( ) {
422- localStorage . removeItem ( ExtensionManager . EXTENSION_REGISTRY_LOCAL_STORAGE_KEY ) ;
422+ await ExtensionManager . _removeCachedRegistry ( ) ;
423423 mockRegistry = JSON . parse ( mockRegistryForSearch ) ;
424424 model = new ExtensionManagerViewModel . RegistryViewModel ( ) ;
425425 await awaitsForDone ( model . initialize ( ) , "model initialization" ) ;
@@ -515,7 +515,7 @@ define(function (require, exports, module) {
515515 var model ;
516516
517517 beforeEach ( async function ( ) {
518- localStorage . removeItem ( ExtensionManager . EXTENSION_REGISTRY_LOCAL_STORAGE_KEY ) ;
518+ await ExtensionManager . _removeCachedRegistry ( ) ;
519519 mockRegistry = JSON . parse ( mockRegistryThemesText ) ;
520520 model = new ExtensionManagerViewModel . ThemesViewModel ( ) ;
521521 await awaitsForDone ( model . initialize ( ) , "model initialization" ) ;
0 commit comments