blob: efb53ad7278b34358cbe0afe914ab6323a59795d [file] [log] [blame]
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
function sum(a, b)
{
return a + b;
}
function test()
{
function callback(result)
{
InspectorTest.addResult("2 + 2 = " + result.description);
InspectorTest.completeTest();
}
InspectorTest.evaluateInPage("sum(2, 2)", callback);
}
</script>
</head>
<body onload="runTest()">
<p>
This tests that layout test can evaluate scripts in the inspected page.
</p>
</body>
</html>