Commit 55d76bbe authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

[css-flexbox] Migrate crash-removing-out-of-flow-child.html to WPT

This CL adds <title>, <link rel=help> and <meta name=assert> data to the
test case. Additionally, it moves/renames it to
external/wpt/css/css-flexbox/remove-out-of-flow-child-crash.html

Last, the calls to testRunner.dumpAsText() is dropped.

BUG=1063749
R=smcgruer@chromium.org

Change-Id: I33a81ab8ac0b93c4794e530ca7ea3c56f0b5e41b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2139902
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: default avatarStephen McGruer <smcgruer@chromium.org>
Reviewed-by: default avatarDavid Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#757217}
parent b94b000f
<!DOCTYPE html>
<html>
<head>
<link href="resources/flexbox.css" rel="stylesheet">
</head>
<body>
<p>This test passes if it doesn't crash.</p>
<div id="outer" class="inline-flexbox"><div class="inline-flexbox"><div id="inner" style="position: absolute">absolute</div></div></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
var outer = document.getElementById("outer");
var inner = document.getElementById("inner");
// Force layout.
outer.offsetHeight;
outer.firstChild.removeChild(inner);
</script>
<div>This test passes if it doesn't crash.</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS Flexbox: absolutely position child removal.</title>
<link rel="stylesheet" href="support/flexbox.css" >
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#abspos-items">
<meta name="assert" content="This test ensures that removing absolute positioned flexbox children works."/>
</head>
<body>
<div id="outer" class="inline-flexbox">
<div id="middle" class="inline-flexbox">
<div id="inner" style="position: absolute">absolute</div>
</div>
</div>
<script>
var outer = document.getElementById("outer");
var middle = document.getElementById("middle");
var inner = document.getElementById("inner");
// Force layout.
outer.offsetHeight;
middle.removeChild(inner);
</script>
</body>
</html>
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