-
-
Notifications
You must be signed in to change notification settings - Fork 816
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8768143
commit eec5e90
Showing
6 changed files
with
77 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package { | ||
import flash.display.Sprite; | ||
public class Test extends Sprite { } | ||
} | ||
|
||
var testcases = [ | ||
"<a>", | ||
"<a><b>", | ||
"<a></a>", | ||
"<a></a/>", | ||
// TODO: Should be rejected | ||
// "<a></a//>", | ||
"<a></a />", | ||
"<a></a >", | ||
"<a></a\t>", | ||
'<a></a hello="world">', | ||
"<a></b>", | ||
"<a></b/>", | ||
"<a></b//>", | ||
"<a></b >", | ||
"<a></b\t>", | ||
'<a></b hello="world">', | ||
"<a></A>", | ||
"<a></abc>", | ||
// TODO | ||
// "<a></a bc>", | ||
"<root><a></a/><test/></root>", | ||
] | ||
|
||
for each (var testcase in testcases) { | ||
trace("input: " + testcase); | ||
|
||
try { | ||
var xml = new XML(testcase); | ||
trace("result: " + xml.toXMLString()); | ||
} catch (e) { | ||
trace(e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
input: <a> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a><b> | ||
TypeError: Error #1085: The element type "b" must be terminated by the matching end-tag "</b>". | ||
input: <a></a> | ||
result: <a/> | ||
input: <a></a/> | ||
result: <a/> | ||
input: <a></a /> | ||
result: <a/> | ||
input: <a></a > | ||
result: <a/> | ||
input: <a></a > | ||
result: <a/> | ||
input: <a></a hello="world"> | ||
result: <a/> | ||
input: <a></b> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></b/> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></b//> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></b > | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></b > | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></b hello="world"> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></A> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <a></abc> | ||
TypeError: Error #1085: The element type "a" must be terminated by the matching end-tag "</a>". | ||
input: <root><a></a/><test/></root> | ||
result: <root> | ||
<a/> | ||
<test/> | ||
</root> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
num_ticks = 1 |
1 change: 0 additions & 1 deletion
1
tests/tests/swfs/from_avmplus/as3/RuntimeErrors/Error1085XmlEndTagMissing/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
num_ticks = 1 | ||
known_failure = true |
1 change: 0 additions & 1 deletion
1
tests/tests/swfs/from_avmplus/e4x/XML/kXMLUnterminatedElementTagErr/test.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
num_ticks = 1 | ||
known_failure = true |