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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.js

Issue 2954343004: [DevTools] Migrate inspector-protocol/layers tests to new harness (Closed)
Patch Set: fix test 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.js
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.js b/third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.js
new file mode 100644
index 0000000000000000000000000000000000000000..04c7278d84c5b42b888cc2603e7d2a05c8a58a71
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/layers/paint-profiler-load-empty.js
@@ -0,0 +1,14 @@
+(async function(testRunner) {
+ let {page, session, dp} = await testRunner.startBlank('Tests that Paint Profiler refuses to load a picture with empty dimensions');
+
+ var response = await dp.LayerTree.loadSnapshot({
+ tiles: [{
+ x: 351378,
+ y: -15,
+ picture: 'c2tpYXBpY3QqAAAAiYICRsMkWkF3URZGz3Z9QgcAAAABZGFlcgAAAAB0Y2FmBAAAAAAAAABjZnB0AAAAAHlhcmEAAAAAIGZvZQ=='
+ }]
+ });
+
+ testRunner.log('Loading empty snapshot: ' + response.error);
+ testRunner.completeTest();
+})

Powered by Google App Engine
This is Rietveld 408576698