test fixes for |other|
This commit is contained in:
Родитель
8999afc272
Коммит
5c2478fda3
|
@ -4479,7 +4479,7 @@ TT = %s
|
|||
def test_js_optimizer(self):
|
||||
input = open(path_from_root('tools', 'test-js-optimizer.js')).read()
|
||||
expected = open(path_from_root('tools', 'test-js-optimizer-output.js')).read()
|
||||
output = Popen([NODE_JS, JS_OPTIMIZER], stdin=PIPE, stdout=PIPE).communicate(input)[0]
|
||||
output = Popen([NODE_JS, JS_OPTIMIZER, 'unGlobalize', 'removeAssignsToUndefined'], stdin=PIPE, stdout=PIPE).communicate(input)[0]
|
||||
self.assertIdentical(expected, output.replace('\n\n', '\n'))
|
||||
|
||||
else:
|
||||
|
|
|
@ -108,3 +108,4 @@ var anon = (function(x) {
|
|||
function r($0) {
|
||||
HEAP[$0 + 7] = 107;
|
||||
}
|
||||
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["f", "g", "h", "py", "r"]
|
||||
|
|
Загрузка…
Ссылка в новой задаче