Commit 5e4327a8 authored by Tim van der Lippe's avatar Tim van der Lippe Committed by Commit Bot

Remove DevTools startup layout test

This was replaced by an e2etest in
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2085171

TBR=aerotwist@chromium.org

Bug: 1044632
Change-Id: Ic3cc7f86cd1a5950d1c07d335731a3520261d077
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2087216Reviewed-by: default avatarTim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#746756}
parent cedf986b
<html>
<head>
<script>
function addScript()
{
var fulfill;
var promise = new Promise(x => fulfill = x);
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "../../resource-tree/resources/script-with-constant-last-modified.php";
script.onload = fulfill;
document.body.appendChild(script);
return promise;
}
function addScriptAndRunTest()
{
addScript().then(() => testRunner.inspectSecondaryWindow());
}
</script>
</head>
<body onload="addScriptAndRunTest()">
</body>
</html>
<html>
<head>
<script>
function createShadowRoot()
{
var template = document.querySelector('#tmpl');
var root = document.querySelector('#host').createShadowRoot();
root.appendChild(template.content.cloneNode(true));
testRunner.inspectSecondaryWindow();
}
</script>
</head>
<body onload="createShadowRoot()">
<div id="host"></div>
<template id="tmpl">
<style> .red { color: red; } </style>
<div id="inner" class="red">hi!</div>
</template>
</body>
</html>
This test checks that style sheets hosted inside shadow roots could be inspected.
Running: testInit
Running: testDumpStyles
[expanded]
element.style { ()
[expanded]
.red { (<style>)
color: red;
[expanded]
div { (user agent stylesheet)
display: block;
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
await TestRunner.setupStartupTest('resources/shadow-dom-rules.html');
TestRunner.addResult(`This test checks that style sheets hosted inside shadow roots could be inspected.\n`);
await TestRunner.loadModule('elements_test_runner');
TestRunner.runTestSuite([
function testInit(next) {
ElementsTestRunner.selectNodeAndWaitForStyles('inner', next);
},
async function testDumpStyles(next) {
await ElementsTestRunner.dumpSelectedElementStyles(true);
next();
}
]);
})();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment