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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/resources/get-layers.html

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/resources/get-layers.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/resources/get-layers.html b/third_party/WebKit/LayoutTests/inspector-protocol/resources/get-layers.html
new file mode 100644
index 0000000000000000000000000000000000000000..54248675d37a2d87de1486832587bbb1daeef794
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/resources/get-layers.html
@@ -0,0 +1,52 @@
+<html>
+<head>
+<script>
+function addCompositedLayer() {
+ var element = document.createElement("div");
+ element.className = "composited";
+ element.id = "last-element";
+ document.body.appendChild(element);
+}
+</script>
+<style type="text/css">
+div {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+.regular {
+ width: 100px;
+ height: 100px;
+ background-color: black;
+}
+
+.composited {
+ top: 25px;
+ left: 25px;
+ width: 50px;
+ height: 50px;
+ background-color: blue;
+ transform: translateZ(0);
+}
+
+.offset {
+ left: 200px;
+ transform: translateZ(0);
+}
+</style>
+</head>
+<body>
+
+<div class="regular"></div>
+
+<div class="composited">
+ <div class="composited"></div>
+</div>
+
+<div class="regular offset">
+ <div class="composited"></div>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698