*** empty log message ***
authorcmontane
Sat, 06 Dec 2008 06:11:48 +0900
changeset 92 df31b7ed0fc0
parent 91 ea20f41d4ecc
child 93 58f41ac7696f
*** empty log message ***
tests/framework/DOMActivate/vendor_functions.js
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0001.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0002.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0003.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0004.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0005.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0006.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0007.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0008.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0009.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0010.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0011.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0012.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0013.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0014.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0015.html
tests/framework/DOMFocusIn/NIST_DOMFocusIn_0016.html
tests/framework/DOMFocusIn/vendor_functions.js
tests/framework/DOMFocusOut/vendor_functions.js
tests/framework/abort/vendor_functions.js
tests/framework/blur/vendor_functions.js
tests/framework/change/vendor_functions.js
tests/framework/click/NIST_click_0001.html
tests/framework/click/NIST_click_0002.html
tests/framework/click/NIST_click_0003.html
tests/framework/click/NIST_click_0004.html
tests/framework/click/NIST_click_0005.html
tests/framework/click/NIST_click_0006.html
tests/framework/click/NIST_click_0007.html
tests/framework/click/NIST_click_0008.html
tests/framework/click/NIST_click_0009.html
tests/framework/click/NIST_click_0010.html
tests/framework/click/NIST_click_0011.html
tests/framework/click/NIST_click_0012.html
tests/framework/click/NIST_click_0013.html
tests/framework/click/NIST_click_0014.html
tests/framework/click/NIST_click_0015.html
tests/framework/click/NIST_click_0016.html
tests/framework/click/NIST_click_0017.html
tests/framework/click/NIST_click_0018.html
tests/framework/click/NIST_click_0019.html
tests/framework/click/NIST_click_0020.html
tests/framework/click/NIST_click_0021.html
tests/framework/click/NIST_click_0022.html
tests/framework/click/NIST_click_0023.html
tests/framework/click/NIST_click_0024.html
tests/framework/click/NIST_click_0025.html
tests/framework/click/NIST_click_0026.html
tests/framework/click/NIST_click_0027.html
tests/framework/click/NIST_click_0028.html
tests/framework/click/NIST_click_0029.html
tests/framework/click/NIST_click_0030.html
tests/framework/click/NIST_click_0031.html
tests/framework/click/NIST_click_0032.html
tests/framework/click/NIST_click_0033.html
tests/framework/click/NIST_click_0034.html
tests/framework/click/NIST_click_0035.html
tests/framework/click/NIST_click_0036.html
tests/framework/click/NIST_click_0037.html
tests/framework/click/NIST_click_0038.html
tests/framework/click/NIST_click_0039.html
tests/framework/click/NIST_click_0040.html
tests/framework/click/NIST_click_0041.html
tests/framework/click/NIST_click_0042.html
tests/framework/click/NIST_click_0043.html
tests/framework/click/NIST_click_0044.html
tests/framework/click/NIST_click_0045.html
tests/framework/click/NIST_click_0046.html
tests/framework/click/NIST_click_0047.html
tests/framework/click/NIST_click_0048.html
tests/framework/click/vendor_functions.js
tests/framework/dbclick/NIST_dblclick_0045.html
tests/framework/dbclick/NIST_dblclick_0046.html
tests/framework/dbclick/NIST_dblclick_0047.html
tests/framework/dbclick/NIST_dblclick_0048.html
tests/framework/dbclick/vendor_functions.js
tests/framework/error/vendor_functions.js
tests/framework/focus/vendor_functions.js
tests/framework/keydown/vendor_functions.js
tests/framework/keyup/vendor_functions.js
tests/framework/load/vendor_functions.js
tests/framework/mousedown/vendor_functions.js
tests/framework/mousemove/vendor_functions.js
tests/framework/mouseout/vendor_functions.js
tests/framework/mouseover/vendor_functions.js
tests/framework/mouseup/vendor_functions.js
tests/framework/mousewheel/vendor_functions.js
tests/framework/reset/vendor_functions.js
tests/framework/resize/vendor_functions.js
tests/framework/scroll/vendor_functions.js
tests/framework/select/vendor_functions.js
tests/framework/wheel/vendor_functions.js
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMActivate/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0001.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0001.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0001.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0001" in window) {
+              NIST_DOMFocusIn_0001("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, true, window, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruetrue5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0002.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0002.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0002.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0002" in window) {
+              NIST_DOMFocusIn_0002("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, true, window, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruetrue-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0003.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0003.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0003.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0003" in window) {
+              NIST_DOMFocusIn_0003("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, true, null, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruetruenull5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0004.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0004.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0004.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0004" in window) {
+              NIST_DOMFocusIn_0004("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, true, null, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruetruenull-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0005.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0005.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0005.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0005" in window) {
+              NIST_DOMFocusIn_0005("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, false, window, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruefalse5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0006.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0006.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0006.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0006" in window) {
+              NIST_DOMFocusIn_0006("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, false, window, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruefalse-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0007.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0007.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0007.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0007" in window) {
+              NIST_DOMFocusIn_0007("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, false, null, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruefalsenull5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0008.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0008.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0008.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0008" in window) {
+              NIST_DOMFocusIn_0008("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", true, false, null, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusIntruefalsenull-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0009.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0009.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0009.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0009" in window) {
+              NIST_DOMFocusIn_0009("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, true, window, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsetrue5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0010.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0010.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0010.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0010" in window) {
+              NIST_DOMFocusIn_0010("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, true, window, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsetrue-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0011.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0011.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0011.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0011" in window) {
+              NIST_DOMFocusIn_0011("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, true, null, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsetruenull5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0012.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0012.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0012.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0012" in window) {
+              NIST_DOMFocusIn_0012("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, true, null, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsetruenull-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0013.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0013.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0013.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0013" in window) {
+              NIST_DOMFocusIn_0013("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, false, window, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsefalse5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0014.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0014.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0014.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0014" in window) {
+              NIST_DOMFocusIn_0014("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, false, window, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsefalse-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0015.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0015.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0015.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0015" in window) {
+              NIST_DOMFocusIn_0015("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, false, null, 5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsefalsenull5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/NIST_DOMFocusIn_0016.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,115 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_DOMFocusIn_0016.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_DOMFocusIn_0016.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_DOMFocusIn_0016" in window) {
+              NIST_DOMFocusIn_0016("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to DOMFocusIn event.
+      function w3c_reactToDOMFocusIn() {
+        var evt = document.createEvent("UIEvent");
+        evt.initUIEvent("DOMFocusIn", false, false, null, -5);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "DOMFocusInfalsefalsenull-5";
+	}
+
+      // Function to be executed in reaction to a DOMFocusIn removal.
+      function w3c_reactToDOMFocusInRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("DOMFocusIn", w3c_reactToDOMFocusIn(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("DOMFocusIn", w3c_reactToDOMFocusInRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated DOMFocusIn event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusIn/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/DOMFocusOut/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/abort/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/blur/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/change/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0001.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0001.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0001.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0001" in window) {
+              NIST_click_0001("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, 5, 5, 5, 5, 5, true, true, true, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue55555truetruetruetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0002.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0002.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0002.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0002" in window) {
+              NIST_click_0002("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, 5, -5, -5, -5, -5, false, false, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue5-5-5-5-5falsefalsefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0003.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0003.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0003.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0003" in window) {
+              NIST_click_0003("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, -5, 5, -5, 5, -5, true, false, true, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue-55-55-5truefalsetruefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0004.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0004.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0004.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0004" in window) {
+              NIST_click_0004("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, -5, -5, 5, -5, 5, false, true, false, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue-5-55-55falsetruefalsetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0005.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0005.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0005.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0005" in window) {
+              NIST_click_0005("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, 5, -5, -5, 5, true, false, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse55-5-55truefalsefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0006.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0006.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0006.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0006" in window) {
+              NIST_click_0006("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, -5, 5, 5, -5, false, true, true, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse5-555-5falsetruetruefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0007.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0007.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0007.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0007" in window) {
+              NIST_click_0007("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, -5, 5, 5, -5, -5, true, true, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse-555-5-5truetruefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0008.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0008.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0008.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0008" in window) {
+              NIST_click_0008("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, -5, -5, -5, 5, 5, false, false, true, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse-5-5-555falsefalsetruetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0009.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0009.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0009.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0009" in window) {
+              NIST_click_0009("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, 5, -5, 5, 5, false, true, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue55-555falsetruefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0010.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0010.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0010.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0010" in window) {
+              NIST_click_0010("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, -5, 5, -5, -5, true, false, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue5-55-5-5truefalsetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0011.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0011.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0011.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0011" in window) {
+              NIST_click_0011("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, -5, 5, 5, 5, -5, false, false, false, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue-5555-5falsefalsefalsetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0012.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0012.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0012.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0012" in window) {
+              NIST_click_0012("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, -5, -5, -5, -5, 5, true, true, true, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue-5-5-5-55truetruetruefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0013.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0013.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0013.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0013" in window) {
+              NIST_click_0013("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, 5, 5, 5, -5, 5, false, false, true, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse555-55falsefalsetruefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0014.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0014.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0014.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0014" in window) {
+              NIST_click_0014("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, 5, -5, -5, 5, -5, true, true, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse5-5-55-5truetruefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0015.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0015.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0015.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0015" in window) {
+              NIST_click_0015("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, 5, -5, -5, -5, false, true, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-55-5-5-5falsetruetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0016.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0016.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0016.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0016" in window) {
+              NIST_click_0016("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, -5, 5, 5, 5, true, false, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-5-5555truefalsefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0017.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0017.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0017.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0017" in window) {
+              NIST_click_0017("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, -5, 5, 5, 5, false, false, true, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue5-5555falsefalsetruetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0018.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0018.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0018.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0018" in window) {
+              NIST_click_0018("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, -5, -5, -5, 5, -5, false, true, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue-5-5-55-5falsetruefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0019.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0019.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0019.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0019" in window) {
+              NIST_click_0019("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, 5, 5, 5, -5, false, false, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse5555-5falsefalsefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0020.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0020.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0020.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0020" in window) {
+              NIST_click_0020("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, 5, -5, 5, 5, true, true, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-55-555truetruetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0021.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0021.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0021.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0021" in window) {
+              NIST_click_0021("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, 5, 5, 5, -5, -5, true, true, true, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue555-5-5truetruetruefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0022.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0022.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0022.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0022" in window) {
+              NIST_click_0022("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, -5, 5, -5, -5, 5, false, false, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue-55-5-55falsefalsefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0023.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0023.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0023.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0023" in window) {
+              NIST_click_0023("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, -5, 5, -5, 5, true, true, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse5-55-55truetruefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0024.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0024.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0024.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0024" in window) {
+              NIST_click_0024("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, -5, -5, -5, -5, true, false, true, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-5-5-5-5-5truefalsetruefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0025.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0025.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0025.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0025" in window) {
+              NIST_click_0025("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, 5, -5, -5, 5, 5, true, true, false, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue5-5-555truetruefalsetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0026.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0026.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0026.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0026" in window) {
+              NIST_click_0026("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, -5, -5, 5, 5, -5, true, false, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse-5-555-5truefalsetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0027.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0027.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0027.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0027" in window) {
+              NIST_click_0027("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, 5, -5, -5, -5, true, false, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue55-5-5-5truefalsefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0028.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0028.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0028.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0028" in window) {
+              NIST_click_0028("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, 5, 5, -5, 5, false, true, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-555-55falsetruefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0029.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0029.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0029.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0029" in window) {
+              NIST_click_0029("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, -5, -5, -5, 5, false, true, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue5-5-5-55falsetruetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0030.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0030.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0030.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0030" in window) {
+              NIST_click_0030("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, -5, 5, 5, 5, 5, true, true, true, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue-55555truetruetruefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0031.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0031.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0031.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0031" in window) {
+              NIST_click_0031("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, 5, -5, 5, 5, false, true, true, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse55-555falsetruetruefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0032.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0032.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0032.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0032" in window) {
+              NIST_click_0032("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, 5, -5, 5, -5, false, false, true, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue55-55-5falsefalsetruefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0033.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0033.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0033.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0033" in window) {
+              NIST_click_0033("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, -5, -5, 5, -5, -5, false, false, true, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue-5-55-5-5falsefalsetruetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0034.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0034.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0034.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0034" in window) {
+              NIST_click_0034("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, -5, -5, -5, -5, false, true, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse5-5-5-5-5falsetruefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0035.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0035.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0035.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0035" in window) {
+              NIST_click_0035("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, -5, 5, 5, -5, false, true, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-5-555-5falsetruefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0036.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0036.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0036.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0036" in window) {
+              NIST_click_0036("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, -5, -5, 5, -5, 5, true, false, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue-5-55-55truefalsefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0037.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0037.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0037.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0037" in window) {
+              NIST_click_0037("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, 5, 5, 5, 5, true, false, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue55555truefalsefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0038.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0038.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0038.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0038" in window) {
+              NIST_click_0038("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, true, window, -5, 5, -5, 5, -5, false, true, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruetrue-55-55-5falsetruetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0039.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0039.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0039.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0039" in window) {
+              NIST_click_0039("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, 5, -5, -5, -5, 5, true, false, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse5-5-5-55truefalsetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0040.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0040.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0040.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0040" in window) {
+              NIST_click_0040("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, -5, 5, -5, 5, -5, true, false, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse-55-55-5truefalsefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0041.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0041.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0041.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0041" in window) {
+              NIST_click_0041("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, 5, -5, 5, -5, 5, false, true, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue5-55-55falsetruefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0042.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0042.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0042.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0042" in window) {
+              NIST_click_0042("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, 5, 5, -5, -5, 5, true, false, true, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse55-5-55truefalsetruetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0043.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0043.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0043.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0043" in window) {
+              NIST_click_0043("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, true, window, -5, -5, 5, -5, -5, true, true, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsetrue-5-55-5-5truetruefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0044.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0044.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0044.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0044" in window) {
+              NIST_click_0044("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, 5, 5, 5, -5, false, false, true, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-5555-5falsefalsetruefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0045.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0045.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0045.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0045" in window) {
+              NIST_click_0045("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, -5, -5, -5, 5, 5, false, false, false, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse-5-5-555falsefalsefalsetrue10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0046.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0046.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0046.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0046" in window) {
+              NIST_click_0046("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, 5, 5, -5, -5, -5, true, true, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse55-5-5-5truetruefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0047.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0047.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0047.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0047" in window) {
+              NIST_click_0047("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", false, false, window, 5, 5, 5, -5, -5, true, false, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clickfalsefalse555-5-5truefalsefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/NIST_click_0048.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_click_0048.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_click_0048.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_click_0048" in window) {
+              NIST_click_0048("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to click event.
+      function w3c_reactToClick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("click", true, false, window, -5, -5, -5, -5, 5, true, true, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "clicktruefalse-5-5-5-55truetruefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a click removal.
+      function w3c_reactToClickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("click", w3c_reactToClick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("click", w3c_reactToClickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated click event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/click/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/dbclick/NIST_dblclick_0045.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_dblclick_0045.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_dblclick_0045.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_dblclick_0045" in window) {
+              NIST_dblclick_0045("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to dblclick event.
+      function w3c_reactToDblclick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("dblclick", false, false, window, -5, -5, -5, 5, 5, false, false, false, true, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "dblclickfalsefalse-5-5-555falsefalsefalsetrue10null";
+	}
+
+      // Function to be executed in reaction to a dblclick removal.
+      function w3c_reactToDblclickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("dblclick", w3c_reactToDblclick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("dblclick", w3c_reactToDblclickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated dblclick event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/dbclick/NIST_dblclick_0046.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_dblclick_0046.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_dblclick_0046.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_dblclick_0046" in window) {
+              NIST_dblclick_0046("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to dblclick event.
+      function w3c_reactToDblclick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("dblclick", false, false, window, 5, 5, -5, -5, -5, true, true, false, false, 10, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "dblclickfalsefalse55-5-5-5truetruefalsefalse10null";
+	}
+
+      // Function to be executed in reaction to a dblclick removal.
+      function w3c_reactToDblclickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("dblclick", w3c_reactToDblclick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("dblclick", w3c_reactToDblclickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated dblclick event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/dbclick/NIST_dblclick_0047.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_dblclick_0047.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_dblclick_0047.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_dblclick_0047" in window) {
+              NIST_dblclick_0047("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to dblclick event.
+      function w3c_reactToDblclick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("dblclick", true, false, window, 5, 5, 5, -5, 5, false, false, false, false, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "dblclicktruefalse555-55falsefalsefalsefalse5null";
+	}
+
+      // Function to be executed in reaction to a dblclick removal.
+      function w3c_reactToDblclickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("dblclick", w3c_reactToDblclick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("dblclick", w3c_reactToDblclickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated dblclick event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/dbclick/NIST_dblclick_0048.html	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,125 @@
+ 
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+                     "http://www.w3.org/TR/html4/loose.dtd">
+<html> 
+  <!-- Test Name: NIST_dblclick_0048.html --> 
+  <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+  <head>
+    <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+    <title>DOM Events API Test Suite - NIST_dblclick_0048.html</title>
+ 
+    <style>
+      #result:after {
+        display: block;
+      }
+      .not_yet_tested:after {
+        background-color: yellow;
+        content: "Not yet tested";
+      }
+      .failed:after {
+        background-color: red;
+        content: "Failed";
+      }
+      .passed:after {
+        background-color: green;
+        content: "Passed";
+      }
+    </style>
+    <script type="text/javascript">
+      // Function to begin the test.
+      function w3c_beginTest() {
+        if ("vendor_beginTest" in window) { 
+              vendor_beginTest();
+        }
+        if ("NIST_dblclick_0048" in window) {
+              NIST_dblclick_0048("tbl");
+        }
+        w3c_addEventListener();
+      }
+
+      // Function to end the test.
+      function w3c_endTest() {
+        if ("vendor_endTest" in window) { 
+              vendor_endTest();
+        }
+      }
+
+      //Function to report test result.
+
+      function w3c_reportResult() {
+        if ("vendor_reportResult" in window) { 
+              vendor_reportResult();
+        }
+        w3c_endTest();
+      }
+
+      //Function to be executed in reaction to dblclick event.
+      function w3c_reactToDblclick() {
+        var evt = document.createEvent("MouseEvent");
+        evt.initMouseEvent("dblclick", true, true, window, -5, -5, -5, 5, 5, true, true, false, true, 5, null);
+    	var target = document.getElementById("tb1");
+    	target.dispatchEvent(evt);
+    	_actualResults = getActualResults(evt);
+    	_expectedResults = getExpectedResults();
+        w3c_removeEventListener();
+        w3c_reportResult();
+      }
+      
+      function getActualResults(evt) 
+        {
+               var act = evt.type;
+               act += evt.bubbles;
+               act += evt.cancelable;
+               act += evt.detail;
+               act += evt.screenX;
+               act += evt.screenY;
+               act += evt.clientX;
+               act += evt.clientY;
+               act += evt.ctrlKey;
+               act += evt.altKey;
+               act += evt.shiftKey;
+               act += evt.metaKey;
+               act += evt.button;
+               act += evt.relatedTarget;
+               return act;
+        }
+      function getExpectedResults()
+	{
+	   return "dblclicktruetrue-5-5-555truetruefalsetrue5null";
+	}
+
+      // Function to be executed in reaction to a dblclick removal.
+      function w3c_reactToDblclickRemoval() {
+      }
+            
+      // Function to add a listener to the element.
+      function w3c_addEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.addEventListener) {  
+              e1.addEventListener("dblclick", w3c_reactToDblclick(), false);
+        }
+      }
+
+      // Function to remove a listener from the element.
+      function w3c_removeEventListener() {
+        var e1 = document.getElementById("tb1");
+        if (document.removeEventListener) {  
+              e1.removeEventListener("dblclick", w3c_reactToDblclickRemoval(), false);
+        }
+      }
+    </script>
+ 
+    <script type="text/javascript" src="vendor_functions.js"></script>
+  </head>
+  <body onload="w3c_beginTest();">
+    <h3>Evaluate a simulated dblclick event over a table element</h3>
+    <table id="tb1">
+      <tr><td id="t1">Row 1, Cell 1</td><td id="t6">Row 1, Cell 2</td></tr> 
+      <tr><td id="t2">Row 2, Cell 1</td><td id="t7">Row 2, Cell 2</td></tr> 
+      <tr><td id="t3">Row 3, Cell 1</td><td id="t8">Row 3, Cell 2</td></tr>    
+      <tr><td id="t4">Row 4, Cell 1</td><td id="t9">Row 4, Cell 2</td></tr>
+      <tr><td id="t5">Row 5, Cell 1</td><td id="t10">Row 5, Cell 2</td></tr>   
+    </table>
+    <div id="result" class="not_yet_tested"></div>
+  </body> 
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/dbclick/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/error/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/focus/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/keydown/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/keyup/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/load/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mousedown/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mousemove/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mouseout/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mouseover/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mouseup/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mousewheel/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/reset/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/resize/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/scroll/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/select/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/wheel/vendor_functions.js	Sat Dec 06 06:11:48 2008 +0900
@@ -0,0 +1,10 @@
+var _actualResults = "actual";
+var _expectedResults = "expected";
+ 
+function vendor_reportResult()
+{
+    if (_actualResults == _expectedResults)
+       document.getElementById("result").setAttribute("class", "passed");
+     else          
+       document.getElementById("result").setAttribute("class", "failed");
+}
\ No newline at end of file