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

Side by Side Diff: LayoutTests/inspector/profiler/webgl/webgl-get-resource-state-buffer-data.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 src="../canvas-profiler-test.js"></script> 4 <script src="../canvas-profiler-test.js"></script>
5 <script> 5 <script>
6 if (window.internals) 6 if (window.internals)
7 window.internals.settings.setWebGLErrorsToConsoleEnabled(false); 7 window.internals.settings.setWebGLErrorsToConsoleEnabled(false);
8 8
9 var gl; 9 var gl;
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 { 101 {
102 InspectorTest.assertTrue(!error && !!resourceState, "Unexpected erro r: " + error); 102 InspectorTest.assertTrue(!error && !!resourceState, "Unexpected erro r: " + error);
103 var descriptor = InspectorTest.findResourceStateDescriptor(resourceS tate, "bufferData"); 103 var descriptor = InspectorTest.findResourceStateDescriptor(resourceS tate, "bufferData");
104 if (!descriptor) 104 if (!descriptor)
105 InspectorTest.addResult("No bufferData available"); 105 InspectorTest.addResult("No bufferData available");
106 else { 106 else {
107 var remoteObject = descriptor.value && descriptor.value.remoteOb ject; 107 var remoteObject = descriptor.value && descriptor.value.remoteOb ject;
108 if (!remoteObject) 108 if (!remoteObject)
109 InspectorTest.addResult("FAIL: Internal error in the protoco l: no \"remoteObject\" property in a CallArgument"); 109 InspectorTest.addResult("FAIL: Internal error in the protoco l: no \"remoteObject\" property in a CallArgument");
110 else { 110 else {
111 var obj = WebInspector.runtimeModel.createRemoteObject(remot eObject); 111 var obj = InspectorTest.runtimeModel.createRemoteObject(remo teObject);
112 obj.getOwnProperties(didGetOwnProperties.bind(null, descript or.value.description)); 112 obj.getOwnProperties(didGetOwnProperties.bind(null, descript or.value.description));
113 return; 113 return;
114 } 114 }
115 } 115 }
116 replayUntilNextBufferDataCall(stepNo + 1); 116 replayUntilNextBufferDataCall(stepNo + 1);
117 } 117 }
118 118
119 function didGetOwnProperties(description, properties) 119 function didGetOwnProperties(description, properties)
120 { 120 {
121 function formatNumber(value) 121 function formatNumber(value)
(...skipping 21 matching lines...) Expand all
143 143
144 </script> 144 </script>
145 </head> 145 </head>
146 <body onload="runTest()"> 146 <body onload="runTest()">
147 <p> 147 <p>
148 Tests WebGLBuffer data state during the replay. 148 Tests WebGLBuffer data state during the replay.
149 </p> 149 </p>
150 <canvas id="canvas"></canvas> 150 <canvas id="canvas"></canvas>
151 </body> 151 </body>
152 </html> 152 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/profiler/heap-snapshot-loader.html ('k') | LayoutTests/inspector/reveal-objects.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698