Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / runtime / runtime-getProperties-isOwnProperty.html
blobd350de9bcfb086d4e4b3bffb30b0a9d406f7fecf
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 function A() {
7 this.testFoo = "abc";
10 function B() {
11 this.testBar = "cde";
14 B.prototype = new A();
15 b = new B();
17 function test()
19 function fail(message)
21 InspectorTest.addResult(message);
22 InspectorTest.completeTest();
25 InspectorTest.RuntimeAgent.evaluate("window.b", step1);
27 function step1(error, result)
29 InspectorTest.RuntimeAgent.getProperties(result.objectId, /* isOwnProperty */ false, step2);
32 function step2(error, properties)
34 if (error)
35 return fail("Error took place during InspectorTest.RuntimeAgent.getProperties call");
37 if (!properties)
38 return fail("Properties do not exist");
40 for (var i = 0; i < properties.length; i++) {
41 var property = properties[i];
42 if (property.name.match(/^test/))
43 InspectorTest.addResult("property.name==\"" + property.name + "\" isOwn==\"" + property.isOwn + "\"");
45 InspectorTest.completeTest();
49 </script>
50 </head>
52 <body onload="runTest()">
53 <p>
54 Tests RemoteObject.getProperties.
55 </p>
57 </body>
58 </html>