Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / inspected-objects-not-overriden.html
bloba66d76a67ffa4fd652557209f12934e6ceb42081
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <script src="../http/tests/inspector/inspector-test.js"></script>
5 <script>
7 function myImpl() {
8 return "my value";
11 // Provide some custom methods.
12 Object.type = myImpl;
13 Object.hasProperties = myImpl;
14 Object.describe = myImpl;
15 Object.className = myImpl;
16 String.prototype.escapeCharacters = myImpl;
17 JSON.stringify = myImpl;
19 function output(text)
21 var output = document.getElementById("output");
22 output.appendChild(document.createTextNode(text));
23 output.appendChild(document.createElement("br"));
26 function dumpValues()
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));
38 function test()
40 function callback()
42 InspectorTest.completeTest();
44 InspectorTest.evaluateInPage("dumpValues()", callback);
46 </script>
47 </head>
49 <body onload="runTest()">
50 <p>
51 Tests that opening inspector front-end doesn't change methods defined by the inspected application.
52 </p>
54 <div id="output"></div>
56 </body>
57 </html>