Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: chrome/test/data/extensions/api_test/history/timed_search.js

Issue 8758008: Move another block of extension tests to manifest_version 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/history/timed_search.html ('k') | chrome/test/data/extensions/api_test/i18n/a.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698