Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: LayoutTests/inspector/runtime/runtime-es6-setSymbolPropertyValue.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/reveal-objects.html ('k') | LayoutTests/inspector/runtime/runtime-getProperties.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698