summaryrefslogtreecommitdiffstats
path: root/toolkit/components/cleardata/tests/unit/test_basic.js
blob: 3634483ee4ac0cda21dddeb68ab9f3a740b621cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */

/**
 * Basic test for nsIClearDataService module.
 */

"use strict";

add_task(async function test_basic() {
  Assert.ok(!!Services.clearData);

  await new Promise(aResolve => {
    Services.clearData.deleteData(Ci.nsIClearDataService.CLEAR_ALL, value => {
      Assert.equal(value, 0);
      aResolve();
    });
  });
});