@@ -7359,20 +7359,29 @@ def test_unoptimized_code_size(self):
7359
7359
# changes to the size of the unoptimized and unminified code size.
7360
7360
# Run with `--rebase` when this test fails.
7361
7361
self .build (test_file ('hello_world.c' ), emcc_args = ['-O0' ])
7362
- self .build (test_file ('hello_world.c' ), emcc_args = ['-O0' , '-sASSERTIONS=0' ], output_basename = 'no_asserts' )
7363
7362
self .check_expected_size_in_file ('wasm' ,
7364
7363
test_file ('other/test_unoptimized_code_size.wasm.size' ),
7365
7364
os .path .getsize ('hello_world.wasm' ))
7366
- self .check_expected_size_in_file ('wasm' ,
7367
- test_file ('other/test_unoptimized_code_size_no_asserts.wasm.size' ),
7368
- os .path .getsize ('no_asserts.wasm' ))
7369
7365
self .check_expected_size_in_file ('js' ,
7370
7366
test_file ('other/test_unoptimized_code_size.js.size' ),
7371
7367
os .path .getsize ('hello_world.js' ))
7368
+
7369
+ self .build (test_file ('hello_world.c' ), emcc_args = ['-O0' , '-sASSERTIONS=0' ], output_basename = 'no_asserts' )
7370
+ self .check_expected_size_in_file ('wasm' ,
7371
+ test_file ('other/test_unoptimized_code_size_no_asserts.wasm.size' ),
7372
+ os .path .getsize ('no_asserts.wasm' ))
7372
7373
self .check_expected_size_in_file ('js' ,
7373
7374
test_file ('other/test_unoptimized_code_size_no_asserts.js.size' ),
7374
7375
os .path .getsize ('no_asserts.js' ))
7375
7376
7377
+ self .build (test_file ('hello_world.c' ), emcc_args = ['-O0' , '-sSTRICT' ], output_basename = 'strict' )
7378
+ self .check_expected_size_in_file ('wasm' ,
7379
+ test_file ('other/test_unoptimized_code_size_strict.wasm.size' ),
7380
+ os .path .getsize ('strict.wasm' ))
7381
+ self .check_expected_size_in_file ('js' ,
7382
+ test_file ('other/test_unoptimized_code_size_strict.js.size' ),
7383
+ os .path .getsize ('strict.js' ))
7384
+
7376
7385
def run_metadce_test (self , filename , args = [], expected_exists = [], expected_not_exists = [], check_size = True , # noqa
7377
7386
check_sent = True , check_imports = True , check_exports = True , check_funcs = True ):
7378
7387
0 commit comments