| Index: LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.html
|
| diff --git a/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.html b/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..361cdab29c870b97083abdf5cadbadad2750d259
|
| --- /dev/null
|
| +++ b/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.html
|
| @@ -0,0 +1,29 @@
|
| +<html>
|
| +<head>
|
| +<script type="application/x-javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
|
| +<script type="application/x-javascript" src="layer-protocol-test.js"></script>
|
| +<script type="application/x-javascript">
|
| +
|
| +function test()
|
| +{
|
| + InspectorTest.sendCommand("LayerTree.loadSnapshot", {
|
| + "tiles": [{
|
| + "x":351378,
|
| + "y":-15,
|
| + "picture": "c2tpYXBpY3QqAAAAiYICRsMkWkF3URZGz3Z9QgcAAAABZGFlcgAAAAB0Y2FmBAAAAAAAAABjZnB0AAAAAHlhcmEAAAAAIGZvZQ=="
|
| + }]
|
| + }, InspectorTest.wrapCallback(onLoad));
|
| +
|
| + function onLoad(result)
|
| + {
|
| + InspectorTest.log("Loading empty snapshot: " + result.error);
|
| + InspectorTest.completeTest();
|
| + }
|
| +}
|
| +
|
| +</script>
|
| +<body onload="runTest()">
|
| + <div>Tests that Paint Profiler refuses to load a picture with empty dimensions</div>
|
| +</body>
|
| +</html>
|
| +
|
|
|