Skip to content

Commit 240427d

Browse files
authored
Fix custom test for api.FormData.append.filename_parameter (#1606)
1 parent 32e6b4f commit 240427d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

custom/tests.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,10 +1939,14 @@ api:
19391939
__additional:
19401940
append.filename_parameter: |-
19411941
<%api.Blob:blob%>
1942-
function append(filename) {
1943-
instance.append('foo', blob, filename);
1942+
1943+
if (!('get' in instance)) {
1944+
return {result: null, message: 'This test has not yet been adapted for older browsers'}
19441945
}
1945-
return bcd.testOptionParam(append, null, null, 'foo.txt');
1946+
1947+
instance.append('foo', blob, 'bar.txt');
1948+
var file = instance.get('foo');
1949+
return file.name === 'bar.txt';
19461950
FormData.submitter: |-
19471951
if (!('document' in self)) {
19481952
return {result: null, message: "Testing in workers is not yet implemented"};

0 commit comments

Comments
 (0)