Sync html5lib tests with latest sources (and sort the tests alphabetically in runner...
authoreric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Sep 2012 21:21:06 +0000 (21:21 +0000)
committereric@webkit.org <eric@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 12 Sep 2012 21:21:06 +0000 (21:21 +0000)
https://bugs.webkit.org/show_bug.cgi?id=96544

Reviewed by Adam Barth.

* html5lib/resources/adoption01.dat:
* html5lib/resources/domjs-unsafe.dat: Added.
* html5lib/resources/scripted/ark.dat: Added.
* html5lib/runner.html:

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

LayoutTests/ChangeLog
LayoutTests/html5lib/resources/adoption01.dat
LayoutTests/html5lib/resources/domjs-unsafe.dat [new file with mode: 0644]
LayoutTests/html5lib/resources/scripted/ark.dat [new file with mode: 0644]
LayoutTests/html5lib/runner-expected.txt
LayoutTests/html5lib/runner.html

index d315bb9..a5e85b4 100644 (file)
@@ -1,3 +1,15 @@
+2012-09-12  Eric Seidel  <eric@webkit.org>
+
+        Sync html5lib tests with latest sources (and sort the tests alphabetically in runner.html)
+        https://bugs.webkit.org/show_bug.cgi?id=96544
+
+        Reviewed by Adam Barth.
+
+        * html5lib/resources/adoption01.dat:
+        * html5lib/resources/domjs-unsafe.dat: Added.
+        * html5lib/resources/scripted/ark.dat: Added.
+        * html5lib/runner.html:
+
 2012-09-12  Adam Klein  <adamk@chromium.org>
 
         Widen CRASH expectations for fast/replaced/border-radius-clip.html
index 787e1b0..207a468 100644 (file)
 |       <svg svg>
 |         <svg tr>
 |           <svg input>
+
+#data
+<div><a><b><div><div><div><div><div><div><div><div><div><div></a>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       <a>
+|         <b>
+|       <b>
+|         <div>
+|           <a>
+|           <div>
+|             <a>
+|             <div>
+|               <a>
+|               <div>
+|                 <a>
+|                 <div>
+|                   <a>
+|                   <div>
+|                     <a>
+|                     <div>
+|                       <a>
+|                       <div>
+|                         <a>
+|                         <div>
+|                           <div>
+
+#data
+<div><a><b><u><i><code><div></a>
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       <a>
+|         <b>
+|           <u>
+|             <i>
+|               <code>
+|       <u>
+|         <i>
+|           <code>
+|             <div>
+|               <a>
+
+#data
+<b><b><b><b>x</b></b></b></b>y
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <b>
+|       <b>
+|         <b>
+|           <b>
+|             "x"
+|     "y"
+
+#data
+<p><b><b><b><b><p>x
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <p>
+|       <b>
+|         <b>
+|           <b>
+|             <b>
+|     <p>
+|       <b>
+|         <b>
+|           <b>
+|             "x"
diff --git a/LayoutTests/html5lib/resources/domjs-unsafe.dat b/LayoutTests/html5lib/resources/domjs-unsafe.dat
new file mode 100644 (file)
index 0000000..905b94e
Binary files /dev/null and b/LayoutTests/html5lib/resources/domjs-unsafe.dat differ
diff --git a/LayoutTests/html5lib/resources/scripted/ark.dat b/LayoutTests/html5lib/resources/scripted/ark.dat
new file mode 100644 (file)
index 0000000..acbac41
--- /dev/null
@@ -0,0 +1,26 @@
+#data
+<p><font size=4><font size=4><font size=4><script>document.getElementsByTagName("font")[2].setAttribute("size", "5");</script><font size=4><p>X
+#errors
+#document
+| <html>
+|   <head>
+|   <body>
+|     <p>
+|       <font>
+|         size="4"
+|         <font>
+|           size="4"
+|           <font>
+|             size="5"
+|             <script>
+|               "document.getElementsByTagName("font")[2].setAttribute("size", "5");"
+|             <font>
+|               size="4"
+|     <p>
+|       <font>
+|         size="4"
+|         <font>
+|           size="4"
+|           <font>
+|             size="4"
+|             "X"
index cd5a20f..3f68801 100644 (file)
@@ -7,42 +7,125 @@ html
 
 CONSOLE MESSAGE: line 2: PASS
 CONSOLE MESSAGE: line 2: FOO<span>BAR</span>BAZ
-resources/pending-spec-changes-plain-text-unsafe.dat: PASS
+resources/adoption01.dat:
+14
+16
+
+Test 14 of 17 in resources/adoption01.dat failed. Input:
+<div><a><b><div><div><div><div><div><div><div><div><div><div></a>
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       <a>
+|         <b>
+|       <b>
+|         <div>
+|           <a>
+|           <div>
+|             <a>
+|             <div>
+|               <a>
+|               <div>
+|                 <a>
+|                 <div>
+|                   <a>
+|                   <div>
+|                     <a>
+|                     <div>
+|                       <a>
+|                       <div>
+|                         <a>
+|                           <div>
+|                             <div>
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <div>
+|       <a>
+|         <b>
+|       <b>
+|         <div>
+|           <a>
+|           <div>
+|             <a>
+|             <div>
+|               <a>
+|               <div>
+|                 <a>
+|                 <div>
+|                   <a>
+|                   <div>
+|                     <a>
+|                     <div>
+|                       <a>
+|                       <div>
+|                         <a>
+|                         <div>
+|                           <div>
+
+Test 16 of 17 in resources/adoption01.dat failed. Input:
+<b><b><b><b>x</b></b></b></b>y
+Got:
+| <html>
+|   <head>
+|   <body>
+|     <b>
+|       <b>
+|         <b>
+|           <b>
+|             "x"
+|       "y"
+Expected:
+| <html>
+|   <head>
+|   <body>
+|     <b>
+|       <b>
+|         <b>
+|           <b>
+|             "x"
+|     "y"
+resources/adoption02.dat: PASS
 
-resources/pending-spec-changes.dat: PASS
+resources/comments01.dat: PASS
 
-resources/plain-text-unsafe.dat: PASS
+resources/doctype01.dat: PASS
 
-resources/tests_innerHTML_1.dat: PASS
+resources/domjs-unsafe.dat: PASS
 
-resources/webkit01.dat: PASS
+resources/entities01.dat: PASS
 
-resources/webkit02.dat: PASS
+resources/entities02.dat: PASS
 
-resources/doctype01.dat: PASS
+resources/html5test-com.dat: PASS
 
-resources/scriptdata01.dat: PASS
+resources/inbody01.dat: PASS
 
-resources/html5test-com.dat: PASS
+resources/isindex.dat: PASS
 
-resources/entities01.dat: PASS
+resources/pending-spec-changes-plain-text-unsafe.dat: PASS
 
-resources/entities02.dat: PASS
+resources/pending-spec-changes.dat: PASS
 
-resources/comments01.dat: PASS
+resources/plain-text-unsafe.dat: PASS
 
-resources/adoption01.dat: PASS
+resources/scriptdata01.dat: PASS
 
-resources/adoption02.dat: PASS
+resources/scripted/adoption01.dat: PASS
 
-resources/inbody01.dat: PASS
+resources/scripted/ark.dat: PASS
 
-resources/isindex.dat: PASS
+resources/scripted/webkit01.dat: PASS
 
 resources/tables01.dat: PASS
 
+resources/tests_innerHTML_1.dat: PASS
+
 resources/tricky01.dat: PASS
 
-resources/scripted/adoption01.dat: PASS
+resources/webkit01.dat: PASS
 
-resources/scripted/webkit01.dat: PASS
+resources/webkit02.dat: PASS
index f3bdd74..b5d80e8 100644 (file)
@@ -1,26 +1,28 @@
 <!doctype html>
 <script>
 var test_files = [
-  'resources/pending-spec-changes-plain-text-unsafe.dat',
-  'resources/pending-spec-changes.dat',
-  'resources/plain-text-unsafe.dat',
-  'resources/tests_innerHTML_1.dat',
-  'resources/webkit01.dat',
-  'resources/webkit02.dat',
+  'resources/adoption01.dat',
+  'resources/adoption02.dat',
+  'resources/comments01.dat',
   'resources/doctype01.dat',
-  'resources/scriptdata01.dat',
-  'resources/html5test-com.dat',
+  'resources/domjs-unsafe.dat',
   'resources/entities01.dat',
   'resources/entities02.dat',
-  'resources/comments01.dat',
-  'resources/adoption01.dat',
-  'resources/adoption02.dat',
+  'resources/html5test-com.dat',
   'resources/inbody01.dat',
   'resources/isindex.dat',
+  'resources/pending-spec-changes-plain-text-unsafe.dat',
+  'resources/pending-spec-changes.dat',
+  'resources/plain-text-unsafe.dat',
+  'resources/scriptdata01.dat',
+  'resources/scripted/adoption01.dat',
+  'resources/scripted/ark.dat',
+  'resources/scripted/webkit01.dat',
   'resources/tables01.dat',
+  'resources/tests_innerHTML_1.dat',
   'resources/tricky01.dat',
-  'resources/scripted/adoption01.dat',
-  'resources/scripted/webkit01.dat'
+  'resources/webkit01.dat',
+  'resources/webkit02.dat',
 ];
 </script>
 <script src=../resources/dump-as-markup.js></script>