summaryrefslogtreecommitdiff
path: root/test/data/tree-construction/scripted
diff options
context:
space:
mode:
authorRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-11 09:13:22 +0530
committerRupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-17 02:42:17 +0530
commit34f1fae56766782ad5142db64879b348c01060bb (patch)
tree95df95dca6987b783a73d48b45674cb48d3af8e3 /test/data/tree-construction/scripted
parent7630ae893aad7fbb168d073f405cfa2110ccb530 (diff)
downloadlibhubbub-34f1fae56766782ad5142db64879b348c01060bb.tar.gz
libhubbub-34f1fae56766782ad5142db64879b348c01060bb.tar.bz2
Adding the latest test files without fixing the INDEXes or the test interfaces
Diffstat (limited to 'test/data/tree-construction/scripted')
-rw-r--r--test/data/tree-construction/scripted/adoption01.dat15
-rw-r--r--test/data/tree-construction/scripted/ark.dat26
-rw-r--r--test/data/tree-construction/scripted/webkit01.dat28
3 files changed, 69 insertions, 0 deletions
diff --git a/test/data/tree-construction/scripted/adoption01.dat b/test/data/tree-construction/scripted/adoption01.dat
new file mode 100644
index 0000000..4e08d0e
--- /dev/null
+++ b/test/data/tree-construction/scripted/adoption01.dat
@@ -0,0 +1,15 @@
+#data
+<p><b id="A"><script>document.getElementById("A").id = "B"</script></p>TEXT</b>
+#errors
+#document
+| <html>
+| <head>
+| <body>
+| <p>
+| <b>
+| id="B"
+| <script>
+| "document.getElementById("A").id = "B""
+| <b>
+| id="A"
+| "TEXT"
diff --git a/test/data/tree-construction/scripted/ark.dat b/test/data/tree-construction/scripted/ark.dat
new file mode 100644
index 0000000..acbac41
--- /dev/null
+++ b/test/data/tree-construction/scripted/ark.dat
@@ -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"
diff --git a/test/data/tree-construction/scripted/webkit01.dat b/test/data/tree-construction/scripted/webkit01.dat
new file mode 100644
index 0000000..ef4a41c
--- /dev/null
+++ b/test/data/tree-construction/scripted/webkit01.dat
@@ -0,0 +1,28 @@
+#data
+1<script>document.write("2")</script>3
+#errors
+#document
+| <html>
+| <head>
+| <body>
+| "1"
+| <script>
+| "document.write("2")"
+| "23"
+
+#data
+1<script>document.write("<script>document.write('2')</scr"+ "ipt><script>document.write('3')</scr" + "ipt>")</script>4
+#errors
+#document
+| <html>
+| <head>
+| <body>
+| "1"
+| <script>
+| "document.write("<script>document.write('2')</scr"+ "ipt><script>document.write('3')</scr" + "ipt>")"
+| <script>
+| "document.write('2')"
+| "2"
+| <script>
+| "document.write('3')"
+| "34"