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 src="heap-snapshot-test.js"></script> | 4 <script src="heap-snapshot-test.js"></script> |
5 <script> | 5 <script> |
6 | 6 |
7 function handleLoad() | 7 function handleLoad() |
8 { | 8 { |
9 // Make sure there is a body wrapper. | 9 // Make sure there is a body wrapper. |
10 document.body.fieldOnDomWrapper = 2012; | 10 document.body.fieldOnDomWrapper = 2012; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 function requestPropertiesOfResolvedObjects() | 64 function requestPropertiesOfResolvedObjects() |
65 { | 65 { |
66 if (!remoteObjects.length) | 66 if (!remoteObjects.length) |
67 return clear("FAILED: no resolved objects were detected"); | 67 return clear("FAILED: no resolved objects were detected"); |
68 | 68 |
69 InspectorTest.addResult("PASS: got at least one HTMLBodyElement wrap
per"); | 69 InspectorTest.addResult("PASS: got at least one HTMLBodyElement wrap
per"); |
70 | 70 |
71 for (var i = 0; i < remoteObjects.length; i++) | 71 for (var i = 0; i < remoteObjects.length; i++) |
72 remoteObjects[i].getOwnProperties(didGetOwnProperties); | 72 remoteObjects[i].getOwnProperties(false, didGetOwnProperties); |
73 } | 73 } |
74 | 74 |
75 var didGetOwnPropertiesCount = 0; | 75 var didGetOwnPropertiesCount = 0; |
76 function didGetOwnProperties() | 76 function didGetOwnProperties() |
77 { | 77 { |
78 if (++didGetOwnPropertiesCount !== remoteObjects.length) | 78 if (++didGetOwnPropertiesCount !== remoteObjects.length) |
79 return; | 79 return; |
80 | 80 |
81 clear(); | 81 clear(); |
82 } | 82 } |
(...skipping 19 matching lines...) Expand all Loading... |
102 </script> | 102 </script> |
103 </head> | 103 </head> |
104 | 104 |
105 <body onload="handleLoad()"> | 105 <body onload="handleLoad()"> |
106 <p> | 106 <p> |
107 Test that resolving heap snapshot object to a JS object will not crash on DOM wr
apper boilerplate. Test passes if it doesn't crash. | 107 Test that resolving heap snapshot object to a JS object will not crash on DOM wr
apper boilerplate. Test passes if it doesn't crash. |
108 </p> | 108 </p> |
109 | 109 |
110 </body> | 110 </body> |
111 </html> | 111 </html> |
OLD | NEW |