--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/abort/NIST_abort_0005.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0005" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "abort", true, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comaborttruetrue";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0006.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0006" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "abort", true, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comaborttruefalse";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0007.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0007" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "abort", false, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comabortfalsetrue";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0008.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0008" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "abort", false, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comabortfalsefalse";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0009.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0009" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "abort", true, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullaborttruetrue";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0010.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0010" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "abort", true, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullaborttruefalse";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0011.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0011" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "abort", false, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullabortfalsetrue";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/abort/NIST_abort_0012.html Sat Jan 17 04:51:18 2009 +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_abort_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_abort_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_abort_0012" in window) {
+ NIST_abort_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 abort event.
+ function w3c_reactToAbort() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "abort", false, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullabortfalsefalse";
+ }
+
+ // Function to be executed in reaction to a abort removal.
+ function w3c_reactToAbortRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("abort", w3c_reactToAbort(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("abort", w3c_reactToAbortRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated abort 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/blur/NIST_blur_0017.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0017" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", true, true, evt.view, 5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurtruetrue5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0018.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0018" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", true, true, evt.view, -5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurtruetrue-5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0019.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0019" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", true, false, evt.view, 5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurtruefalse5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0020.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0020" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", true, false, evt.view, -5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurtruefalse-5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0021.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0021" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", false, true, evt.view, 5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurfalsetrue5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0022.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0022" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", false, true, evt.view, -5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurfalsetrue-5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0023.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0023" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.org", "blur", false, false, evt.view, 5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurfalsefalse5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/blur/NIST_blur_0024.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,116 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_blur_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_blur_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_blur_0024" in window) {
+ NIST_blur_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 blur event.
+ function w3c_reactToBlur() {
+ var evt = document.createEvent("UIEvent");
+ evt.initUIEventNS("www.example.com", "blur", false, false, evt.view, -5);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgblurfalsefalse-5";
+ }
+
+ // Function to be executed in reaction to a blur removal.
+ function w3c_reactToBlurRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("blur", w3c_reactToBlur(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("blur", w3c_reactToBlurRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated blur 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/change/NIST_change_0005.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0005" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "change", true, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comchangetruetrue";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0006.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0006" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "change", true, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comchangetruefalse";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0007.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0007" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "change", false, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comchangefalsetrue";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0008.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0008" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("www.example.com", "change", false, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.comchangefalsefalse";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0009.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0009" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "change", true, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullchangetruetrue";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0010.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0010" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "change", true, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullchangetruefalse";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0011.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0011" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "change", false, true);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullchangefalsetrue";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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/change/NIST_change_0012.html Sat Jan 17 04:51:18 2009 +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_change_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_change_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_change_0012" in window) {
+ NIST_change_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 change event.
+ function w3c_reactToChange() {
+ var evt = document.createEvent("Event");
+ evt.initEventNS("null", "change", false, false);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ act += evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "nullchangefalsefalse";
+ }
+
+ // Function to be executed in reaction to a change removal.
+ function w3c_reactToChangeRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("change", w3c_reactToChange(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("change", w3c_reactToChangeRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated change 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_0049.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0049.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_0049.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_0049" in window) {
+ NIST_click_0049("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, 5, 5, 5, 5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue555555XXXXXXX";
+ }
+
+ // 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_0050.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0050.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_0050.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_0050" in window) {
+ NIST_click_0050("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, 5, -5, -5, -5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue5-5-5-5-510XXXXXXX";
+ }
+
+ // 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_0051.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0051.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_0051.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_0051" in window) {
+ NIST_click_0051("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, -5, 5, -5, 5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue-55-55-55XXXXXXX";
+ }
+
+ // 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_0052.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0052.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_0052.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_0052" in window) {
+ NIST_click_0052("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, -5, -5, 5, -5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue-5-55-5510XXXXXXX";
+ }
+
+ // 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_0053.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0053.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_0053.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_0053" in window) {
+ NIST_click_0053("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, 5, 5, -5, -5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse55-5-555XXXXXXX";
+ }
+
+ // 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_0054.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0054.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_0054.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_0054" in window) {
+ NIST_click_0054("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, 5, -5, 5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse5-555-510XXXXXXX";
+ }
+
+ // 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_0055.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0055.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_0055.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_0055" in window) {
+ NIST_click_0055("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, -5, 5, 5, -5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse-555-5-55XXXXXXX";
+ }
+
+ // 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_0056.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0056.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_0056.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_0056" in window) {
+ NIST_click_0056("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, -5, -5, -5, 5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse-5-5-55510XXXXXXX";
+ }
+
+ // 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_0057.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0057.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_0057.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_0057" in window) {
+ NIST_click_0057("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, 5, -5, 5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue55-55510XXXXXXX";
+ }
+
+ // 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_0058.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0058.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_0058.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_0058" in window) {
+ NIST_click_0058("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, -5, 5, -5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue5-55-5-55XXXXXXX";
+ }
+
+ // 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_0059.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0059.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_0059.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_0059" in window) {
+ NIST_click_0059("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, -5, 5, 5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue-5555-510XXXXXXX";
+ }
+
+ // 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_0060.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0060.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_0060.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_0060" in window) {
+ NIST_click_0060("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, -5, -5, -5, -5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue-5-5-5-555XXXXXXX";
+ }
+
+ // 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_0061.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0061.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_0061.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_0061" in window) {
+ NIST_click_0061("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, 5, 5, 5, -5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse555-5510XXXXXXX";
+ }
+
+ // 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_0062.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0062.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_0062.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_0062" in window) {
+ NIST_click_0062("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, 5, -5, -5, 5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse5-5-55-55XXXXXXX";
+ }
+
+ // 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_0063.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0063.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_0063.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_0063" in window) {
+ NIST_click_0063("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, -5, 5, -5, -5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse-55-5-5-510XXXXXXX";
+ }
+
+ // 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_0064.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0064.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_0064.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_0064" in window) {
+ NIST_click_0064("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, -5, -5, 5, 5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse-5-55555XXXXXXX";
+ }
+
+ // 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_0065.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0065.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_0065.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_0065" in window) {
+ NIST_click_0065("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, -5, 5, 5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue5-555510XXXXXXX";
+ }
+
+ // 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_0066.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0066.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_0066.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_0066" in window) {
+ NIST_click_0066("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, -5, -5, -5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue-5-5-55-510XXXXXXX";
+ }
+
+ // 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_0067.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0067.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_0067.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_0067" in window) {
+ NIST_click_0067("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, 5, 5, 5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse5555-510XXXXXXX";
+ }
+
+ // 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_0068.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0068.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_0068.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_0068" in window) {
+ NIST_click_0068("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, -5, 5, -5, 5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse-55-5555XXXXXXX";
+ }
+
+ // 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_0069.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0069.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_0069.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_0069" in window) {
+ NIST_click_0069("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, 5, 5, 5, -5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue555-5-55XXXXXXX";
+ }
+
+ // 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_0070.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0070.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_0070.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_0070" in window) {
+ NIST_click_0070("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, -5, 5, -5, -5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue-55-5-5510XXXXXXX";
+ }
+
+ // 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_0071.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0071.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_0071.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_0071" in window) {
+ NIST_click_0071("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, 5, -5, 5, -5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse5-55-555XXXXXXX";
+ }
+
+ // 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_0072.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0072.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_0072.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_0072" in window) {
+ NIST_click_0072("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, -5, -5, -5, -5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse-5-5-5-5-55XXXXXXX";
+ }
+
+ // 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_0073.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0073.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_0073.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_0073" in window) {
+ NIST_click_0073("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, 5, -5, -5, 5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue5-5-5555XXXXXXX";
+ }
+
+ // 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_0074.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0074.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_0074.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_0074" in window) {
+ NIST_click_0074("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, -5, -5, 5, 5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse-5-555-55XXXXXXX";
+ }
+
+ // 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_0075.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0075.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_0075.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_0075" in window) {
+ NIST_click_0075("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, 5, -5, -5, -5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue55-5-5-55XXXXXXX";
+ }
+
+ // 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_0076.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0076.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_0076.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_0076" in window) {
+ NIST_click_0076("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, -5, 5, 5, -5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse-555-5510XXXXXXX";
+ }
+
+ // 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_0077.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0077.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_0077.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_0077" in window) {
+ NIST_click_0077("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, -5, 5, -5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue5-55-5510XXXXXXX";
+ }
+
+ // 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_0078.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0078.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_0078.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_0078" in window) {
+ NIST_click_0078("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, -5, 5, 5, 5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue-555555XXXXXXX";
+ }
+
+ // 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_0079.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0079.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_0079.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_0079" in window) {
+ NIST_click_0079("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, 5, -5, -5, 5, 5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse5-5-55510XXXXXXX";
+ }
+
+ // 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_0080.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0080.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_0080.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_0080" in window) {
+ NIST_click_0080("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, -5, 5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue5-555-510XXXXXXX";
+ }
+
+ // 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_0081.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0081.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_0081.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_0081" in window) {
+ NIST_click_0081("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, -5, 5, 5, -5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue-555-5-510XXXXXXX";
+ }
+
+ // 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_0082.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0082.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_0082.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_0082" in window) {
+ NIST_click_0082("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, 5, -5, -5, -5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse5-5-5-5-510XXXXXXX";
+ }
+
+ // 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_0083.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0083.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_0083.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_0083" in window) {
+ NIST_click_0083("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.initMouseEventNS("www.example.org", "click", false, false, evt.view, -5, -5, 5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsefalse-5-555-510XXXXXXX";
+ }
+
+ // 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_0084.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0084.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_0084.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_0084" in window) {
+ NIST_click_0084("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.initMouseEventNS("www.example.org", "click", true, false, evt.view, -5, -5, -5, -5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruefalse-5-5-5-555XXXXXXX";
+ }
+
+ // 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_0085.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0085.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_0085.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_0085" in window) {
+ NIST_click_0085("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.initMouseEventNS("www.example.org", "click", false, true, evt.view, 5, -5, -5, -5, 5, 5, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclickfalsetrue5-5-5-555XXXXXXX";
+ }
+
+ // 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_0086.html Sat Jan 17 04:51:18 2009 +0900
@@ -0,0 +1,122 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_click_0086.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_0086.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_0086" in window) {
+ NIST_click_0086("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.initMouseEventNS("www.example.org", "click", true, true, evt.view, -5, -5, -5, 5, -5, 10, XXXXXXX);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.namespaceURI;
+ 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.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "www.example.orgclicktruetrue-5-5-55-510XXXXXXX";
+ }
+
+ // 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>