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 symbol1 = Symbol("a"); | 7 var symbol1 = Symbol("a"); |
8 object1[symbol1] = 2; | 8 object1[symbol1] = 2; |
9 | 9 |
10 function dumpSymbolProperty(label) | 10 function dumpSymbolProperty(label) |
(...skipping 12 matching lines...) Expand all Loading... |
23 { | 23 { |
24 InspectorTest.evaluateInPage("dumpSymbolProperty('Initial')", step0)
; | 24 InspectorTest.evaluateInPage("dumpSymbolProperty('Initial')", step0)
; |
25 | 25 |
26 function step0() | 26 function step0() |
27 { | 27 { |
28 InspectorTest.RuntimeAgent.evaluate("object1", step1); | 28 InspectorTest.RuntimeAgent.evaluate("object1", step1); |
29 } | 29 } |
30 | 30 |
31 function step1(error, result, wasThrown) | 31 function step1(error, result, wasThrown) |
32 { | 32 { |
33 obj1 = WebInspector.runtimeModel.createRemoteObject(result); | 33 obj1 = InspectorTest.runtimeModel.createRemoteObject(result); |
34 InspectorTest.RuntimeAgent.evaluate("symbol1", step2); | 34 InspectorTest.RuntimeAgent.evaluate("symbol1", step2); |
35 } | 35 } |
36 | 36 |
37 function step2(error, result, wasThrown) | 37 function step2(error, result, wasThrown) |
38 { | 38 { |
39 name = WebInspector.RemoteObject.toCallArgument(WebInspector.run
timeModel.createRemoteObject(result)); | 39 name = WebInspector.RemoteObject.toCallArgument(InspectorTest.ru
ntimeModel.createRemoteObject(result)); |
40 next(); | 40 next(); |
41 } | 41 } |
42 }, | 42 }, |
43 | 43 |
44 function testSetSymbolPropertyValue(next) | 44 function testSetSymbolPropertyValue(next) |
45 { | 45 { |
46 obj1.setPropertyValue(name, "3", step1); | 46 obj1.setPropertyValue(name, "3", step1); |
47 | 47 |
48 function step1() | 48 function step1() |
49 { | 49 { |
(...skipping 16 matching lines...) Expand all Loading... |
66 </script> | 66 </script> |
67 </head> | 67 </head> |
68 | 68 |
69 <body onload="runTest()"> | 69 <body onload="runTest()"> |
70 <p> | 70 <p> |
71 Tests editing Symbol properties. | 71 Tests editing Symbol properties. |
72 </p> | 72 </p> |
73 | 73 |
74 </body> | 74 </body> |
75 </html> | 75 </html> |
OLD | NEW |