From dc971bf9d33739884185bf29903eb52f107f4e5c Mon Sep 17 00:00:00 2001 From: "skerner@chromium.org" Date: Wed, 24 Mar 2010 17:38:24 +0000 Subject: History APIs that parse a time as a number of milliseconds need to allow integer numbers. BUG=38994 TEST=ExtensionApiTest.FLAKY_History Review URL: http://codereview.chromium.org/1221001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42486 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/data/extensions/api_test/history/test.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'chrome/test') diff --git a/chrome/test/data/extensions/api_test/history/test.js b/chrome/test/data/extensions/api_test/history/test.js index 8f7bed4..250da5c 100644 --- a/chrome/test/data/extensions/api_test/history/test.js +++ b/chrome/test/data/extensions/api_test/history/test.js @@ -188,6 +188,19 @@ chrome.test.runTests([ }); }, + function searchWithIntegerTimes() { + chrome.experimental.history.deleteAll(function() { + // Search with an integer time range. + var query = { 'text': '', + 'startTime': 0, + 'endTime': 12345678 }; + chrome.experimental.history.search(query, function(results) { + assertEq(0, results.length); + chrome.test.succeed(); + }); + }); + }, + // Give time epochs x,y,z and history events A,B which occur in the sequence // x A y B z, this test scopes the search to the interval [y,z] to test that // [x,y) is excluded. The previous test scoped to the interval [x,y]. -- cgit v1.1