OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
1 // History api test for Chrome. | 5 // History api test for Chrome. |
2 // browser_tests.exe --gtest_filter=ExtensionHistoryApiTest.GetVisits | 6 // browser_tests.exe --gtest_filter=ExtensionHistoryApiTest.GetVisits |
3 | 7 |
4 // runHistoryTestFns is defined in ./common.js . | 8 // runHistoryTestFns is defined in ./common.js . |
5 runHistoryTestFns([ | 9 runHistoryTestFns([ |
6 function getVisits() { | 10 function getVisits() { |
7 // getVisits callback. | 11 // getVisits callback. |
8 function getVisitsTestVerification() { | 12 function getVisitsTestVerification() { |
9 removeItemVisitedListener(); | 13 removeItemVisitedListener(); |
10 | 14 |
(...skipping 13 matching lines...) Expand all Loading... |
24 }); | 28 }); |
25 }); | 29 }); |
26 }; | 30 }; |
27 // getVisits entry point. | 31 // getVisits entry point. |
28 chrome.history.deleteAll(function() { | 32 chrome.history.deleteAll(function() { |
29 setItemVisitedListener(getVisitsTestVerification); | 33 setItemVisitedListener(getVisitsTestVerification); |
30 populateHistory([GOOGLE_URL], function() { }); | 34 populateHistory([GOOGLE_URL], function() { }); |
31 }); | 35 }); |
32 } | 36 } |
33 ]); | 37 ]); |
OLD | NEW |