Commit ddbcd80b authored by Aleks Totic's avatar Aleks Totic Committed by Chromium LUCI CQ

[TablesNG] Remove obsolete tests

Preparation for turning on the flag

Change-Id: I33f36367d3d408307c5a884b697d3cfff97780bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2645033
Commit-Queue: Aleks Totic <atotic@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Auto-Submit: Aleks Totic <atotic@chromium.org>
Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/master@{#846368}
parent 90b2a35a
This test passes if there is a green box that stretches the width of the page.
PASS
<html>
<head>
<style>
.fail, .pass, #spacer {
display: table-cell;
}
.pass {
visibility: hidden;
}
</style>
<script>
window.onload = function() {
if (window.testRunner)
testRunner.dumpAsText();
var spacer = document.getElementById("spacer");
if (spacer.offsetWidth > 0) {
var fail = document.getElementsByClassName("fail");
fail[1].className = "pass";
fail[0].className = "pass";
spacer.innerText = "PASS";
}
}
</script>
</head>
<body>
<div style="display: -webkit-box; -webkit-box-orient: horizontal">
This test passes if there is a green box that stretches the width of the page.
<div style="padding-left: 1px">
<div class="fail">FA</div>
<div id="spacer" style="color: green; width: 100%; background-color: green"></div>
<div class="fail">IL</div>
</div>
</div>
</body>
</html>
<html>
<head>
<script>
window.onload = function() {
if (window.testRunner)
testRunner.dumpAsText();
var cell = document.getElementById("cell");
var text = cell.firstElementChild;
var wdiff = cell.offsetWidth - text.offsetWidth - (parseInt(window.getComputedStyle(cell).getPropertyValue('padding-right')) +
parseInt(window.getComputedStyle(cell).getPropertyValue('padding-left')));
if (wdiff > 0)
text.innerText = "PASS";
}
</script>
</head>
<body>
<div style="float: left;">
<div style="display: -webkit-box; border: 1px solid">
<table>
<tr>
<td></td>
<td id="cell" style="background-color: green; width: 100%; height: 30px">
<span>FAIL</span>
</td>
</tr>
</table>
</div>
</div>
<div style="clear: left;">The green box should be the full width of the page.</div>
</body>
</html>
\ No newline at end of file
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