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

Unified Diff: chrome/test/data/webui/md_history/browser_service_test.js

Issue 2627263002: MD History: Remove unnecessary namespacing from tests (part 2) (Closed)
Patch Set: Created 3 years, 11 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_drawer_test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ });
});
« no previous file with comments | « no previous file | chrome/test/data/webui/md_history/history_drawer_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698