blob: 747ea9e41b19e2ee00bf8b8c867be92c5da76f27 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script src="../http/tests/inspector/inspector-test.js"></script>
<script>
function myImpl() {
return "my value";
}
// Provide some custom methods.
Object.type = myImpl;
Object.hasProperties = myImpl;
Object.describe = myImpl;
Object.className = myImpl;
String.prototype.escapeCharacters = myImpl;
JSON.stringify = myImpl;
function doit()
{
function callback(result)
{
// Check that the methods haven't changed.
output("myImpl() => " + myImpl());
output("Object.type === myImpl => " + (Object.type === myImpl));
output("Object.hasProperties === myImpl => " + (Object.hasProperties === myImpl));
output("Object.describe === myImpl => " + (Object.describe === myImpl));
output("Object.className === myImpl => " + (Object.className === myImpl));
output("String.prototype.escapeCharacters === myImpl => " + (String.prototype.escapeCharacters === myImpl));
output("JSON.stringify === myImpl => " + (JSON.stringify === myImpl));
notifyDone();
}
evaluateInWebInspector("true", callback);
}
</script>
</head>
<body onload="onload()">
<p>
Tests that opening inspector front-end doesn't change methods defined by the inspected application.
</p>
<pre id="outputPre">
</pre>
</body>
</html>