Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / runtime / runtime-localStorage-getProperties.html
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
5
6 localStorage.testProperty = "testPropertyValue";
7
8 function test()
9 {
10     RuntimeAgent.evaluate("localStorage", step1);
11
12     function step1(error, result, wasThrown)
13     {
14         var localStorageHandle = WebInspector.runtimeModel.createRemoteObject(result);
15         localStorageHandle.getOwnProperties(step2);
16     }
17
18     function step2(properties)
19     {
20         for (var i = 0; i < properties.length; ++i) {
21             var property = properties[i];
22             if (property.name !== "testProperty")
23                 continue;
24             property.value = { type: property.value.type, description: property.value.description };                
25             InspectorTest.dump(property);
26         }
27         InspectorTest.completeTest();
28     }
29 }
30
31 </script>
32 </head>
33
34 <body onload="runTest()">
35 <p>
36 Tests RemoteObject.getProperties on localStorage object. <a href="https://bugs.webkit.org/show_bug.cgi?id=66215">66215</a>
37 </p>
38
39 </body>
40 </html>