Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / runtime / runtime-es6-setSymbolPropertyValue.html
bloba83679110fb697a7e695f64e8a7c904e6313df53
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script>
6 var object1 = { foo: 1 };
7 var symbol1 = Symbol("a");
8 object1[symbol1] = 2;
10 function dumpSymbolProperty(label)
12 console.log("===== " + label + " =====");
13 console.log(object1[symbol1]);
14 console.log("");
17 function test()
19 var obj1, name;
21 InspectorTest.runTestSuite([
22 function testSetUp(next)
24 InspectorTest.evaluateInPage("dumpSymbolProperty('Initial')", step0);
26 function step0()
28 InspectorTest.RuntimeAgent.evaluate("object1", step1);
31 function step1(error, result, wasThrown)
33 obj1 = InspectorTest.runtimeModel.createRemoteObject(result);
34 InspectorTest.RuntimeAgent.evaluate("symbol1", step2);
37 function step2(error, result, wasThrown)
39 name = WebInspector.RemoteObject.toCallArgument(InspectorTest.runtimeModel.createRemoteObject(result));
40 next();
44 function testSetSymbolPropertyValue(next)
46 obj1.setPropertyValue(name, "3", step1);
48 function step1()
50 InspectorTest.evaluateInPage("dumpSymbolProperty('Set property')", next);
54 function testDeleteSymbolProperty(next)
56 obj1.deleteProperty(name, step1);
58 function step1()
60 InspectorTest.evaluateInPage("dumpSymbolProperty('Delete property')", next);
63 ]);
66 </script>
67 </head>
69 <body onload="runTest()">
70 <p>
71 Tests editing Symbol properties.
72 </p>
74 </body>
75 </html>