| 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 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |