2010-07-20 Adam Barth <abarth@webkit.org>
authorabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Jul 2010 01:02:04 +0000 (01:02 +0000)
committerabarth@webkit.org <abarth@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 21 Jul 2010 01:02:04 +0000 (01:02 +0000)
        Reviewed by Sam Weinig.

        Import HTML5 parsing tests from html5test.com
        https://bugs.webkit.org/show_bug.cgi?id=42713

        * html5lib/resources/html5test-com.dat: Added.
        * html5lib/runner-expected-html5.txt:
        * html5lib/runner-expected.txt:
        * html5lib/runner.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@63793 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/html5lib/resources/html5test-com.dat [new file with mode: 0644]
LayoutTests/html5lib/runner-expected-html5.txt
LayoutTests/html5lib/runner-expected.txt
LayoutTests/html5lib/runner.html

index bbeb6b0..ea89d15 100644 (file)
@@ -1,3 +1,15 @@
+2010-07-20  Adam Barth  <abarth@webkit.org>
+
+        Reviewed by Sam Weinig.
+
+        Import HTML5 parsing tests from html5test.com
+        https://bugs.webkit.org/show_bug.cgi?id=42713
+
+        * html5lib/resources/html5test-com.dat: Added.
+        * html5lib/runner-expected-html5.txt:
+        * html5lib/runner-expected.txt:
+        * html5lib/runner.html:
+
 2010-07-20  Gavin Peters  <gavinp@chromium.org>
 
         Reviewed by Adam Barth.
diff --git a/LayoutTests/html5lib/resources/html5test-com.dat b/LayoutTests/html5lib/resources/html5test-com.dat
new file mode 100644 (file)
index 0000000..d7cb71d
--- /dev/null
@@ -0,0 +1,246 @@
+#data
+<div<div>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div<div>
+
+#data
+<div foo<bar=''>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       foo<bar=""
+
+#data
+<div foo=`bar`>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       foo="`bar`"
+
+#data
+<div \"foo=''>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       \"foo=""
+
+#data
+<a href='\nbar'></a>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <a>
+|       href="\nbar"
+
+#data
+<!DOCTYPE html>
+#errors
+#document
+| <!DOCTYPE html>
+| <html>
+|   <head>
+|   <body>
+
+#data
+&lang;&rang;
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     "⟨⟩"
+
+#data
+&apos;
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     "'"
+
+#data
+&ImaginaryI;
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     "ⅈ"
+
+#data
+&Kopf;
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     "𝕂"
+
+#data
+&notinva;
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     "∉"
+
+#data
+<?import namespace="foo" implementation="#bar">
+#errors
+#document
+| <!-- ?import namespace="foo" implementation="#bar" -->
+| <html>
+|   <head>
+|   <body>
+
+#data
+<!--foo--bar-->
+#errors
+#document
+| <!-- foo--bar -->
+| <html>
+|   <head>
+|   <body>
+
+#data
+<![CDATA[x]]>
+#errors
+#document
+| <!-- [CDATA[x]] -->
+| <html>
+|   <head>
+|   <body>
+
+#data
+<textarea><!--</textarea>--></textarea>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <textarea>
+|       "<!--"
+|     "-->"
+
+#data
+<textarea><!--</textarea>-->
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <textarea>
+|       "<!--"
+|     "-->"
+
+#data
+<style><!--</style>--></style>
+#errors
+#document
+| <html>
+|   <head>
+|     <style>
+|       "<!--"
+|   <body>
+|     "-->"
+
+#data
+<style><!--</style>-->
+#errors
+#document
+| <html>
+|   <head>
+|     <style>
+|       "<!--"
+|   <body>
+|     "-->"
+
+#data
+<ul><li>A </li> <li>B</li></ul>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <ul>
+|       <li>
+|         "A "
+|       " "
+|       <li>
+|         "B"
+
+#data
+<table><form><input type=hidden><input></form><div></div></table>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <input>
+|     <div>
+|     <table>
+|       <form>
+|       <input>
+|         type="hidden"
+
+#data
+<i>A<b>B<p></i>C</b>D
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <i>
+|       "A"
+|       <b>
+|         "B"
+|     <b>
+|     <p>
+|       <b>
+|         <i>
+|         "C"
+|       "D"
+
+#data
+<div></div>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div>
+
+#data
+<svg></svg>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+
+#data
+<math></math>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <math math>
index d58b2fb..504b278 100644 (file)
@@ -172,6 +172,87 @@ resources/doctype01.dat: PASS
 
 resources/scriptdata01.dat: PASS
 
+resources/html5test-com.dat:
+7
+9
+10
+11
+20
+
+Test 7 of 24 in resources/html5test-com.dat failed. Input:
+&lang;&rang;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "〈〉"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "⟨⟩"
+
+Test 9 of 24 in resources/html5test-com.dat failed. Input:
+&ImaginaryI;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "&ImaginaryI;"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "ⅈ"
+
+Test 10 of 24 in resources/html5test-com.dat failed. Input:
+&Kopf;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "&Kopf;"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "𝕂"
+
+Test 11 of 24 in resources/html5test-com.dat failed. Input:
+&notinva;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "&notinva;"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "∉"
+
+Test 20 of 24 in resources/html5test-com.dat failed. Input:
+<table><form><input type=hidden><input></form><div></div></table>
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|     <table>
+|       <form>
+|       <input>
+|         type="hidden"
+|       <input>
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <input>
+|     <div>
+|     <table>
+|       <form>
+|       <input>
+|         type="hidden"
 resources/entities01.dat:
 2
 5
index 834e8cb..9c5e6a5 100644 (file)
@@ -4610,6 +4610,147 @@ Expected:
 |     "]>"
 resources/scriptdata01.dat: PASS
 
+resources/html5test-com.dat:
+7
+9
+10
+11
+20
+21
+23
+24
+
+Test 7 of 24 in resources/html5test-com.dat failed. Input:
+&lang;&rang;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "〈〉"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "⟨⟩"
+
+Test 9 of 24 in resources/html5test-com.dat failed. Input:
+&ImaginaryI;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "&ImaginaryI;"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "ⅈ"
+
+Test 10 of 24 in resources/html5test-com.dat failed. Input:
+&Kopf;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "&Kopf;"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "𝕂"
+
+Test 11 of 24 in resources/html5test-com.dat failed. Input:
+&notinva;
+Got:
+| <html>
+|   <head>
+|   <body>
+|     "&notinva;"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     "∉"
+
+Test 20 of 24 in resources/html5test-com.dat failed. Input:
+<table><form><input type=hidden><input></form><div></div></table>
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <input>
+|       type="hidden"
+|     <input>
+|     <div>
+|     <table>
+|       <form>
+|       <tbody>
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <input>
+|     <div>
+|     <table>
+|       <form>
+|       <input>
+|         type="hidden"
+
+Test 21 of 24 in resources/html5test-com.dat failed. Input:
+<i>A<b>B<p></i>C</b>D
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <i>
+|       "A"
+|       <b>
+|         "B"
+|     <b>
+|     <p>
+|       <b>
+|         "C"
+|       "D"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <i>
+|       "A"
+|       <b>
+|         "B"
+|     <b>
+|     <p>
+|       <b>
+|         <i>
+|         "C"
+|       "D"
+
+Test 23 of 24 in resources/html5test-com.dat failed. Input:
+<svg></svg>
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <svg>
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <svg svg>
+
+Test 24 of 24 in resources/html5test-com.dat failed. Input:
+<math></math>
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <math>
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <math math>
 resources/entities01.dat:
 2
 5
index 78428a9..cb8836b 100644 (file)
@@ -56,6 +56,7 @@ var test_files = [
         'resources/webkit01.dat',
         'resources/doctype01.dat',
         'resources/scriptdata01.dat',
+        'resources/html5test-com.dat',
         'resources/entities01.dat',
         'resources/entities02.dat',
         'resources/comments01.dat',