blob: 3cab39ed98408b4d2e36c384913f2dead2fd924a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/* -*- 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));
});
|