blob: 1295c6e8c5c91b937f58d725adf2c7b610f923e0 (
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
|
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
// Tests that bookmarking an hidden page unhides it.
"use strict";
add_task(async function test_hidden() {
const url = "http://moz.com/";
await PlacesTestUtils.addVisits({
url,
transition: TRANSITION_FRAMED_LINK,
});
Assert.equal(
await PlacesTestUtils.getDatabaseValue("moz_places", "hidden", { url }),
1
);
await PlacesUtils.bookmarks.insert({
url,
parentGuid: PlacesUtils.bookmarks.toolbarGuid,
});
Assert.equal(
await PlacesTestUtils.getDatabaseValue("moz_places", "hidden", { url }),
0
);
});
|