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

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

Issue 1167063002: DevTools: return error when trying to load an empty (0 x 0) picture (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/layers/paint-profiler-load-empty-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script type="application/x-javascript" src="../../http/tests/inspector-protocol /inspector-protocol-test.js"></script>
4 <script type="application/x-javascript" src="layer-protocol-test.js"></script>
5 <script type="application/x-javascript">
6
7 function test()
8 {
9 InspectorTest.sendCommand("LayerTree.loadSnapshot", {
10 "tiles": [{
11 "x":351378,
12 "y":-15,
13 "picture": "c2tpYXBpY3QqAAAAiYICRsMkWkF3URZGz3Z9QgcAAAABZGFlcgAAAAB0 Y2FmBAAAAAAAAABjZnB0AAAAAHlhcmEAAAAAIGZvZQ=="
14 }]
15 }, InspectorTest.wrapCallback(onLoad));
16
17 function onLoad(result)
18 {
19 InspectorTest.log("Loading empty snapshot: " + result.error);
20 InspectorTest.completeTest();
21 }
22 }
23
24 </script>
25 <body onload="runTest()">
26 <div>Tests that Paint Profiler refuses to load a picture with empty dimensio ns</div>
27 </body>
28 </html>
29
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/layers/paint-profiler-load-empty-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698