Skip to content

Commit e102f6f

Browse files
authored
Add test for --preload-file + --closure=1. NFC (#19294)
I ran into the lack of testing (at least under node) of this config recently. In this case the output of file_packager is include as a pre-js so it ends up going through closure compiler.
1 parent 9dff99d commit e102f6f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/test_other.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1743,6 +1743,7 @@ def test_export_from_archive(self):
17431743
'embed': (['--embed-file', 'somefile.txt'],),
17441744
'embed_twice': (['--embed-file', 'somefile.txt', '--embed-file', 'somefile.txt'],),
17451745
'preload': (['--preload-file', 'somefile.txt'],),
1746+
'preload_closure': (['--preload-file', 'somefile.txt', '-O2', '--closure=1'],),
17461747
'preload_and_embed': (['--preload-file', 'somefile.txt', '--embed-file', 'hello.txt'],)
17471748
})
17481749
@requires_node

0 commit comments

Comments
 (0)