--- a/tests/framework/DOM3EventsCatalog.xml Fri Mar 06 06:30:30 2009 +0900
+++ b/tests/framework/DOM3EventsCatalog.xml Fri Mar 13 05:33:27 2009 +0900
@@ -2022,6 +2022,90 @@
<state status="submitted"></state>
<input-file>emptydoc</input-file>
</test-case>
+ <test-case name="NIST_mousemove_0049" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,true,evt.view,5,5,5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0050" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,true,evt.view,5,-5,-5,-5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0051" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,true,evt.view,-5,5,-5,5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0052" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,true,evt.view,-5,-5,5,-5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0053" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,false,evt.view,5,5,-5,-5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0054" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,false,evt.view,5,-5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0055" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,false,evt.view,-5,5,5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0056" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",true,false,evt.view,-5,-5,-5,5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0057" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",false,true,evt.view,5,5,-5,5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0058" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",false,true,evt.view,5,-5,5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0059" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",false,true,evt.view,-5,5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousemove_0060" Creator="NIST" date="11-18-2008" FilePath="mousemove" Manual="false">
+ <description>Evaluation of a simulated mousemove event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousemove",false,true,evt.view,-5,-5,-5,-5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
</test-group>
<test-group name="mouseover">
<GroupInfo>
@@ -2719,6 +2803,13 @@
<state status="submitted"></state>
<input-file>emptydoc</input-file>
</test-case>
+ <test-case name="NIST_mousedown_0002" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",true,true,evt.view,5,-5,-5,-5,-5,false,false,false,false,10,null)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
<test-case name="NIST_mousedown_0003" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
<description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",true,true,window,-5,5,-5,5,-5,true,false,true,false,5,null)</description>
<spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
@@ -2789,6 +2880,13 @@
<state status="submitted"></state>
<input-file>emptydoc</input-file>
</test-case>
+ <test-case name="NIST_mousedown_0013" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",false,false,evt.view,5,5,5,-5,5,false,false,true,false,10,null)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
<test-case name="NIST_mousedown_0014" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
<description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",false,false,window,5,-5,-5,5,-5,true,true,false,true,5,null)</description>
<spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
@@ -2915,6 +3013,13 @@
<state status="submitted"></state>
<input-file>emptydoc</input-file>
</test-case>
+ <test-case name="NIST_mousedown_0032" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",false,true,evt.view,5,5,-5,5,-5,false,false,true,false,10,null)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
<test-case name="NIST_mousedown_0033" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
<description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",true,true,window,-5,-5,5,-5,-5,false,false,true,true,5,null)</description>
<spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
@@ -2992,6 +3097,13 @@
<state status="submitted"></state>
<input-file>emptydoc</input-file>
</test-case>
+ <test-case name="NIST_mousedown_0044" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",false,false,evt.view,-5,5,5,5,-5,false,false,true,false,5,null)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
<test-case name="NIST_mousedown_0045" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
<description>Evaluation of a simulated mousedown event with the function initMouseEvent set as initMouseEvent("mousedown",false,false,window,-5,-5,-5,5,5,false,false,false,true,10,null)</description>
<spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
@@ -3020,8 +3132,267 @@
<state status="submitted"></state>
<input-file>emptydoc</input-file>
</test-case>
+ <test-case name="NIST_mousedown_0049" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,5,5,5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0050" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,5,-5,-5,-5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0051" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,-5,5,-5,5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0052" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,-5,-5,5,-5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0053" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,5,5,-5,-5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0054" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,5,-5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0055" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,-5,5,5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0056" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,-5,-5,-5,5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0057" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,5,5,-5,5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0058" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,5,-5,5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0059" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,-5,5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0060" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,-5,-5,-5,-5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0061" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,5,5,5,-5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0062" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,5,-5,-5,5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0063" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,-5,5,-5,-5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0064" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,-5,-5,5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0065" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,5,-5,5,5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0066" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,-5,-5,-5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0067" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,5,5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0068" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,-5,5,-5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0069" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,5,5,5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0070" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,-5,5,-5,-5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0071" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,5,-5,5,-5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0072" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,-5,-5,-5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0073" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,5,-5,-5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
<test-case name="NIST_mousedown_0074" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
- <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,window,-5,-5,5,5,-5,5,XXXXXXX)</description>
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,-5,-5,5,5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0075" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,5,5,-5,-5,-5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0076" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,-5,5,5,-5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0077" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,5,-5,5,-5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0078" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,-5,5,5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0079" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,5,5,-5,5,5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0080" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,true,evt.view,5,5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0081" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,-5,5,5,-5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0082" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,false,evt.view,5,-5,-5,-5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0083" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,5,-5,5,5,-5,10,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0084" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,-5,-5,-5,5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0085" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",false,false,evt.view,5,5,-5,-5,5,5,XXXXXXX)</description>
+ <spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
+ <spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
+ <state status="submitted"></state>
+ <input-file>emptydoc</input-file>
+ </test-case>
+ <test-case name="NIST_mousedown_0086" Creator="NIST" date="11-18-2008" FilePath="mousedown" Manual="false">
+ <description>Evaluation of a simulated mousedown event with the function initMouseEventNS set as initMouseEventNS("www.example.org","mousedown",true,true,evt.view,-5,-5,-5,5,-5,10,XXXXXXX)</description>
<spec-citation section-number="1.7.4" section-title="Mouse Event Types" section-pointer="#events-Events-MouseEvent"></spec-citation>
<spec-citation section-number="1.5.1" section-title="Complete list of event types" section-pointer="#events-Events-EventTypes-complete"></spec-citation>
<state status="submitted"></state>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/framework/mousedown/NIST_mousedown_0002.html Fri Mar 13 05:33:27 2009 +0900
@@ -0,0 +1,126 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_mousedown_0002.html -->
+ <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+ <title>DOM Events API Test Suite - NIST_mousedown_0002.html</title>
+
+ <style>
+ #result:after {
+ display: block;
+ }
+ .not_yet_tested:after {
+ background-color: yellow;
+ content: "Not yet tested";
+ }
+ .failed:after {
+ background-color: red;
+ content: "Failed";
+ }
+ .passed:after {
+ background-color: green;
+ content: "Passed";
+ }
+ </style>
+ <script type="text/javascript">
+ // Function to begin the test.
+ function w3c_beginTest() {
+ if ("vendor_beginTest" in window) {
+ vendor_beginTest();
+ }
+ if ("NIST_mousedown_0002" in window) {
+ NIST_mousedown_0002("tbl");
+ }
+ w3c_addEventListener();
+ }
+
+ // Function to end the test.
+ function w3c_endTest() {
+ if ("vendor_endTest" in window) {
+ vendor_endTest();
+ }
+ }
+
+ //Function to report test result.
+
+ function w3c_reportResult() {
+ if ("vendor_reportResult" in window) {
+ vendor_reportResult();
+ }
+ w3c_endTest();
+ }
+
+ //Function to be executed in reaction to mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEvent("mousedown", true, true, evt.view, 5, -5, -5, -5, -5, false, false, false, false, 10, null);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ alert("in actual");
+ var act = evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ act += evt.screenX;
+ act += evt.screenY;
+ act += evt.clientX;
+ act += evt.clientY;
+ act += evt.ctrlKey;
+ act += evt.altKey;
+ act += evt.shiftKey;
+ act += evt.metaKey;
+ act += evt.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "mousedowntruetrue5-5-5-5-5falsefalsefalsefalse10null";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.w3c_removeEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0013.html Fri Mar 13 05:33:27 2009 +0900
@@ -0,0 +1,125 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_mousedown_0013.html -->
+ <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+ <title>DOM Events API Test Suite - NIST_mousedown_0013.html</title>
+
+ <style>
+ #result:after {
+ display: block;
+ }
+ .not_yet_tested:after {
+ background-color: yellow;
+ content: "Not yet tested";
+ }
+ .failed:after {
+ background-color: red;
+ content: "Failed";
+ }
+ .passed:after {
+ background-color: green;
+ content: "Passed";
+ }
+ </style>
+ <script type="text/javascript">
+ // Function to begin the test.
+ function w3c_beginTest() {
+ if ("vendor_beginTest" in window) {
+ vendor_beginTest();
+ }
+ if ("NIST_mousedown_0013" in window) {
+ NIST_mousedown_0013("tbl");
+ }
+ w3c_addEventListener();
+ }
+
+ // Function to end the test.
+ function w3c_endTest() {
+ if ("vendor_endTest" in window) {
+ vendor_endTest();
+ }
+ }
+
+ //Function to report test result.
+
+ function w3c_reportResult() {
+ if ("vendor_reportResult" in window) {
+ vendor_reportResult();
+ }
+ w3c_endTest();
+ }
+
+ //Function to be executed in reaction to mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEvent("mousedown", false, false, evt.view, 5, 5, 5, -5, 5, false, false, true, false, 10, null);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ act += evt.screenX;
+ act += evt.screenY;
+ act += evt.clientX;
+ act += evt.clientY;
+ act += evt.ctrlKey;
+ act += evt.altKey;
+ act += evt.shiftKey;
+ act += evt.metaKey;
+ act += evt.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "mousedownfalsefalse555-55falsefalsetruefalse10null";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0032.html Fri Mar 13 05:33:27 2009 +0900
@@ -0,0 +1,125 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_mousedown_0032.html -->
+ <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+ <title>DOM Events API Test Suite - NIST_mousedown_0032.html</title>
+
+ <style>
+ #result:after {
+ display: block;
+ }
+ .not_yet_tested:after {
+ background-color: yellow;
+ content: "Not yet tested";
+ }
+ .failed:after {
+ background-color: red;
+ content: "Failed";
+ }
+ .passed:after {
+ background-color: green;
+ content: "Passed";
+ }
+ </style>
+ <script type="text/javascript">
+ // Function to begin the test.
+ function w3c_beginTest() {
+ if ("vendor_beginTest" in window) {
+ vendor_beginTest();
+ }
+ if ("NIST_mousedown_0032" in window) {
+ NIST_mousedown_0032("tbl");
+ }
+ w3c_addEventListener();
+ }
+
+ // Function to end the test.
+ function w3c_endTest() {
+ if ("vendor_endTest" in window) {
+ vendor_endTest();
+ }
+ }
+
+ //Function to report test result.
+
+ function w3c_reportResult() {
+ if ("vendor_reportResult" in window) {
+ vendor_reportResult();
+ }
+ w3c_endTest();
+ }
+
+ //Function to be executed in reaction to mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEvent("mousedown", false, true, evt.view, 5, 5, -5, 5, -5, false, false, true, false, 10, null);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ act += evt.screenX;
+ act += evt.screenY;
+ act += evt.clientX;
+ act += evt.clientY;
+ act += evt.ctrlKey;
+ act += evt.altKey;
+ act += evt.shiftKey;
+ act += evt.metaKey;
+ act += evt.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "mousedownfalsetrue55-55-5falsefalsetruefalse10null";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0044.html Fri Mar 13 05:33:27 2009 +0900
@@ -0,0 +1,125 @@
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <!-- Test Name: NIST_mousedown_0044.html -->
+ <!-- Purpose - Evaluate a user generated mouseover event over a table element -->
+ <head>
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+ <title>DOM Events API Test Suite - NIST_mousedown_0044.html</title>
+
+ <style>
+ #result:after {
+ display: block;
+ }
+ .not_yet_tested:after {
+ background-color: yellow;
+ content: "Not yet tested";
+ }
+ .failed:after {
+ background-color: red;
+ content: "Failed";
+ }
+ .passed:after {
+ background-color: green;
+ content: "Passed";
+ }
+ </style>
+ <script type="text/javascript">
+ // Function to begin the test.
+ function w3c_beginTest() {
+ if ("vendor_beginTest" in window) {
+ vendor_beginTest();
+ }
+ if ("NIST_mousedown_0044" in window) {
+ NIST_mousedown_0044("tbl");
+ }
+ w3c_addEventListener();
+ }
+
+ // Function to end the test.
+ function w3c_endTest() {
+ if ("vendor_endTest" in window) {
+ vendor_endTest();
+ }
+ }
+
+ //Function to report test result.
+
+ function w3c_reportResult() {
+ if ("vendor_reportResult" in window) {
+ vendor_reportResult();
+ }
+ w3c_endTest();
+ }
+
+ //Function to be executed in reaction to mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEvent("mousedown", false, false, evt.view, -5, 5, 5, 5, -5, false, false, true, false, 5, null);
+ var target = document.getElementById("tb1");
+ target.dispatchEvent(evt);
+ _actualResults = getActualResults(evt);
+ _expectedResults = getExpectedResults();
+ w3c_removeEventListener();
+ w3c_reportResult();
+ }
+
+ function getActualResults(evt)
+ {
+ var act = evt.type;
+ act += evt.bubbles;
+ act += evt.cancelable;
+ act += evt.detail;
+ act += evt.screenX;
+ act += evt.screenY;
+ act += evt.clientX;
+ act += evt.clientY;
+ act += evt.ctrlKey;
+ act += evt.altKey;
+ act += evt.shiftKey;
+ act += evt.metaKey;
+ act += evt.button;
+ act += evt.relatedTarget;
+ return act;
+ }
+ function getExpectedResults()
+ {
+ return "mousedownfalsefalse-5555-5falsefalsetruefalse5null";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0049.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0049" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue555555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0050.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0050" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue5-5-5-5-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0051.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0051" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue-55-55-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0052.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0052" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue-5-55-5510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0053.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0053" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse55-5-555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0054.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0054" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse5-555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0055.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0055" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse-555-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0056.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0056" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse-5-5-55510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0057.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0057" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue55-55510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0058.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0058" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue5-55-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0059.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0059" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue-5555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0060.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0060" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue-5-5-5-555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0061.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0061" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse555-5510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0062.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0062" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse5-5-55-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0063.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0063" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse-55-5-5-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0064.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0064" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse-5-55555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0065.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0065" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue5-555510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0066.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0066" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue-5-5-55-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0067.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0067" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse5555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0068.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0068" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse-55-5555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0069.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0069" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue555-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0070.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0070" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue-55-5-5510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0071.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0071" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse5-55-555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0072.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0072" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse-5-5-5-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0073.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0073" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue5-5-5555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0074.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0074" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse-5-555-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0075.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0075" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue55-5-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0076.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0076" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse-555-5510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0077.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0077" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue5-55-5510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0078.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0078" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue-555555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0079.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0079" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse55-55510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0080.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0080" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsetrue5555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0081.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0081" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue-555-5-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0082.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0082" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruefalse5-5-5-5-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0083.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0083" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse5-555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0084.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0084" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue-5-5-5555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0085.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0085" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedownfalsefalse55-5-555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousedown/NIST_mousedown_0086.html Fri Mar 13 05:33:27 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_mousedown_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_mousedown_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_mousedown_0086" in window) {
+ NIST_mousedown_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 mousedown event.
+ function w3c_reactToMousedown() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousedown", 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.orgmousedowntruetrue-5-5-55-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousedown removal.
+ function w3c_reactToMousedownRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousedown", w3c_reactToMousedown(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousedown", w3c_reactToMousedownRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousedown 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/mousemove/NIST_mousemove_0049.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0049" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruetrue555555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0050.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0050" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruetrue5-5-5-5-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0051.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0051" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruetrue-55-55-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0052.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0052" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruetrue-5-55-5510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0053.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0053" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruefalse55-5-555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0054.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0054" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruefalse5-555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0055.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0055" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruefalse-555-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0056.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0056" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovetruefalse-5-5-55510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0057.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0057" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovefalsetrue55-55510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0058.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0058" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovefalsetrue5-55-5-55XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0059.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0059" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovefalsetrue-5555-510XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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/mousemove/NIST_mousemove_0060.html Fri Mar 13 05:33:27 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_mousemove_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_mousemove_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_mousemove_0060" in window) {
+ NIST_mousemove_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 mousemove event.
+ function w3c_reactToMousemove() {
+ var evt = document.createEvent("MouseEvent");
+ evt.initMouseEventNS("www.example.org", "mousemove", 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.orgmousemovefalsetrue-5-5-5-555XXXXXXX";
+ }
+
+ // Function to be executed in reaction to a mousemove removal.
+ function w3c_reactToMousemoveRemoval() {
+ }
+
+ // Function to add a listener to the element.
+ function w3c_addEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.addEventListener) {
+ e1.addEventListener("mousemove", w3c_reactToMousemove(), false);
+ }
+ }
+
+ // Function to remove a listener from the element.
+ function w3c_removeEventListener() {
+ var e1 = document.getElementById("tb1");
+ if (document.removeEventListener) {
+ e1.removeEventListener("mousemove", w3c_reactToMousemoveRemoval(), false);
+ }
+ }
+ </script>
+
+ <script type="text/javascript" src="vendor_functions.js"></script>
+ </head>
+ <body onload="w3c_beginTest();">
+ <h3>Evaluate a simulated mousemove 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>