mirror of
https://github.com/Basilisk-Development-Team/UXP-mirror.git
synced 2026-11-25 10:19:41 -05:00
13 lines
468 B
JavaScript
13 lines
468 B
JavaScript
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
|
|
/* vim:set ts=2 sw=2 sts=2 et: */
|
|
|
|
add_task(function* test_execute() {
|
|
const TEST_URI = uri("http://mozilla.com");
|
|
|
|
do_check_eq(0, yield PlacesTestUtils.visitsInDB(TEST_URI));
|
|
yield PlacesTestUtils.addVisits({uri: TEST_URI});
|
|
do_check_eq(1, yield PlacesTestUtils.visitsInDB(TEST_URI));
|
|
yield PlacesTestUtils.addVisits({uri: TEST_URI});
|
|
do_check_eq(2, yield PlacesTestUtils.visitsInDB(TEST_URI));
|
|
});
|