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

Unified Diff: webkit/data/test_shell/sort/sort-insertion.js

Issue 401923005: webkit: Remove all files from test_shell/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « webkit/data/test_shell/sort/sort-heap.js ('k') | webkit/data/test_shell/sort/sort-quick.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/data/test_shell/sort/sort-insertion.js
diff --git a/webkit/data/test_shell/sort/sort-insertion.js b/webkit/data/test_shell/sort/sort-insertion.js
deleted file mode 100644
index 188819ccb542eb694bf28775b1d4d541ecbc6592..0000000000000000000000000000000000000000
--- a/webkit/data/test_shell/sort/sort-insertion.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// insertion sort
-
-function sort_insertion(sort, x, y) {
- if (arguments.length == 1 || x == undefined) {
- x = 1; y = 1;
- }
- var len = sort.bars.length;
- if (x < len && y > 0) {
- if (sort.compare(y, y - 1) < 0) {
- sort.swap(y, y - 1);
- y--;
- if (y == 0) {
- x++;
- y = x;
- }
- } else {
- x++;
- y = x;
- }
- if (x < len) {
- sort.add_work(function () { sort_insertion(sort, x, y); });
- return;
- }
- }
-}
-
« no previous file with comments | « webkit/data/test_shell/sort/sort-heap.js ('k') | webkit/data/test_shell/sort/sort-quick.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698