summaryrefslogtreecommitdiffstats
path: root/devtools/client/storage/test/browser_storage_indexeddb_duplicate_names.js
blob: 8316d22c542476e0799a32784b63286d73cd302b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// Test to verify that indexedDBs with duplicate names (different types / paths)
// work as expected.

"use strict";

add_task(function* () {
  const TESTPAGE = MAIN_DOMAIN + "storage-indexeddb-duplicate-names.html";

  setPermission(TESTPAGE, "indexedDB");

  yield openTabAndSetupStorage(TESTPAGE);

  yield checkState([
    [
      ["indexedDB", "http://test1.example.org"], [
        "idb1 (default)",
        "idb1 (temporary)",
        "idb1 (persistent)",
        "idb2 (default)",
        "idb2 (temporary)",
        "idb2 (persistent)"
      ]
    ]
  ]);

  yield finishTests();
});