| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <script src="../http/tests/inspector/inspector-test.js"></script> |
| // Provide some custom methods. |
| Object.hasProperties = myImpl; |
| Object.describe = myImpl; |
| Object.className = myImpl; |
| String.prototype.escapeCharacters = myImpl; |
| 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)); |
| evaluateInWebInspector("true", callback); |
| Tests that opening inspector front-end doesn't change methods defined by the inspected application. |