OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script> | 4 <script> |
5 | 5 |
6 var object1 = { get foo() { return 1; }, set foo(value) { } }; | 6 var object1 = { get foo() { return 1; }, set foo(value) { } }; |
7 var object2 = { get foo() { return 1; } }; | 7 var object2 = { get foo() { return 1; } }; |
8 | 8 |
9 function test() | 9 function test() |
10 { | 10 { |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 function step2(error, result, exceptionDetails) | 36 function step2(error, result, exceptionDetails) |
37 { | 37 { |
38 obj2 = InspectorTest.runtimeModel.createRemoteObject(result); | 38 obj2 = InspectorTest.runtimeModel.createRemoteObject(result); |
39 next(); | 39 next(); |
40 } | 40 } |
41 }, | 41 }, |
42 | 42 |
43 function testGetterAndSetter(next) | 43 function testGetterAndSetter(next) |
44 { | 44 { |
45 obj1.getOwnProperties(dumpProperties.bind(this, next)); | 45 obj1.getOwnProperties(false, dumpProperties.bind(this, next)); |
46 }, | 46 }, |
47 | 47 |
48 function testGetterOnly(next) | 48 function testGetterOnly(next) |
49 { | 49 { |
50 obj2.getOwnProperties(dumpProperties.bind(this, next)); | 50 obj2.getOwnProperties(false, dumpProperties.bind(this, next)); |
51 } | 51 } |
52 ]); | 52 ]); |
53 | 53 |
54 function convertPropertyValueForTest(propertyObject, fieldName) | 54 function convertPropertyValueForTest(propertyObject, fieldName) |
55 { | 55 { |
56 var value = propertyObject[fieldName]; | 56 var value = propertyObject[fieldName]; |
57 if (value) | 57 if (value) |
58 propertyObject[fieldName] = { type: value.type, description: value.d
escription.replace(/^function [gs]et foo/, "function "), objectId: value.objectI
d }; | 58 propertyObject[fieldName] = { type: value.type, description: value.d
escription.replace(/^function [gs]et foo/, "function "), objectId: value.objectI
d }; |
59 } | 59 } |
60 | 60 |
(...skipping 12 matching lines...) Expand all Loading... |
73 </script> | 73 </script> |
74 </head> | 74 </head> |
75 | 75 |
76 <body onload="runTest()"> | 76 <body onload="runTest()"> |
77 <p> | 77 <p> |
78 Tests RemoteObject.getProperties. | 78 Tests RemoteObject.getProperties. |
79 </p> | 79 </p> |
80 | 80 |
81 </body> | 81 </body> |
82 </html> | 82 </html> |
OLD | NEW |