gecko-dev/devtools/client/storage/test/storage-overflow.html
Michael Ratcliffe 0a6c15a02a Bug 1073967 - Storage Inspector columns should use natural sort r=nchevobbe
Changlist:
  - Added Jim Palmer's well proven natural sort algorithm.
  - Added natural sort license (MIT).
  - Use natural sort everywhere inside TableWidget.js wherever we use .sort()
  - Changed browser_storage_overflow.js so that the test is faster and more maintainable. The test now also tests column sorting (ascending and descending).
  - Use natural sort everywhere inside storage.js wherever we need to slice the array. Without natural sort here we get e.g. row-1, row-10, row-100, row-2 etc.

MozReview-Commit-ID: FUY7pcLIYml

--HG--
extra : rebase_source : 6e25cc962a7ab89aeb361e4036af90dcecd24b02
2017-04-10 18:04:25 +01:00

20 lines
345 B
HTML

<!DOCTYPE HTML>
<html>
<!--
Bug 1171903 - Storage Inspector endless scrolling
-->
<head>
<meta charset="utf-8">
<title>Storage inspector endless scrolling test</title>
</head>
<body>
<script type="text/javascript">
"use strict";
for (let i = 1; i < 151; i++) {
localStorage.setItem(`item-${i}`, `value-${i}`);
}
</script>
</body>
</html>