browser/devtools/debugger/test/doc_watch-expression-button.html

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:8dbc3a20c314
1 <!-- Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ -->
3 <!doctype html>
4
5 <html>
6 <head>
7 <meta charset="utf-8"/>
8 <title>Debugger test page</title>
9 </head>
10
11 <body>
12 <button onclick="start()">Click me!</button>
13
14 <script type="text/javascript">
15 function test() {
16 var a = 1;
17 var b = { a: a };
18 b.a = 2;
19 debugger;
20 }
21
22 function start() {
23 var e = eval('test();');
24 }
25
26 var button = document.querySelector("button");
27 var buttonAsProto = Object.create(button);
28 </script>
29 </body>
30
31 </html>

mercurial