Bug 1242832 - Fix intermittent browser_storage_overflow.js timeouts. r=pbro
authorTim Nguyen <ntim.bugs@gmail.com>
Mon, 29 Feb 2016 17:21:50 +0100
changeset 324257 6af962bff65de440a88387256ce311c5e5e2e440
parent 324256 f9751df48f4e34e6abcff047628b7a5aaec66498
child 324258 2f7cae37286ec8aa65e5d90802e2dfe6b93d8742
push id1128
push userjlund@mozilla.com
push dateWed, 01 Jun 2016 01:31:59 +0000
treeherdermozilla-release@fe0d30de989d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerspbro
bugs1242832
milestone47.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1242832 - Fix intermittent browser_storage_overflow.js timeouts. r=pbro MozReview-Commit-ID: 17hjxdkJ5B1
devtools/client/storage/test/browser_storage_overflow.js
devtools/client/storage/test/storage-overflow.html
--- a/devtools/client/storage/test/browser_storage_overflow.js
+++ b/devtools/client/storage/test/browser_storage_overflow.js
@@ -30,12 +30,12 @@ add_task(function*() {
 
   is($$("#value .table-widget-cell").length, 150,
      "Table should display 150 items after scrolling");
 
   onStoresUpdate = gUI.once("store-objects-updated");
   table.scrollTop += cellHeight * 50;
   yield onStoresUpdate;
 
-  is($$("#value .table-widget-cell").length, 200,
-     "Table should display all 200 items after scrolling");
+  is($$("#value .table-widget-cell").length, 160,
+     "Table should display all 160 items after scrolling");
   yield finishTests();
 });
--- a/devtools/client/storage/test/storage-overflow.html
+++ b/devtools/client/storage/test/storage-overflow.html
@@ -9,16 +9,14 @@ Bug 1171903 - Storage Inspector endless 
 </head>
 <body>
 <script type="text/javascript;version=1.8">
 "use strict";
 window.clear = () => {
   localStorage.clear();
 };
 
-let array = new Array(200);
-
-for (let i = 0; i < array.length; i++) {
+for (let i = 0; i < 160; i++) {
   localStorage.setItem(`item-${i}`, `value-${i}`);
 }
 </script>
 </body>
 </html>