1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <script src="../http/tests/inspector/inspector-test.js"></script>
11 // Provide some custom methods.
13 Object.hasProperties = myImpl;
14 Object.describe = myImpl;
15 Object.className = myImpl;
16 String.prototype.escapeCharacters = myImpl;
17 JSON.stringify = myImpl;
21 var output = document.getElementById("output");
22 output.appendChild(document.createTextNode(text));
23 output.appendChild(document.createElement("br"));
28 // Check that the methods haven't changed.
29 output("myImpl() => " + myImpl());
30 output("Object.type === myImpl => " + (Object.type === myImpl));
31 output("Object.hasProperties === myImpl => " + (Object.hasProperties === myImpl));
32 output("Object.describe === myImpl => " + (Object.describe === myImpl));
33 output("Object.className === myImpl => " + (Object.className === myImpl));
34 output("String.prototype.escapeCharacters === myImpl => " + (String.prototype.escapeCharacters === myImpl));
35 output("JSON.stringify === myImpl => " + (JSON.stringify === myImpl));
42 InspectorTest.completeTest();
44 InspectorTest.evaluateInPage("dumpValues()", callback);
49 <body onload="runTest()">
51 Tests that opening inspector front-end doesn't change methods defined by the inspected application.
54 <div id="output"></div>