Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
  3. <!--
  4.  
  5. Copyright (c) 2001 World Wide Web Consortium,
  6. (Massachusetts Institute of Technology, Institut National de
  7. Recherche en Informatique et en Automatique, Keio University).  All
  8. Rights Reserved.  This program is distributed under the W3C's Software
  9. Intellectual Property License.  This program is distributed in the
  10. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE.  
  13.  
  14. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  15.  
  16. -->
  17. <!DOCTYPE test SYSTEM "dom2.dtd">
  18. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="dispatchEvent08">
  19. <metadata>
  20. <title>dispatchEvent08</title>
  21. <creator>Curt Arnold</creator>
  22. <description>
  23. An EventListener registered on the target node with capture false, should
  24. recieve any event fired on that node.
  25. </description>
  26. <date qualifier="created">2002-05-30</date>
  27. <subject resource="http://www.w3.org/TR/DOM-Level-2-Events/events#Events-EventTarget-dispatchEvent"/>
  28. <subject resource="http://www.w3.org/TR/DOM-Level-2-Events/events#xpointer(id('Events-EventTarget-dispatchEvent')/raises/exception[@name='EventException']/descr/p[substring-before(.,':')='UNSPECIFIED_EVENT_TYPE_ERR'])"/>
  29. </metadata>
  30. <var name="doc" type="Document"/>
  31. <var name="target" type="EventTarget"/>
  32. <var name="evt" type="Event"/>
  33. <var name="preventDefault" type="boolean"/>
  34. <var name="monitor" type="EventMonitor"/>
  35. <var name="atEvents" type="List"/>
  36. <var name="bubbledEvents" type="List"/>
  37. <var name="capturedEvents" type="List"/>
  38. <load var="doc" href="hc_staff" willBeModified="true"/>
  39. <addEventListener obj="doc" type='"foo"' listener="monitor" useCapture="false"/>
  40. <createEvent var="evt" obj="doc" eventType='"Events"'/>
  41. <initEvent obj="evt" eventTypeArg='"foo"' canBubbleArg="true" cancelableArg="false"/>
  42. <dispatchEvent var="preventDefault" obj="doc" evt="evt"/>
  43. <atEvents obj="monitor" var="atEvents"/>
  44. <assertSize id="atCount" collection="atEvents" size="1"/>
  45. <bubbledEvents obj="monitor" var="bubbledEvents"/>
  46. <assertSize id="bubbleCount" collection="bubbledEvents" size="0"/>
  47. <capturedEvents obj="monitor" var="capturedEvents"/>
  48. <assertSize id="captureCount" collection="capturedEvents" size="0"/>
  49. </test>
  50.