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

Side by Side Diff: webkit/data/test_shell/sort/sort-bubble.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/data/test_shell/sort/sort.js ('k') | webkit/data/test_shell/sort/sort-heap.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // bubble sort
2
3 function sort_bubble(sort, x, y) {
4 if (arguments.length == 1) {
5 x = 1; y = 0;
6 }
7 var len = sort.bars.length;
8 if (x < len && y < len) {
9 if (sort.compare(x, y) < 0) {
10 sort.swap(x, y);
11 }
12 y++;
13 if (y == x) {
14 y = 0;
15 x++;
16 }
17 if (x < len) {
18 sort.add_work(function() { sort_bubble(sort, x, y); });
19 return;
20 }
21 }
22 }
23
OLDNEW
« no previous file with comments | « webkit/data/test_shell/sort/sort.js ('k') | webkit/data/test_shell/sort/sort-heap.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698