Try to unflake a test.
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Apr 2017 08:31:54 +0000 (08:31 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 13 Apr 2017 08:31:54 +0000 (08:31 +0000)
* http/tests/cache/disk-cache/disk-cache-media-small.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@215317 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/http/tests/cache/disk-cache/disk-cache-media-small.html

index a5dda9b..a7d1674 100644 (file)
@@ -1,3 +1,9 @@
+2017-04-13  Antti Koivisto  <antti@apple.com>
+
+        Try to unflake a test.
+
+        * http/tests/cache/disk-cache/disk-cache-media-small.html:
+
 2017-04-12  Brady Eidson  <beidson@apple.com>
 
         QuotaExceededError when saving to localStorage in private mode.
index 489b4b7..3b83ccb 100644 (file)
@@ -27,7 +27,7 @@ function logResponses(media)
 {
     const ranges = internals.mediaResponseContentRanges(media);
     const sources = internals.mediaResponseSources(media);
-    for (i = 0; i < ranges.length; ++i)
+    for (i = 0; i < Math.min(2, ranges.length); ++i)
         logdiv.innerHTML += `Content range: ${ranges[i]}, Response source: ${sources[i]}<br>`;
 }