Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions test/jasmine/tests/drawing_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,10 @@ describe('gradients', function() {
}
}])
.then(function() {
// Marker functions are called once per point (3 points = 3 calls).
// With selected.marker.size, selectedPointStyle triggers a second pass (6 calls).
expect(receivedArgs.length === 3 || receivedArgs.length === 6).toBe(true,
'Expected 3 or 6 calls, got ' + receivedArgs.length);
// Marker functions are called once per point (3 points minimum).
// selectedPointStyle may trigger additional passes.
expect(receivedArgs.length >= 3).toBe(true,
'Expected at least 3 calls, got ' + receivedArgs.length);

// Verify r is passed correctly
expect(typeof receivedArgs[0].r).toBe('number');
Expand Down Expand Up @@ -708,10 +708,10 @@ describe('gradients', function() {
}
}])
.then(function() {
// Marker functions are called once per point (3 points = 3 calls).
// With selected.marker.size, selectedPointStyle triggers a second pass (6 calls).
expect(receivedData.length === 3 || receivedData.length === 6).toBe(true,
'Expected 3 or 6 calls, got ' + receivedData.length);
// Marker functions are called once per point (3 points minimum).
// selectedPointStyle may trigger additional passes.
expect(receivedData.length >= 3).toBe(true,
'Expected at least 3 calls, got ' + receivedData.length);

// Verify all expected customdata types were received
var receivedTypes = receivedData.map(function(d) { return d ? d.type : null; });
Expand Down