|
|
@ -1735,7 +1735,7 @@ var CUSTOM_TESTS = [ |
|
|
|
run: function(callback) { |
|
|
|
run: function(callback) { |
|
|
|
Papa.parse('A,b,c', { |
|
|
|
Papa.parse('A,b,c', { |
|
|
|
step: function(response) { |
|
|
|
step: function(response) { |
|
|
|
callback(response.data[0]); |
|
|
|
callback(response.data); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
@ -1972,7 +1972,7 @@ var CUSTOM_TESTS = [ |
|
|
|
var updates = []; |
|
|
|
var updates = []; |
|
|
|
Papa.parse('A,b,c\nd,E,f\nG,h,i', { |
|
|
|
Papa.parse('A,b,c\nd,E,f\nG,h,i', { |
|
|
|
step: function(response, handle) { |
|
|
|
step: function(response, handle) { |
|
|
|
updates.push(response.data[0]); |
|
|
|
updates.push(response.data); |
|
|
|
handle.abort(); |
|
|
|
handle.abort(); |
|
|
|
callback(updates); |
|
|
|
callback(updates); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -2002,7 +2002,7 @@ var CUSTOM_TESTS = [ |
|
|
|
var updates = []; |
|
|
|
var updates = []; |
|
|
|
Papa.parse('A,b,c\nd,E,f\nG,h,i', { |
|
|
|
Papa.parse('A,b,c\nd,E,f\nG,h,i', { |
|
|
|
step: function(response, handle) { |
|
|
|
step: function(response, handle) { |
|
|
|
updates.push(response.data[0]); |
|
|
|
updates.push(response.data); |
|
|
|
handle.pause(); |
|
|
|
handle.pause(); |
|
|
|
callback(updates); |
|
|
|
callback(updates); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -2021,7 +2021,7 @@ var CUSTOM_TESTS = [ |
|
|
|
var first = true; |
|
|
|
var first = true; |
|
|
|
Papa.parse('A,b,c\nd,E,f\nG,h,i', { |
|
|
|
Papa.parse('A,b,c\nd,E,f\nG,h,i', { |
|
|
|
step: function(response, h) { |
|
|
|
step: function(response, h) { |
|
|
|
updates.push(response.data[0]); |
|
|
|
updates.push(response.data); |
|
|
|
if (!first) return; |
|
|
|
if (!first) return; |
|
|
|
handle = h; |
|
|
|
handle = h; |
|
|
|
handle.pause(); |
|
|
|
handle.pause(); |
|
|
|