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 localStorage.testProperty = "testPropertyValue"; | 6 localStorage.testProperty = "testPropertyValue"; |
7 | 7 |
8 function test() | 8 function test() |
9 { | 9 { |
10 InspectorTest.RuntimeAgent.evaluate("localStorage", step1); | 10 InspectorTest.RuntimeAgent.evaluate("localStorage", step1); |
11 | 11 |
12 function step1(error, result, exceptionDetails) | 12 function step1(error, result, exceptionDetails) |
13 { | 13 { |
14 var localStorageHandle = InspectorTest.runtimeModel.createRemoteObject(r
esult); | 14 var localStorageHandle = InspectorTest.runtimeModel.createRemoteObject(r
esult); |
15 localStorageHandle.getOwnProperties(step2); | 15 localStorageHandle.getOwnProperties(false, step2); |
16 } | 16 } |
17 | 17 |
18 function step2(properties) | 18 function step2(properties) |
19 { | 19 { |
20 for (var i = 0; i < properties.length; ++i) { | 20 for (var i = 0; i < properties.length; ++i) { |
21 var property = properties[i]; | 21 var property = properties[i]; |
22 if (property.name !== "testProperty") | 22 if (property.name !== "testProperty") |
23 continue; | 23 continue; |
24 property.value = { type: property.value.type, description: property.
value.description }; | 24 property.value = { type: property.value.type, description: property.
value.description }; |
25 InspectorTest.dump(property); | 25 InspectorTest.dump(property); |
26 } | 26 } |
27 InspectorTest.completeTest(); | 27 InspectorTest.completeTest(); |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 </script> | 31 </script> |
32 </head> | 32 </head> |
33 | 33 |
34 <body onload="runTest()"> | 34 <body onload="runTest()"> |
35 <p> | 35 <p> |
36 Tests RemoteObject.getProperties on localStorage object. <a href="https://bugs.w
ebkit.org/show_bug.cgi?id=66215">66215</a> | 36 Tests RemoteObject.getProperties on localStorage object. <a href="https://bugs.w
ebkit.org/show_bug.cgi?id=66215">66215</a> |
37 </p> | 37 </p> |
38 | 38 |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |