diff options
author | rsk1994 <rsk1coder99@gmail.com> | 2014-05-31 09:07:42 +0530 |
---|---|---|
committer | Rupinder Singh Khokhar <rsk1coder99@gmail.com> | 2014-06-11 04:27:11 +0530 |
commit | f0a3c95cfc4a5595f930cd5dd14d6cbbf1f85312 (patch) | |
tree | 5f74ee26934ca2c29dcf9b61061c035ff5dce801 /test/testcases/tests/level2/html/files | |
parent | ca30ba7de4c3b0b17a61e1f07032575a01f2cd25 (diff) | |
download | libdom-f0a3c95cfc4a5595f930cd5dd14d6cbbf1f85312.tar.gz libdom-f0a3c95cfc4a5595f930cd5dd14d6cbbf1f85312.tar.bz2 |
tableSectionElement Rev.2 && tableCellElement Rev.4 && tableElement Rev.1 && tableRowElement Rev.1 && DOMTSHandler(Test Suite) Revised and implemented inefficient ways to produce correct .c's && other minor bg fixes in HTMLCollection... Tests expecting 2nd attribute of dom_html_collection_get_length to be of type int32_t aren't enabled yet. Will be done in a later commit.
Diffstat (limited to 'test/testcases/tests/level2/html/files')
-rw-r--r-- | test/testcases/tests/level2/html/files/table.html | 78 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/table.xhtml | 81 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/table.xml | 81 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/table1.html | 12 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/table1.xhtml | 15 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/table1.xml | 15 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/tablerow.html | 59 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/tablerow.xhtml | 62 | ||||
-rw-r--r-- | test/testcases/tests/level2/html/files/tablerow.xml | 62 |
9 files changed, 465 insertions, 0 deletions
diff --git a/test/testcases/tests/level2/html/files/table.html b/test/testcases/tests/level2/html/files/table.html new file mode 100644 index 0000000..b8f151e --- /dev/null +++ b/test/testcases/tests/level2/html/files/table.html @@ -0,0 +1,78 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE ALIGN="center" SUMMARY="Table 1"> +<TR> +<TH>Id</TH> +<TH>Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +</TABLE> +<TABLE ID="table-1" ALIGN="center" BORDER="4" BGCOLOR="#ff0000" FRAME="border" CELLPADDING="2" CELLSPACING="2" SUMMARY="HTML Control Table" RULES="all" WIDTH="680"> +<CAPTION ALIGN="top">Table Caption</CAPTION> +<THEAD ALIGN="center" VALIGN="middle"> +<TR ALIGN="center" BGCOLOR="#00FFFF" VALIGN="middle"> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="maiden" AXIS="center" ALIGN="center" BGCOLOR="#00FFFF" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle" WIDTH="100">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +<TH>Gender</TH> +<TH>Address</TH> +</TR> +</THEAD> +<TFOOT ALIGN="center" VALIGN="middle"> +<TR> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +</TR> +</TFOOT> +<TBODY ALIGN="center" VALIGN="middle"> +<TR> +<TD AXIS="center" ID="Table-3" ABBR="maiden2" ALIGN="center" BGCOLOR="#FF0000" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-2" VALIGN="middle" WIDTH="175">EMP0001</TD> +<TD HEADERS="header-2">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +<TD>Female</TD> +<TD>1230 North Ave. Dallas, Texas 98551</TD> +</TR> +<TR> +<TD>EMP0002</TD> +<TD>Martha Raynolds</TD> +<TD>Secretary</TD> +<TD>35,000</TD> +<TD>Female</TD> +<TD>1900 Dallas Road Dallas, Texas 98554</TD> +</TR> +</TBODY> +</TABLE> +<TABLE SUMMARY="Table 3"> +<TBODY> +<TR> +<TD> +</TD> +</TR> +</TBODY> +<TBODY> +<TR> +<TD> +</TD> +</TR> +</TBODY> +<TBODY> +<TR> +<TD> +</TD> +</TR> +</TBODY> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level2/html/files/table.xhtml b/test/testcases/tests/level2/html/files/table.xhtml new file mode 100644 index 0000000..8300b90 --- /dev/null +++ b/test/testcases/tests/level2/html/files/table.xhtml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +<table summary="Table 3"> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level2/html/files/table.xml b/test/testcases/tests/level2/html/files/table.xml new file mode 100644 index 0000000..8300b90 --- /dev/null +++ b/test/testcases/tests/level2/html/files/table.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +<table summary="Table 3"> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level2/html/files/table1.html b/test/testcases/tests/level2/html/files/table1.html new file mode 100644 index 0000000..8f5d19b --- /dev/null +++ b/test/testcases/tests/level2/html/files/table1.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE SUMMARY="Empty Table"> +<tr><td>HTML can't abide empty table</td></tr> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level2/html/files/table1.xhtml b/test/testcases/tests/level2/html/files/table1.xhtml new file mode 100644 index 0000000..e174c63 --- /dev/null +++ b/test/testcases/tests/level2/html/files/table1.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Empty Table"> +<tr><td>XHTML can't abide empty table</td></tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level2/html/files/table1.xml b/test/testcases/tests/level2/html/files/table1.xml new file mode 100644 index 0000000..e174c63 --- /dev/null +++ b/test/testcases/tests/level2/html/files/table1.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Empty Table"> +<tr><td>XHTML can't abide empty table</td></tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level2/html/files/tablerow.html b/test/testcases/tests/level2/html/files/tablerow.html new file mode 100644 index 0000000..9e76a4c --- /dev/null +++ b/test/testcases/tests/level2/html/files/tablerow.html @@ -0,0 +1,59 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLEROW</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE ALIGN="center" SUMMARY="Table 1"> +<TR> +<TH>Id</TH> +<TH>Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +</TABLE> +<TABLE ID="table-1" ALIGN="center" BORDER="4" BGCOLOR="#ff0000" FRAME="border" CELLPADDING="2" CELLSPACING="2" SUMMARY="HTML Control Table" RULES="all" WIDTH="680"> +<CAPTION ALIGN="top">Table Caption</CAPTION> +<THEAD ALIGN="center" VALIGN="middle"> +<TR ALIGN="center" BGCOLOR="#00FFFF" VALIGN="middle" CHAR="*" CHAROFF="1"> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="maiden" AXIS="center" ALIGN="center" BGCOLOR="#00FFFF" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle" WIDTH="100">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +<TH>Gender</TH> +<TH>Address</TH> +</TR> +</THEAD> +<TFOOT ALIGN="center" VALIGN="middle"> +<TR> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +</TR> +</TFOOT> +<TBODY ALIGN="center" VALIGN="middle"> +<TR> +<TD AXIS="center" ID="Table-3" ABBR="maiden2" ALIGN="center" BGCOLOR="#FF0000" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-2" VALIGN="middle" WIDTH="175">EMP0001</TD> +<TD HEADERS="header-2">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +<TD>Female</TD> +<TD>1230 North Ave. Dallas, Texas 98551</TD> +</TR> +<TR> +<TD>EMP0002</TD> +<TD>Martha Raynolds</TD> +<TD>Secretary</TD> +<TD>35,000</TD> +<TD>Female</TD> +<TD>1900 Dallas Road Dallas, Texas 98554</TD> +</TR> +</TBODY> +</TABLE> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level2/html/files/tablerow.xhtml b/test/testcases/tests/level2/html/files/tablerow.xhtml new file mode 100644 index 0000000..b901e3c --- /dev/null +++ b/test/testcases/tests/level2/html/files/tablerow.xhtml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +</body> +</html> + + diff --git a/test/testcases/tests/level2/html/files/tablerow.xml b/test/testcases/tests/level2/html/files/tablerow.xml new file mode 100644 index 0000000..b901e3c --- /dev/null +++ b/test/testcases/tests/level2/html/files/tablerow.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +</body> +</html> + + |