@@ -4257,33 +4257,6 @@ def test_utf8_textdecoder(self):
4257
4257
def test_utf16_textdecoder (self ):
4258
4258
self .btest_exit ('benchmark/benchmark_utf16.cpp' , 0 , cflags = ['--embed-file' , test_file ('utf16_corpus.txt' ) + '@/utf16_corpus.txt' , '-sEXPORTED_RUNTIME_METHODS=UTF16ToString,stringToUTF16,lengthBytesUTF16' ])
4259
4259
4260
- @also_with_threads
4261
- @parameterized ({
4262
- '' : ([],),
4263
- 'closure' : (['--closure=1' ],),
4264
- })
4265
- def test_TextDecoder (self , args ):
4266
- self .cflags += args
4267
-
4268
- self .btest ('browser_test_hello_world.c' , '0' , cflags = ['-sTEXTDECODER=0' ])
4269
- just_fallback = os .path .getsize ('test.js' )
4270
- print ('just_fallback:\t %s' % just_fallback )
4271
-
4272
- self .btest ('browser_test_hello_world.c' , '0' )
4273
- td_with_fallback = os .path .getsize ('test.js' )
4274
- print ('td_with_fallback:\t %s' % td_with_fallback )
4275
-
4276
- self .btest ('browser_test_hello_world.c' , '0' , cflags = ['-sTEXTDECODER=2' ])
4277
- td_without_fallback = os .path .getsize ('test.js' )
4278
- print ('td_without_fallback:\t %s' % td_without_fallback )
4279
-
4280
- # td_with_fallback should always be largest of all three in terms of code side
4281
- self .assertGreater (td_with_fallback , td_without_fallback )
4282
- self .assertGreater (td_with_fallback , just_fallback )
4283
-
4284
- # the fallback is also expected to be larger in code size than using td
4285
- self .assertGreater (just_fallback , td_without_fallback )
4286
-
4287
4260
def test_small_js_flags (self ):
4288
4261
self .btest ('browser_test_hello_world.c' , '0' , cflags = ['-O3' , '--closure=1' , '-sINCOMING_MODULE_JS_API=[]' , '-sENVIRONMENT=web' , '--output-eol=linux' ])
4289
4262
# Check an absolute js code size, with some slack.
0 commit comments