Commit e6dd3701 authored by Gyuyoung Kim's avatar Gyuyoung Kim Committed by Commit Bot

[css-grid] Migrate grid-element-bad-cast-addchild.html to WPT

This CL migrates grid-element-bad-cast.html and its
-expected.txt from fast/css-grid-layout to
external/wpt/css/css-grid with WPT styles, adding links
to the relevant specs, and test description.

Additionally, this test is renamed to
grid-item-script-001[-ref].html to be align
with existing tests.

Bug: 1063749, 767015
Change-Id: Ieea0ba3fb0f712652420276c0bc5967140614b93
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2143185Reviewed-by: default avatarManuel Rego <rego@igalia.com>
Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com>
Cr-Commit-Position: refs/heads/master@{#758805}
parent 77c67d2d
<!DOCTYPE html>
<title>CSS Grid Layout Test: Insert script as grid item</title>
<link rel="help" href="https://drafts.csswg.org/css-grid-1/#grid-item">
<link rel="stylesheet" href="/css/support/grid.css"/>
<link rel="match" href="../reference/grid-item-script-001-ref.html">
<meta name="assert" content="This test ensures that inserting a script element as grid item doesn't crash.">
<div class="grid">
<script>
var grid = document.getElementsByClassName("grid")[0];
grid.offsetTop;
grid.innerHTML = "Test passes if it doesn't crash.";
</script>
</div>
\ No newline at end of file
<!DOCTYPE html>
<div style="background: grey;">Test passes if it doesn't crash.</div>
\ No newline at end of file
This test checks that inserting a non-LayoutBox grid item doesn't make us crash.
This test has PASSED if it didn't crash and you see PASSED below.
PASSED
<!DOCTYPE html>
<link href="resources/grid.css" rel="stylesheet">
<p>This test checks that inserting a non-LayoutBox grid item doesn't make us crash.</p>
<p>This test has PASSED if it didn't crash and you see PASSED below.</p>
<div class="grid">
<script>
if (window.testRunner)
testRunner.dumpAsText();
var grid = document.getElementsByClassName("grid")[0];
grid.offsetTop;
grid.innerHTML = "PASSED";
</script>
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