browser/devtools/webconsole/test/test-console-output-events.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-console-output-events.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<html dir="ltr" lang="en-US">
     1.6 +<head>
     1.7 +  <meta charset="utf-8">
     1.8 +  <title>Test the web console output for DOM events</title>
     1.9 +  <!--
    1.10 +  - Any copyright is dedicated to the Public Domain.
    1.11 +  - http://creativecommons.org/publicdomain/zero/1.0/
    1.12 +  -->
    1.13 +</head>
    1.14 +<body>
    1.15 +  <p>hello world!</p>
    1.16 +  <script type="text/javascript">
    1.17 +function testDOMEvents() {
    1.18 +  function eventLogger(ev) {
    1.19 +    console.log("eventLogger", ev);
    1.20 +  }
    1.21 +  document.addEventListener("mousemove", eventLogger);
    1.22 +  document.addEventListener("keypress", eventLogger);
    1.23 +}
    1.24 +  </script>
    1.25 +</body>
    1.26 +</html>

mercurial