diff --git a/test/Models/LegendHelperSpec.js b/test/Models/LegendHelperSpec.js
index <HASH>..<HASH> 100644
--- a/test/Models/LegendHelperSpec.js
+++ b/test/Models/LegendHelperSpec.js
@@ -51,14 +51,14 @@ describe('LegendHelper', function() {
     it('colors points via a color gradient when colorBins is 0', function() {
         // This tests the implementation of the color gradient code, which may not be desirable.
         var tableStyle = new TableStyle({
-            colorMap: '#000-#00F',
+            colorMap: '#000000-#0000FE',  // Use #FE so there is a clear midpoint at #7F.
             colorBins: 0
         });
         var legendHelper = new LegendHelper(tableColumn, tableStyle);
         expect(legendHelper).toBeDefined();
         expect(legendHelper.legendUrl()).toBeDefined();  // Side-effects. Hmmm.
-        expect(legendHelper.getColorArrayFromValue(9)).toEqual([0, 0, 255, 255]);
-        expect(legendHelper.getColorArrayFromValue(5)).toEqual([0, 0, 128, 255]);
+        expect(legendHelper.getColorArrayFromValue(9)).toEqual([0, 0, 254, 255]);
+        expect(legendHelper.getColorArrayFromValue(5)).toEqual([0, 0, 127, 255]); // With #FF as the top end, some browsers have 128 here.
         expect(legendHelper.getColorArrayFromValue(1)).toEqual([0, 0, 0, 255]);
         var legend = legendHelper._legend;
         var numItems = legend.items.length;
modify test to not depend on rounding behaviour