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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/list_selection_model_test_util.js

Issue 11962043: Move webui resources from chrome\browser\resources\shared to ui\webui\resources. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
Index: chrome/browser/resources/shared/js/cr/ui/list_selection_model_test_util.js
===================================================================
--- chrome/browser/resources/shared/js/cr/ui/list_selection_model_test_util.js (revision 177292)
+++ chrome/browser/resources/shared/js/cr/ui/list_selection_model_test_util.js (working copy)
@@ -1,26 +0,0 @@
-// Copyright (c) 2012 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.
-
-function range(start, end) {
- var a = [];
- for (var i = start; i <= end; i++) {
- a.push(i);
- }
- return a;
-}
-
-function adjust(sm, index, removed, added) {
- var permutation = [];
- for (var i = 0; i < index; i++) {
- permutation.push(i);
- }
- for (var i = 0; i < removed; i++) {
- permutation.push(-1);
- }
- for (var i = index + removed; i < sm.length; i++) {
- permutation.push(i - removed + added);
- }
- sm.adjustLength(sm.length - removed + added);
- sm.adjustToReordering(permutation);
-}

Powered by Google App Engine
This is Rietveld 408576698