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.TimedSearch | 6 // browser_tests.exe --gtest_filter=ExtensionHistoryApiTest.TimedSearch |
3 | 7 |
4 // runHistoryTestFns is defined in ./common.js . | 8 // runHistoryTestFns is defined in ./common.js . |
5 runHistoryTestFns([ | 9 runHistoryTestFns([ |
6 // Give time epochs x,y,z and history events A,B which occur in the sequence | 10 // Give time epochs x,y,z and history events A,B which occur in the sequence |
7 // x A y B z, test that searching in [x,y] finds only A. | 11 // x A y B z, test that searching in [x,y] finds only A. |
8 function timeScopedSearchStartRange() { | 12 function timeScopedSearchStartRange() { |
9 var urls = [GOOGLE_URL, PICASA_URL]; | 13 var urls = [GOOGLE_URL, PICASA_URL]; |
10 chrome.history.deleteAll(function() { | 14 chrome.history.deleteAll(function() { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 var query = { 'text': '', | 72 var query = { 'text': '', |
69 'startTime': 0, | 73 'startTime': 0, |
70 'endTime': 123456789 }; | 74 'endTime': 123456789 }; |
71 chrome.history.search(query, function(results) { | 75 chrome.history.search(query, function(results) { |
72 assertEq(0, results.length); | 76 assertEq(0, results.length); |
73 chrome.test.succeed(); | 77 chrome.test.succeed(); |
74 }); | 78 }); |
75 }); | 79 }); |
76 } | 80 } |
77 ]); | 81 ]); |
OLD | NEW |