browser/devtools/webconsole/test/test-bug-618078-network-exceptions.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/browser/devtools/webconsole/test/test-bug-618078-network-exceptions.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,24 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html lang="en">
     1.6 +  <head>
     1.7 +    <meta charset="utf-8">
     1.8 +    <title>Web Console test for bug 618078 - exception in async network request
     1.9 +      callback</title>
    1.10 +    <!-- Any copyright is dedicated to the Public Domain.
    1.11 +         http://creativecommons.org/publicdomain/zero/1.0/ -->
    1.12 +    <script type="text/javascript">
    1.13 +      var req = new XMLHttpRequest();
    1.14 +      req.open('GET', 'http://example.com', true);
    1.15 +      req.onreadystatechange = function() {
    1.16 +        if (req.readyState == 4) {
    1.17 +          bug618078exception();
    1.18 +        }
    1.19 +      };
    1.20 +      req.send(null);
    1.21 +    </script>
    1.22 +  </head>
    1.23 +  <body>
    1.24 +    <p>Web Console test for bug 618078 - exception in async network request
    1.25 +    callback.</p>
    1.26 +  </body>
    1.27 +</html>

mercurial