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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.html

Issue 2942573003: [DevTools] New harness for inspector-protocol layout tests (Closed)
Patch Set: Protocol -> dp Created 3 years, 6 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script type="application/x-javascript" src="../../http/tests/inspector-protocol /inspector-protocol-test.js"></script> 3 <script type="application/x-javascript" src="../../http/tests/inspector-protocol /resources/inspector-protocol-test.js"></script>
4 <script type="application/x-javascript" src="layer-protocol-test.js"></script> 4 <script type="application/x-javascript" src="../resources/layer-protocol-test.js "></script>
5 <script type="application/x-javascript"> 5 <script type="application/x-javascript">
6 6
7 function test() 7 function test()
8 { 8 {
9 InspectorTest.sendCommand("LayerTree.loadSnapshot", { 9 InspectorTest.sendCommand("LayerTree.loadSnapshot", {
10 "tiles": [{ 10 "tiles": [{
11 "x":351378, 11 "x":351378,
12 "y":-15, 12 "y":-15,
13 "picture": "c2tpYXBpY3QqAAAAiYICRsMkWkF3URZGz3Z9QgcAAAABZGFlcgAAAAB0 Y2FmBAAAAAAAAABjZnB0AAAAAHlhcmEAAAAAIGZvZQ==" 13 "picture": "c2tpYXBpY3QqAAAAiYICRsMkWkF3URZGz3Z9QgcAAAABZGFlcgAAAAB0 Y2FmBAAAAAAAAABjZnB0AAAAAHlhcmEAAAAAIGZvZQ=="
14 }] 14 }]
15 }, InspectorTest.wrapCallback(onLoad)); 15 }, InspectorTest.wrapCallback(onLoad));
16 16
17 function onLoad(result) 17 function onLoad(result)
18 { 18 {
19 InspectorTest.log("Loading empty snapshot: " + result.error); 19 InspectorTest.log("Loading empty snapshot: " + result.error);
20 InspectorTest.completeTest(); 20 InspectorTest.completeTest();
21 } 21 }
22 } 22 }
23 23
24 </script> 24 </script>
25 <body onload="runTest()"> 25 <body onload="runTest()">
26 <div>Tests that Paint Profiler refuses to load a picture with empty dimensio ns</div> 26 <div>Tests that Paint Profiler refuses to load a picture with empty dimensio ns</div>
27 </body> 27 </body>
28 </html> 28 </html>
29 29
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698