<html> | |
<head> | |
<script src="inspector-test.js"></script> | |
<script> | |
function doit() | |
{ | |
function callback(result) | |
{ | |
output("2 + 2 = " + result); | |
notifyDone(); | |
} | |
evaluateInWebInspector("frontend_sum(2, 2)", callback); | |
} | |
// Frontend functions. | |
function frontend_sum(a, b) | |
{ | |
return a + b; | |
} | |
</script> | |
</head> | |
<body onload="onload()"> | |
<p> | |
This tests that layout test can evaluate scripts in the web inspector context. | |
</p> | |
</body> | |
</html> |