| // Copyright 2020 The ChromiumOS Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| /** |
| * @fileoverview Test suite for local storage. |
| */ |
| |
| import {lib} from '../index.js'; |
| import {storageApiTest} from './lib_storage_test_util.js'; |
| |
| /** |
| * Initialize the storage fakes & APIs. |
| */ |
| beforeEach(function() { |
| // Make sure other/previous tests don't leak. |
| globalThis.sessionStorage.clear(); |
| |
| this.storage = new lib.Storage.Local(globalThis.sessionStorage); |
| }); |
| |
| storageApiTest(); |