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

Unified Diff: LayoutTests/inspector/layer-compositing-reasons.html

Issue 173763002: DevTools: hide page overlay layers in LayerTreeAgent (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed stray watchdog from test Created 6 years, 10 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 | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/layer-compositing-reasons-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/layer-compositing-reasons.html
diff --git a/LayoutTests/inspector/layer-compositing-reasons.html b/LayoutTests/inspector/layer-compositing-reasons.html
deleted file mode 100644
index 03010220683d35955845f2b1316cfe5733d5e4c1..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/layer-compositing-reasons.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<html>
-<head>
-<style>
-@-webkit-keyframes rotate {
- 0% { -webkit-transform: rotate(0deg); }
- 50% { -webkit-transform: rotate(180deg); }
- 100% { -webkit-transform: rotate(360deg); }
-}
-
-</style>
-<script src="../http/tests/inspector/inspector-test.js"></script>
-<script src="../http/tests/inspector/layers-test.js"></script>
-<script>
-if (window.internals) {
- document.addEventListener('webkitAnimationStart', function() {
- internals.pauseAnimations(0);
- });
-}
-
-function test()
-{
- function dumpCompositingReasons(layer, callback)
- {
- layer.requestCompositingReasons(function(reasons)
- {
- var node = WebInspector.domAgent.nodeForId(layer.nodeIdForSelfOrAncestor());
- var label = WebInspector.DOMPresentationUtils.fullQualifiedSelector(node, false);
- InspectorTest.addResult("Compositing reasons for " + label + ": " + reasons.sort().join(","));
- if (callback)
- callback();
- });
- }
-
- var idsToTest = [
- "transform3d",
- "iframe",
- "backface-visibility",
- "animation",
- "transformWithCompositedDescendants",
- "opacityWithCompositedDescendants",
- "reflectionWithCompositedDescendants",
- "perspective",
- "preserve3d"
- ];
-
- function onGotLayers()
- {
- dumpCompositingReasons(InspectorTest._layerTreeModel.contentRoot());
- for (var i = 0; i < idsToTest.length - 1; ++i)
- dumpCompositingReasons(InspectorTest.findLayerByNodeIdAttribute(idsToTest[i]));
- dumpCompositingReasons(InspectorTest.findLayerByNodeIdAttribute(idsToTest[idsToTest.length - 1]), InspectorTest.completeTest.bind(InspectorTest));
- }
- InspectorTest.requestLayers(onGotLayers);
-}
-
-</script>
-</head>
-<body onload="runTest()">
-<div id="transform3d" style="-webkit-transform: translateZ(100px);">translated</div>
-<iframe id="iframe" src="resources/composited-iframe.html"></iframe>
-<div id="backface-visibility" style="-webkit-backface-visibility: hidden">backface hidden</div>
-<div id="animation" style="width: 50px; height: 50px; -webkit-animation-name: rotate; -webkit-animation-iteration-count: infinite; -webkit-animation-duration: 5s;">animated</div>
-<div id="transformWithCompositedDescendants" style="-webkit-transform: rotate(10deg)">
- <div style="-webkit-transform: translateZ(100px);">
- </div>
-</div>
-<div id="opacityWithCompositedDescendants" style="opacity: 0.5">
- <div style="-webkit-transform: translateZ(100px);">opacity
- </div>
-</div>
-<div id="reflectionWithCompositedDescendants" style="-webkit-box-reflect: below">
- <div style="-webkit-transform: translateZ(100px);">reflected
- </div>
-</div>
-<div id="perspective" style="-webkit-perspective: 500;">
- <div style="-webkit-transform: translateZ(100px);">perspective
- </div>
-</div>
-<div id="preserve3d" style="-webkit-transform-style: preserve-3d;">
- <div style="-webkit-transform: translateZ(100px);">preserve3d
- </div>
-</div>
-</body>
-</html>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/layer-compositing-reasons-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698