Skip to content

Commit 08d1f72

Browse files
committed
Rename to snake case
1 parent 91d2182 commit 08d1f72

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ def assertBinaryEqual(self, file1, file2):
16971697
self.assertEqual(read_binary(file1),
16981698
read_binary(file2))
16991699

1700-
def checkOutputSizes(self, outputs: List[str], metadata=None):
1700+
def check_output_sizes(self, outputs: List[str], metadata=None):
17011701
test_name = self.id().split('.')[-1]
17021702
results_file = test_file('code_size', test_name + '.json')
17031703

test/test_other.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9255,7 +9255,7 @@ def test_unoptimized_code_size(self):
92559255
self.build('hello_world.c', cflags=['-O0', '--output-eol=linux', '-sASSERTIONS=0'], output_basename='no_asserts')
92569256
self.build('hello_world.c', cflags=['-O0', '--output-eol=linux', '-sSTRICT'], output_basename='strict')
92579257

9258-
self.checkOutputSizes(['hello_world.js', 'hello_world.wasm', 'no_asserts.js', 'no_asserts.wasm', 'strict.js', 'strict.wasm'])
9258+
self.check_output_sizes(['hello_world.js', 'hello_world.wasm', 'no_asserts.js', 'no_asserts.wasm', 'strict.js', 'strict.wasm'])
92599259

92609260
def run_codesize_test(self, filename, cflags, check_funcs=True, check_full_js=False):
92619261
# in -Os, -Oz, we remove imports wasm doesn't need
@@ -9328,7 +9328,7 @@ def strip_numeric_suffixes(funcname):
93289328
funcs.sort()
93299329
info['funcs'] = [strip_numeric_suffixes(f) for f in funcs]
93309330

9331-
self.checkOutputSizes(outputs, info)
9331+
self.check_output_sizes(outputs, info)
93329332

93339333
@parameterized({
93349334
'O0': ([], True),
@@ -11889,7 +11889,7 @@ def test_minimal_runtime_code_size(self, test_name, wasm2js, compare_js_output=F
1188911889
self.run_process(terser + ['-b', 'beautify=true', 'a.js', '-o', 'pretty.js'], env=shared.env_with_node_in_path())
1189011890
self.assertFileContents(js_out, read_file('pretty.js'))
1189111891

11892-
self.checkOutputSizes(outputs)
11892+
self.check_output_sizes(outputs)
1189311893

1189411894
# Tests the library_c_preprocessor.js functionality.
1189511895
@crossplatform
@@ -12333,7 +12333,7 @@ def test(args):
1233312333
# Changing this option to [] should decrease code size.
1233412334
self.assertLess(changed, normal)
1233512335
# Check an absolute code size as well.
12336-
self.checkOutputSizes(['a.out.js'])
12336+
self.check_output_sizes(['a.out.js'])
1233712337

1233812338
def test_INCOMING_MODULE_JS_API_missing(self):
1233912339
create_file('pre.js', 'Module.onRuntimeInitialized = () => out("initialized");')

0 commit comments

Comments
 (0)