Rubber-stamped by Eric Seidel.
Sync HTML5lib tests with upstream.
* html5lib/resources/comments01.dat:
* html5lib/resources/pending-spec-changes-plain-text-unsafe.dat: Added.
* html5lib/resources/pending-spec-changes.dat: Added.
* html5lib/resources/plain-text-unsafe.dat: Added.
* html5lib/resources/tests1.dat:
* html5lib/resources/tests10.dat:
* html5lib/resources/tests13.dat: Removed.
* html5lib/resources/tests14.dat:
* html5lib/resources/tests15.dat:
* html5lib/resources/tests17.dat:
* html5lib/resources/tests19.dat:
* html5lib/resources/tests20.dat:
* html5lib/resources/tests21.dat:
* html5lib/resources/tests9.dat:
* html5lib/resources/tests_innerHTML_1.dat:
* html5lib/runner-expected.txt:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@68129
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2010-09-23 Adam Barth <abarth@webkit.org>
+
+ Rubber-stamped by Eric Seidel.
+
+ Sync HTML5lib tests with upstream.
+
+ * html5lib/resources/comments01.dat:
+ * html5lib/resources/pending-spec-changes-plain-text-unsafe.dat: Added.
+ * html5lib/resources/pending-spec-changes.dat: Added.
+ * html5lib/resources/plain-text-unsafe.dat: Added.
+ * html5lib/resources/tests1.dat:
+ * html5lib/resources/tests10.dat:
+ * html5lib/resources/tests13.dat: Removed.
+ * html5lib/resources/tests14.dat:
+ * html5lib/resources/tests15.dat:
+ * html5lib/resources/tests17.dat:
+ * html5lib/resources/tests19.dat:
+ * html5lib/resources/tests20.dat:
+ * html5lib/resources/tests21.dat:
+ * html5lib/resources/tests9.dat:
+ * html5lib/resources/tests_innerHTML_1.dat:
+ * html5lib/runner-expected.txt:
+
2010-09-22 Dimitri Glazkov <dglazkov@chromium.org>
Reviewed by Adam Barth.
| <head>
| <body>
| "FOO"
-| <!-- BAR -- -->
-| "BAZ"
+| <!-- BAR -- >BAZ -->
#data
FOO<!-- BAR -- <QUX> -- MUX -->BAZ
| <head>
| <body>
| "FOO"
-| <!-- BAR -- <QUX> -- MUX -- -->
-| "BAZ"
+| <!-- BAR -- <QUX> -- MUX -- >BAZ -->
#data
FOO<!---->BAZ
--- /dev/null
+#data
+FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
+#errors
+3: Non-space characters found without seeing a doctype first. Expected “<!DOCTYPE html>”.
+15: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
+24: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
+31: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
+35: End of file inside comment.
+#document
+| <html>
+| <head>
+| <body>
+| "FOO"
+| <!-- BAR -- <QUX> -- MUX -- >BAZ -->
+
+#data
+FOO<!-- BAR -- >BAZ
+#errors
+3: Non-space characters found without seeing a doctype first. Expected “<!DOCTYPE html>”.
+15: Consecutive hyphens did not terminate a comment. “--” is not permitted inside a comment, but e.g. “- -” is.
+21: End of file inside comment.
+#document
+| <html>
+| <head>
+| <body>
+| "FOO"
+| <!-- BAR -- >BAZ -->
+
+#data
+<svg><![CDATA[]]
+#errors
+#document
+| <html>
+| <head>
+| <body>
+| <svg svg>
+
+#data
+<svg><![CDATA[]
+#errors
+#document
+| <html>
+| <head>
+| <body>
+| <svg svg>
--- /dev/null
+#data
+FOO
ZOO
+#errors
+#document
+| <html>
+| <head>
+| <body>
+| "FOO\rZOO"
| <code>
| <strike>
+#data
+<!DOCTYPE html><spacer>foo
+#errors
+26: End of file seen and there were open elements.
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <spacer>
+| "foo"
+
#data
<title><meta></title><link><title><meta></title>
#errors
| <body>
| <svg svg>
+#data
+<!DOCTYPE html><svg></svg><![CDATA[a]]>
+#errors
+29: Bogus comment
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <svg svg>
+| <!-- [CDATA[a]] -->
+
#data
<!DOCTYPE html><body><svg></svg>
#errors
| <p>
| "a"
+#data
+<!DOCTYPE html><svg><desc><div><svg><ul>a
+#errors
+40: HTML start tag “ul” in a foreign namespace context.
+41: End of file in a foreign namespace context.
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <svg svg>
+| <svg desc>
+| <div>
+| <svg svg>
+| <ul>
+| "a"
+
+#data
+<!DOCTYPE html><svg><desc><svg><ul>a
+#errors
+35: HTML start tag “ul” in a foreign namespace context.
+36: End of file in a foreign namespace context.
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <svg svg>
+| <svg desc>
+| <svg svg>
+| <ul>
+| "a"
+
#data
<div><svg><path><foreignObject><p></foreignObject><p>
#errors
| <math mo>
| <span>
| <svg path>
-| <math mi>
\ No newline at end of file
+| <math mi>
+++ /dev/null
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
-<html><head>
-<title>404 Not Found</title>
-</head><body>
-<h1>Not Found</h1>
-<p>The requested URL /html5lib-tests/data/tests13.dat was not found on this server.</p>
-<p>Additionally, a 404 Not Found
-error was encountered while trying to use an ErrorDocument to handle the request.</p>
-</body></html>
| <html>
| <head>
| <body>
-| 789="012"
\ No newline at end of file
+| 789="012"
| <html>
| <head>
| <body>
-| <object>
\ No newline at end of file
+| <object>
| <table>
| <tbody>
| <tr>
-| "a"
\ No newline at end of file
+| "a"
| <body>
| "a "
-#data
-<html>�<frameset></frameset>
-#errors
-#document
-| <html>
-| <head>
-| <frameset>
-
-#data
-<html> � <frameset></frameset>
-#errors
-#document
-| <html>
-| <head>
-| <frameset>
-
-#data
-<html>a�a<frameset></frameset>
-#errors
-#document
-| <html>
-| <head>
-| <body>
-| "a�a"
-
-#data
-<html>��<frameset></frameset>
-#errors
-#document
-| <html>
-| <head>
-| <frameset>
-
-#data
-<html>�
- <frameset></frameset>
-#errors
-#document
-| <html>
-| <head>
-| <frameset>
-
#data
<!doctype html><p><math></p>a
#errors
| <body>
| <svg svg>
| <svg title>
-| "abc"
\ No newline at end of file
+| "abc"
| <svg svg>
| "]] >"
-#data
-<svg><![CDATA[]]
-#errors
-#document
-| <html>
-| <head>
-| <body>
-| <svg svg>
-| "]]"
-
-#data
-<svg><![CDATA[]
-#errors
-#document
-| <html>
-| <head>
-| <body>
-| <svg svg>
-| "]"
-
#data
<svg><![CDATA[]>a
#errors
| <body>
| <math math>
+#data
+<!DOCTYPE html><math><mi>
+#errors
+25: End of file in a foreign namespace context.
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <math math>
+| <math mi>
+
+#data
+<!DOCTYPE html><math><annotation-xml><svg><u>
+#errors
+45: HTML start tag “u” in a foreign namespace context.
+45: End of file seen and there were open elements.
+#document
+| <!DOCTYPE html>
+| <html>
+| <head>
+| <body>
+| <math math>
+| <math annotation-xml>
+| <svg svg>
+| <u>
+
#data
<!DOCTYPE html><body><select><math></math></select>
#errors
#document-fragment
frameset
#document
-| <frame>
\ No newline at end of file
+| <frame>
CONSOLE MESSAGE: line 1: SyntaxError: Parse error
CONSOLE MESSAGE: line 2: PASS
CONSOLE MESSAGE: line 2: FOO<span>BAR</span>BAZ
+resources/pending-spec-changes-plain-text-unsafe.dat: PASS
+
+resources/pending-spec-changes.dat:
+3
+4
+
+Test 3 of 4 in resources/pending-spec-changes.dat failed. Input:
+<svg><![CDATA[]]
+Got:
+| <html>
+| <head>
+| <body>
+| <svg svg>
+| "]]"
+Expected:
+| <html>
+| <head>
+| <body>
+| <svg svg>
+
+Test 4 of 4 in resources/pending-spec-changes.dat failed. Input:
+<svg><![CDATA[]
+Got:
+| <html>
+| <head>
+| <body>
+| <svg svg>
+| "]"
+Expected:
+| <html>
+| <head>
+| <body>
+| <svg svg>
+resources/plain-text-unsafe.dat: PASS
+
resources/tests1.dat: PASS
resources/tests2.dat: PASS
resources/tests9.dat: PASS
resources/tests10.dat:
-35
-48
-49
+38
+51
+52
-Test 35 of 49 in resources/tests10.dat failed. Input:
+Test 38 of 52 in resources/tests10.dat failed. Input:
<svg><script></script><path>
Got:
| <html>
| <svg script>
| <svg path>
-Test 48 of 49 in resources/tests10.dat failed. Input:
+Test 51 of 52 in resources/tests10.dat failed. Input:
<math><annotation-xml><svg><foreignObject><div><math><mi></mi></math><span></span></div></foreignObject><path></path></svg></annotation-xml><mi>
Got:
| <html>
| <svg path>
| <math mi>
-Test 49 of 49 in resources/tests10.dat failed. Input:
+Test 52 of 52 in resources/tests10.dat failed. Input:
<math><annotation-xml><svg><foreignObject><math><mi><svg></svg></mi><mo></mo></math><span></span></foreignObject><path></path></svg></annotation-xml><mi>
Got:
| <html>
resources/tests19.dat:
63
-Test 63 of 102 in resources/tests19.dat failed. Input:
+Test 63 of 97 in resources/tests19.dat failed. Input:
<!doctype html><keygen><frameset>
Got:
| <!DOCTYPE html>
resources/entities02.dat: PASS
-resources/comments01.dat:
-3
-6
+resources/comments01.dat: PASS
-Test 3 of 13 in resources/comments01.dat failed. Input:
-FOO<!-- BAR -- >BAZ
-Got:
-| <html>
-| <head>
-| <body>
-| "FOO"
-| <!-- BAR -- >BAZ -->
-Expected:
-| <html>
-| <head>
-| <body>
-| "FOO"
-| <!-- BAR -- -->
-| "BAZ"
-
-Test 6 of 13 in resources/comments01.dat failed. Input:
-FOO<!-- BAR -- <QUX> -- MUX -- >BAZ
-Got:
-| <html>
-| <head>
-| <body>
-| "FOO"
-| <!-- BAR -- <QUX> -- MUX -- >BAZ -->
-Expected:
-| <html>
-| <head>
-| <body>
-| "FOO"
-| <!-- BAR -- <QUX> -- MUX -- -->
-| "BAZ"
resources/adoption01.dat: PASS
resources/adoption02.dat:
Markup.noAutoDump();
var test_files = [
+ 'resources/pending-spec-changes-plain-text-unsafe.dat',
+ 'resources/pending-spec-changes.dat',
+ 'resources/plain-text-unsafe.dat',
'resources/tests1.dat',
'resources/tests2.dat',
'resources/tests3.dat',