browser/devtools/webconsole/test/test-console-assert.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!DOCTYPE HTML>
     2 <html dir="ltr" xml:lang="en-US" lang="en-US">
     3   <head>
     4     <!--
     5       Any copyright is dedicated to the Public Domain.
     6       http://creativecommons.org/publicdomain/zero/1.0/
     7     -->
     8     <meta charset="utf-8">
     9     <title>console.assert() test</title>
    10     <script type="text/javascript">
    11       function test() {
    12         console.log("start");
    13         console.assert(false, "false assert");
    14         console.assert(0, "falsy assert");
    15         console.assert(true, "true assert");
    16         console.log("end");
    17       }
    18     </script>
    19   </head>
    20   <body>
    21     <p>test console.assert()</p>
    22     <button onclick="test();">test console.assert()</button>
    23   </body>
    24 </html>

mercurial