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 = { foo: 1 }; | 6 var object1 = { foo: 1 }; |
7 var object2 = { bar: 2 }; | 7 var object2 = { bar: 2 }; |
8 | 8 |
9 function dumpObject(label) | 9 function dumpObject(label) |
10 { | 10 { |
(...skipping 25 matching lines...) Expand all Loading... |
36 { | 36 { |
37 InspectorTest.evaluateInPage("dumpObject('Initial')", step0); | 37 InspectorTest.evaluateInPage("dumpObject('Initial')", step0); |
38 | 38 |
39 function step0() | 39 function step0() |
40 { | 40 { |
41 InspectorTest.RuntimeAgent.evaluate("object1", step1); | 41 InspectorTest.RuntimeAgent.evaluate("object1", step1); |
42 } | 42 } |
43 | 43 |
44 function step1(error, result, wasThrown) | 44 function step1(error, result, wasThrown) |
45 { | 45 { |
46 obj1 = WebInspector.runtimeModel.createRemoteObject(result); | 46 obj1 = InspectorTest.runtimeModel.createRemoteObject(result); |
47 InspectorTest.RuntimeAgent.evaluate("object2", step2); | 47 InspectorTest.RuntimeAgent.evaluate("object2", step2); |
48 } | 48 } |
49 | 49 |
50 function step2(error, result, wasThrown) | 50 function step2(error, result, wasThrown) |
51 { | 51 { |
52 obj2 = WebInspector.runtimeModel.createRemoteObject(result); | 52 obj2 = InspectorTest.runtimeModel.createRemoteObject(result); |
53 next(); | 53 next(); |
54 } | 54 } |
55 }, | 55 }, |
56 | 56 |
57 function testSetPrimitive(next) | 57 function testSetPrimitive(next) |
58 { | 58 { |
59 obj1.setPropertyValue(nameFoo, "2", step1); | 59 obj1.setPropertyValue(nameFoo, "2", step1); |
60 | 60 |
61 function step1() | 61 function step1() |
62 { | 62 { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 </script> | 167 </script> |
168 </head> | 168 </head> |
169 | 169 |
170 <body onload="runTest()"> | 170 <body onload="runTest()"> |
171 <p> | 171 <p> |
172 Tests WebInspector.RemoveObject.setPropertyValue implementation. | 172 Tests WebInspector.RemoveObject.setPropertyValue implementation. |
173 </p> | 173 </p> |
174 | 174 |
175 </body> | 175 </body> |
176 </html> | 176 </html> |
OLD | NEW |