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

Unified Diff: chrome/browser/resources/md_downloads/action_service_unittest.js

Issue 1480263002: Revert of MD Downloads: track downloads in C++, dispatch discrete JS updates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: chrome/browser/resources/md_downloads/action_service_unittest.js
diff --git a/chrome/browser/resources/md_downloads/action_service_unittest.js b/chrome/browser/resources/md_downloads/action_service_unittest.js
deleted file mode 100644
index b188594012cef17a710b54fc57f099697c0d81ae..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/md_downloads/action_service_unittest.js
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * @param {!Array<string>} list
- * @return {string}
- */
-function str(list) {
- return JSON.stringify(list);
-}
-
-/**
- * @extends {testing.Test}
- * @constructor
- */
-function ActionServiceUnitTest() {}
-
-ActionServiceUnitTest.prototype = {
- __proto__: testing.Test.prototype,
-
- /** @override */
- extraLibraries: [
- '../../../../ui/webui/resources/js/cr.js',
- 'action_service.js',
- ],
-};
-
-TEST_F('ActionServiceUnitTest', 'splitTerms', function() {
- var ActionService = downloads.ActionService;
- assertEquals(str([]), str(ActionService.splitTerms('')));
- assertEquals(str([]), str(ActionService.splitTerms(' ')));
- assertEquals(str(['a']), str(ActionService.splitTerms('a')));
- assertEquals(str(['a b']), str(ActionService.splitTerms('a b')));
- assertEquals(str(['a', 'b']), str(ActionService.splitTerms('a "b"')));
- assertEquals(str(['a', 'b', 'c']), str(ActionService.splitTerms('a "b" c')));
-});
« no previous file with comments | « chrome/browser/resources/md_downloads/action_service.js ('k') | chrome/browser/resources/md_downloads/crisper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698