AS1/2 parser improvements/fixes

Tests add original exception
Fixed ant test tasks
This commit is contained in:
Jindra Petřík
2015-05-27 17:31:47 +02:00
parent afa593af32
commit 497a7794b0
5 changed files with 247 additions and 275 deletions

View File

@@ -1,18 +1,19 @@
/*
* Copyright (C) 2010-2015 JPEXS, All rights reserved.
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3.0 of the License, or (at your option) any later version.
*
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library.
* License along with this library.
*/
package com.jpexs.decompiler.flash;
import com.jpexs.decompiler.flash.action.parser.script.ActionScriptParser;
@@ -40,7 +41,7 @@ public class ActionScript2ParserTest extends ActionStript2TestBase {
ActionScriptParser par = new ActionScriptParser(SWF.DEFAULT_VERSION);
par.actionsFromString(script);
} catch (IOException | CompilationException | ParseException ex) {
} catch (IOException | CompilationException | ParseException ex) {
fail("Unable to parse: " + script, ex);
}
}