| Index: chrome/test/data/webui/md_history/browser_service_test.js
|
| diff --git a/chrome/test/data/webui/md_history/browser_service_test.js b/chrome/test/data/webui/md_history/browser_service_test.js
|
| index e73853fe66de7d79d03195a75c70fb4f62eeb62a..570baaae3ebfa0a6a322cf6225a7bc4ecdfc4260 100644
|
| --- a/chrome/test/data/webui/md_history/browser_service_test.js
|
| +++ b/chrome/test/data/webui/md_history/browser_service_test.js
|
| @@ -2,35 +2,25 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -cr.define('md_history.browser_service_test', function() {
|
| - function registerTests() {
|
| - suite('BrowserService', function() {
|
| -
|
| - test('makes correct call to removeVisits', function(done) {
|
| -
|
| - registerMessageCallback('removeVisits', this, function(toRemove) {
|
| - assertEquals('http://www.example.com', toRemove[0].url);
|
| - assertEquals('https://en.wikipedia.org', toRemove[1].url);
|
| - assertEquals(1234, toRemove[0].timestamps[0]);
|
| - assertEquals(5678, toRemove[1].timestamps[0]);
|
| - done();
|
| - });
|
| -
|
| - toDelete = [
|
| - createHistoryEntry(1234, 'http://www.example.com'),
|
| - createHistoryEntry(5678, 'https://en.wikipedia.org')
|
| - ];
|
| +suite('BrowserService', function() {
|
| + test('makes correct call to removeVisits', function(done) {
|
| + registerMessageCallback('removeVisits', this, function(toRemove) {
|
| + assertEquals('http://www.example.com', toRemove[0].url);
|
| + assertEquals('https://en.wikipedia.org', toRemove[1].url);
|
| + assertEquals(1234, toRemove[0].timestamps[0]);
|
| + assertEquals(5678, toRemove[1].timestamps[0]);
|
| + done();
|
| + });
|
|
|
| - md_history.BrowserService.getInstance().deleteItems(toDelete);
|
| - });
|
| + toDelete = [
|
| + createHistoryEntry(1234, 'http://www.example.com'),
|
| + createHistoryEntry(5678, 'https://en.wikipedia.org')
|
| + ];
|
|
|
| - teardown(function() {
|
| - registerMessageCallback('removeVisits', this, undefined);
|
| - });
|
| + md_history.BrowserService.getInstance().deleteItems(toDelete);
|
| + });
|
|
|
| - });
|
| - }
|
| - return {
|
| - registerTests: registerTests
|
| - };
|
| + teardown(function() {
|
| + registerMessageCallback('removeVisits', this, undefined);
|
| + });
|
| });
|
|
|