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

Side by Side Diff: LayoutTests/inspector/runtime/runtime-getProperties.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 = { get foo() { return 1; }, set foo(value) { } }; 6 var object1 = { get foo() { return 1; }, set foo(value) { } };
7 var object2 = { get foo() { return 1; } }; 7 var object2 = { get foo() { return 1; } };
8 8
9 function test() 9 function test()
10 { 10 {
11 var obj1, obj2; 11 var obj1, obj2;
12 12
13 InspectorTest.runTestSuite([ 13 InspectorTest.runTestSuite([
14 function testSetUp(next) 14 function testSetUp(next)
15 { 15 {
16 InspectorTest.evaluateInPage("dumpObjects('Initial')", step0); 16 InspectorTest.evaluateInPage("dumpObjects('Initial')", step0);
17 17
18 function step0() 18 function step0()
19 { 19 {
20 InspectorTest.RuntimeAgent.evaluate("object1", step1); 20 InspectorTest.RuntimeAgent.evaluate("object1", step1);
21 } 21 }
22 22
23 function step1(error, result, wasThrown) 23 function step1(error, result, wasThrown)
24 { 24 {
25 obj1 = WebInspector.runtimeModel.createRemoteObject(result); 25 obj1 = InspectorTest.runtimeModel.createRemoteObject(result);
26 InspectorTest.RuntimeAgent.evaluate("object2", step2); 26 InspectorTest.RuntimeAgent.evaluate("object2", step2);
27 } 27 }
28 28
29 function step2(error, result, wasThrown) 29 function step2(error, result, wasThrown)
30 { 30 {
31 obj2 = WebInspector.runtimeModel.createRemoteObject(result); 31 obj2 = InspectorTest.runtimeModel.createRemoteObject(result);
32 next(); 32 next();
33 } 33 }
34 }, 34 },
35 35
36 function testGetterAndSetter(next) 36 function testGetterAndSetter(next)
37 { 37 {
38 obj1.getOwnProperties(step1); 38 obj1.getOwnProperties(step1);
39 39
40 function step1(properties) 40 function step1(properties)
41 { 41 {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 </script> 82 </script>
83 </head> 83 </head>
84 84
85 <body onload="runTest()"> 85 <body onload="runTest()">
86 <p> 86 <p>
87 Tests RemoteObject.getProperties. 87 Tests RemoteObject.getProperties.
88 </p> 88 </p>
89 89
90 </body> 90 </body>
91 </html> 91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698