2010-05-03 Abhishek Arya <inferno@chromium.org>
[WebKit-https.git] / LayoutTests / inspector / evaluate-in-frontend.html
1 <html>
2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script>
5
6 function doit()
7 {
8     function callback(result)
9     {
10         output("2 + 2 = " + result);
11         notifyDone();
12     }
13     evaluateInWebInspector("frontend_sum(2, 2)", callback);
14 }
15
16
17 // Frontend functions.
18
19 function frontend_sum(a, b)
20 {
21     return a + b;
22 }
23
24 </script>
25 </head>
26
27 <body onload="onload()">
28 <p>
29 This tests that layout test can evaluate scripts in the web inspector context.
30 </p>
31
32 </body>
33 </html>