summaryrefslogtreecommitdiff
path: root/test/DOMTSHandler.pm
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2012-09-19 00:03:05 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2012-09-19 00:03:05 +0100
commitf6dfa1bd24a39ebf55993837431b10e437cade12 (patch)
tree8c6efd74987cd9c9ab0a0bd8bf8e5735bef8e7a8 /test/DOMTSHandler.pm
parent12a34ebfb1791c1ca7f09f24a0e56be4530fdfc6 (diff)
downloadlibdom-f6dfa1bd24a39ebf55993837431b10e437cade12.tar.gz
libdom-f6dfa1bd24a39ebf55993837431b10e437cade12.tar.bz2
Enable HTMLSelectElement tests
Diffstat (limited to 'test/DOMTSHandler.pm')
-rw-r--r--test/DOMTSHandler.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/DOMTSHandler.pm b/test/DOMTSHandler.pm
index 890a8ff..93a97e9 100644
--- a/test/DOMTSHandler.pm
+++ b/test/DOMTSHandler.pm
@@ -1244,6 +1244,13 @@ sub generate_control_statement {
print "foreach_initialise_domnamednodemap($coll, \&iterator$iterator_index);\n";
print "while(get_next_domnamednodemap($coll, \&iterator$iterator_index, \&$member)) {\n";
}
+
+ if ($self->{"var"}->{$coll} eq "HTMLCollection") {
+ $iterator_index++;
+ print "unsigned int iterator$iterator_index = 0;";
+ print "foreach_initialise_domhtmlcollection($coll, \&iterator$iterator_index);\n";
+ print "while(get_next_domhtmlcollection($coll, \&iterator$iterator_index, \&$member)) {\n";
+ }
}
}