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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/layers/paint-profiler-load-empty-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
+
« 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