summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrsk1994 <rsk1coder99@gmail.com>2014-06-05 00:46:21 (GMT)
committer Rupinder Singh Khokhar <rsk1coder99@gmail.com>2014-06-21 12:07:14 (GMT)
commitdba6ae49a546cc8da44d7586cb2b84142d44850d (patch)
tree52a73f95c132827bbb0974a50f5112237dbb8101
parent7f45b928469c5225c45ef5efb784ad7392024c6d (diff)
downloadlibdom-dba6ae49a546cc8da44d7586cb2b84142d44850d.tar.gz
libdom-dba6ae49a546cc8da44d7586cb2b84142d44850d.tar.bz2
TEST generator bug fix
Adding Test Cases & DOMTSHandler fix
-rw-r--r--test/DOMTSHandler.pm14
-rw-r--r--test/testcases/tests/level1/html/HTMLSelectElement05.xml (renamed from test/testcases/tests/level1/html/HTMLSelectElement05.xml.int-broken)0
-rw-r--r--test/testcases/tests/level1/html/HTMLSelectElement16.xml (renamed from test/testcases/tests/level1/html/HTMLSelectElement16.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLSelectElement17.xml (renamed from test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLSelectElement18.xml (renamed from test/testcases/tests/level1/html/HTMLSelectElement18.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLSelectElement19.xml (renamed from test/testcases/tests/level1/html/HTMLSelectElement19.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableElement21.xml (renamed from test/testcases/tests/level1/html/HTMLTableElement21.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableElement24.xml (renamed from test/testcases/tests/level1/html/HTMLTableElement24.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableRowElement11.xml (renamed from test/testcases/tests/level1/html/HTMLTableRowElement11.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableRowElement12.xml (renamed from test/testcases/tests/level1/html/HTMLTableRowElement12.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableRowElement13.xml (renamed from test/testcases/tests/level1/html/HTMLTableRowElement13.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableRowElement14.xml (renamed from test/testcases/tests/level1/html/HTMLTableRowElement14.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement13.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement13.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement14.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement14.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement15.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement15.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement16.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement16.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement17.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement17.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement18.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement18.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement19.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement19.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement20.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement20.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement21.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement21.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement22.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement22.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement23.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement23.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/HTMLTableSectionElement24.xml (renamed from test/testcases/tests/level1/html/HTMLTableSectionElement24.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/table06.xml (renamed from test/testcases/tests/level1/html/table06.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/table07.xml (renamed from test/testcases/tests/level1/html/table07.xml.kfail)0
-rw-r--r--test/testcases/tests/level1/html/table15.xml (renamed from test/testcases/tests/level1/html/table15.xml.kfail)0
-rw-r--r--test/testcases/tests/level2/html/HTMLTableElement40.xml (renamed from test/testcases/tests/level2/html/HTMLTableElement40.xml.kfail)0
-rw-r--r--test/testcases/tests/level2/html/HTMLTableRowElement20.xml (renamed from test/testcases/tests/level2/html/HTMLTableRowElement20.xml.kfail)0
-rw-r--r--test/testcases/tests/level2/html/HTMLTableRowElement21.xml (renamed from test/testcases/tests/level2/html/HTMLTableRowElement21.xml.kfail)0
-rw-r--r--test/testcases/tests/level2/html/HTMLTableSectionElement30.xml (renamed from test/testcases/tests/level2/html/HTMLTableSectionElement30.xml.kfail)0
-rw-r--r--test/testcases/tests/level2/html/HTMLTableSectionElement31.xml (renamed from test/testcases/tests/level2/html/HTMLTableSectionElement31.xml.kfail)0
32 files changed, 9 insertions, 5 deletions
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm
index 8953047..47dcf75 100644
--- a/test/DOMTSHandler.pm
+++ b/test/DOMTSHandler.pm
@@ -728,7 +728,7 @@ sub generate_method {
$method = to_cmethod($ats{'interface'}, $en);
my $cast = to_attribute_cast($ats{'interface'});
my $get_attribute = $node->getAttribute("name");
- my $cast_get_attribute = to_get_attribute_cast($get_attribute);
+ my $cast_get_attribute = to_get_attribute_cast($get_attribute, $ats{'interface'});
my $ns = $dd->find("parameters/param", $node);
my $params = "${cast}$ats{'obj'}";
for ($count = 1; $count <= $ns->size; $count++) {
@@ -857,7 +857,7 @@ sub generate_attribute_fetcher {
my $fetcher = to_attribute_fetcher($ats{'interface'}, "$en");
my $cast = to_attribute_cast($ats{'interface'});
my $get_attribute = $node->getAttribute("name");
- my $cast_get_attribute = to_get_attribute_cast($get_attribute);
+ my $cast_get_attribute = to_get_attribute_cast($get_attribute, $ats{'interface'});
my $unref = 0;
my $temp_node = 0;
# Deal with the situation like
@@ -1476,7 +1476,8 @@ sub get_prefix {
}
sub to_get_attribute_cast {
my $type = shift;
- my $ret = get_get_attribute_prefix($type);
+ my $interface = shift;
+ my $ret = get_get_attribute_prefix($type, $interface);
if($ret eq "") {
return $ret;
}
@@ -1486,12 +1487,15 @@ sub to_get_attribute_cast {
sub get_get_attribute_prefix {
my $type = shift;
-
- if (exists $special_prefix{$type}) {
+ my $interface = shift;
+ if ((($interface eq "HTMLCollection") or ($interface eq "HTMLSelectElement")) and ($type eq "length")) {
+ $prefix = "uint32_t ";
+ } elsif (exists $special_prefix{$type}) {
$prefix = $special_prefix{$type};
} else {
$prefix = "";
}
+
return $prefix;
}
# This function remain unsed
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement05.xml.int-broken b/test/testcases/tests/level1/html/HTMLSelectElement05.xml
index 16c78e1..16c78e1 100644
--- a/test/testcases/tests/level1/html/HTMLSelectElement05.xml.int-broken
+++ b/test/testcases/tests/level1/html/HTMLSelectElement05.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement16.xml.kfail b/test/testcases/tests/level1/html/HTMLSelectElement16.xml
index a5e9422..a5e9422 100644
--- a/test/testcases/tests/level1/html/HTMLSelectElement16.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLSelectElement16.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail b/test/testcases/tests/level1/html/HTMLSelectElement17.xml
index 03549ff..03549ff 100644
--- a/test/testcases/tests/level1/html/HTMLSelectElement17.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLSelectElement17.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement18.xml.kfail b/test/testcases/tests/level1/html/HTMLSelectElement18.xml
index aff29d9..aff29d9 100644
--- a/test/testcases/tests/level1/html/HTMLSelectElement18.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLSelectElement18.xml
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement19.xml.kfail b/test/testcases/tests/level1/html/HTMLSelectElement19.xml
index 5d06fe1..5d06fe1 100644
--- a/test/testcases/tests/level1/html/HTMLSelectElement19.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLSelectElement19.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableElement21.xml.kfail b/test/testcases/tests/level1/html/HTMLTableElement21.xml
index b50a007..b50a007 100644
--- a/test/testcases/tests/level1/html/HTMLTableElement21.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableElement21.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableElement24.xml.kfail b/test/testcases/tests/level1/html/HTMLTableElement24.xml
index 58af66e..58af66e 100644
--- a/test/testcases/tests/level1/html/HTMLTableElement24.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableElement24.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement11.xml.kfail b/test/testcases/tests/level1/html/HTMLTableRowElement11.xml
index f284090..f284090 100644
--- a/test/testcases/tests/level1/html/HTMLTableRowElement11.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableRowElement11.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement12.xml.kfail b/test/testcases/tests/level1/html/HTMLTableRowElement12.xml
index 121954c..121954c 100644
--- a/test/testcases/tests/level1/html/HTMLTableRowElement12.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableRowElement12.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement13.xml.kfail b/test/testcases/tests/level1/html/HTMLTableRowElement13.xml
index a90f596..a90f596 100644
--- a/test/testcases/tests/level1/html/HTMLTableRowElement13.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableRowElement13.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement14.xml.kfail b/test/testcases/tests/level1/html/HTMLTableRowElement14.xml
index 27af8e2..27af8e2 100644
--- a/test/testcases/tests/level1/html/HTMLTableRowElement14.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableRowElement14.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml
index 1110c65..1110c65 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml
index 83c90c0..83c90c0 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml
index 6c8f0dd..6c8f0dd 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml
index 567d86b..567d86b 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml
index 4a3e283..4a3e283 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml
index e8073be..e8073be 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml
index f8d7933..f8d7933 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml
index 99452e7..99452e7 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml
index 05d7ef8..05d7ef8 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml
index 5d8bef4..5d8bef4 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml
index eb3f972..eb3f972 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml.kfail b/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml
index 39896e1..39896e1 100644
--- a/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml.kfail
+++ b/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml
diff --git a/test/testcases/tests/level1/html/table06.xml.kfail b/test/testcases/tests/level1/html/table06.xml
index 3d461f6..3d461f6 100644
--- a/test/testcases/tests/level1/html/table06.xml.kfail
+++ b/test/testcases/tests/level1/html/table06.xml
diff --git a/test/testcases/tests/level1/html/table07.xml.kfail b/test/testcases/tests/level1/html/table07.xml
index 4a04d77..4a04d77 100644
--- a/test/testcases/tests/level1/html/table07.xml.kfail
+++ b/test/testcases/tests/level1/html/table07.xml
diff --git a/test/testcases/tests/level1/html/table15.xml.kfail b/test/testcases/tests/level1/html/table15.xml
index 89455c3..89455c3 100644
--- a/test/testcases/tests/level1/html/table15.xml.kfail
+++ b/test/testcases/tests/level1/html/table15.xml
diff --git a/test/testcases/tests/level2/html/HTMLTableElement40.xml.kfail b/test/testcases/tests/level2/html/HTMLTableElement40.xml
index 154b348..154b348 100644
--- a/test/testcases/tests/level2/html/HTMLTableElement40.xml.kfail
+++ b/test/testcases/tests/level2/html/HTMLTableElement40.xml
diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement20.xml.kfail b/test/testcases/tests/level2/html/HTMLTableRowElement20.xml
index a879e13..a879e13 100644
--- a/test/testcases/tests/level2/html/HTMLTableRowElement20.xml.kfail
+++ b/test/testcases/tests/level2/html/HTMLTableRowElement20.xml
diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement21.xml.kfail b/test/testcases/tests/level2/html/HTMLTableRowElement21.xml
index 9d5a598..9d5a598 100644
--- a/test/testcases/tests/level2/html/HTMLTableRowElement21.xml.kfail
+++ b/test/testcases/tests/level2/html/HTMLTableRowElement21.xml
diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml.kfail b/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml
index 8fd17c2..8fd17c2 100644
--- a/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml.kfail
+++ b/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml
diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml.kfail b/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml
index 55464e2..55464e2 100644
--- a/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml.kfail
+++ b/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml