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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/layers/layer-canvas-log.html

Issue 2453673002: [DevTools] Scope common protocol infrastructure under Protocol namespace in a separate module. (Closed)
Patch Set: Created 4 years, 1 month 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
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="../../http/tests/inspector/layers-test.js"></script> 4 <script src="../../http/tests/inspector/layers-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 function onSnapshotDone(snapshot) 8 function onSnapshotDone(snapshot)
9 { 9 {
10 var wrappedCallback = InspectorBackend.wrapClientCallback(onHistoryRecei ved, "LayerTreeAgent.snapshotCommandLog(): "); 10 var wrappedCallback = Protocol.wrapClientCallback(onHistoryReceived, "La yerTreeAgent.snapshotCommandLog(): ");
11 InspectorTest.LayerTreeAgent.snapshotCommandLog(snapshot._id, wrappedCal lback); 11 InspectorTest.LayerTreeAgent.snapshotCommandLog(snapshot._id, wrappedCal lback);
12 } 12 }
13 13
14 function onHistoryReceived(history) 14 function onHistoryReceived(history)
15 { 15 {
16 InspectorTest.addResult("Canvas log:"); 16 InspectorTest.addResult("Canvas log:");
17 InspectorTest.addObject(history, {"uniqueID": "skip"}); 17 InspectorTest.addObject(history, {"uniqueID": "skip"});
18 InspectorTest.completeTest(); 18 InspectorTest.completeTest();
19 } 19 }
20 20
(...skipping 10 matching lines...) Expand all
31 <body onload="runTest()"> 31 <body onload="runTest()">
32 <div id="a" style="transform: translateZ(0px); background-color:blue; width:100p x; height:100px;"> 32 <div id="a" style="transform: translateZ(0px); background-color:blue; width:100p x; height:100px;">
33 <div style="width:50px; height:50px; background-color:red;"></div> 33 <div style="width:50px; height:50px; background-color:red;"></div>
34 <img src="../tracing/resources/test.png"> 34 <img src="../tracing/resources/test.png">
35 <svg> 35 <svg>
36 <rect x="0" y="0" width="10" height="10" style="opacity:0.5"/> 36 <rect x="0" y="0" width="10" height="10" style="opacity:0.5"/>
37 </svg> 37 </svg>
38 </div> 38 </div>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698