Fix comparison function when sorting volumes in tests
The following CL changed how Array.p.sort works in JS: http://crrev.com/c/1151199 This broke some file manager tests. The reason is a broken comparison function when sorting the volumes for the tests. JS needs a comparsion function that returns < 0,0 or > 0 if a value is less than, equal to or greater than another one respectively. This CL fixes that. R=joelhockey@chromium.org Change-Id: I08c4ebf352d3e8ec984239edd01f39eac261e576 Reviewed-on: https://chromium-review.googlesource.com/1184848Reviewed-by:Joel Hockey <joelhockey@chromium.org> Commit-Queue: Simon Zünd <szuend@google.com> Cr-Commit-Position: refs/heads/master@{#585419}
Showing
Please register or sign in to comment