Index: third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes.html b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
similarity index 85% |
rename from third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes.html |
rename to third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
index ca14bcdacf6578dff10d88d52e45f44bad5ddf74..7768b34857061ec68b95bfe68797c7d8affba6e2 100644 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes.html |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
@@ -12,7 +12,8 @@ |
function test() |
{ |
InspectorTest.sendCommand("DOM.enable", {}); |
- InspectorTest.sendCommandOrDie("DOM.getLayoutTreeNodes", {}, onLayoutTreeNodes); |
+ var whitelist = ["transform", "transform-origin", "height", "width", "display", "outline-color"]; |
+ InspectorTest.sendCommandOrDie("CSS.getLayoutTreeAndStyles", {"computedStyleWhitelist": whitelist}, onLayoutTreeNodes); |
function onLayoutTreeNodes(response) |
{ |
@@ -46,7 +47,7 @@ function test() |
color: red; |
} |
</style> |
-<div>Hi!</div> |
+<div style="font-family: ahem;"><h1>Hi!</h1></div> |
</template> |
</head> |
<body class="body-class"> |
@@ -65,14 +66,14 @@ function test() |
</ul> |
</div> |
<div style="transform: rotateZ(90deg); width: 200px">Rotated text!</div> |
- <iframe src="resources/simple-iframe.html" width="400" height="200"></iframe> |
+ <iframe src="../dom/resources/simple-iframe.html" width="400" height="200"></iframe> |
<div id="shadow-host"></div> |
<script type="text/javascript"> |
var host = document.querySelector("#shadow-host").createShadowRoot(); |
var template = document.querySelector("#shadow-template"); |
host.appendChild(template.content); |
template.remove(); |
- runTest(); |
+ window.onload = runTest; |
</script> |
</div> |
</body> |