mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Add test for pre-line and pre-wrap wrapping not crashing servo.
This commit is contained in:
parent
383ba964ab
commit
b54b576202
3 changed files with 52 additions and 0 deletions
|
@ -6138,6 +6138,18 @@
|
|||
"url": "/_mozilla/css/test_variable_serialization_specified.html"
|
||||
}
|
||||
],
|
||||
"css/white-space-pre-line-long-line.html": [
|
||||
{
|
||||
"path": "css/white-space-pre-line-long-line.html",
|
||||
"url": "/_mozilla/css/white-space-pre-line-long-line.html"
|
||||
}
|
||||
],
|
||||
"css/white-space-pre-wrap-long-line.html": [
|
||||
{
|
||||
"path": "css/white-space-pre-wrap-long-line.html",
|
||||
"url": "/_mozilla/css/white-space-pre-wrap-long-line.html"
|
||||
}
|
||||
],
|
||||
"mozilla/DOMParser.html": [
|
||||
{
|
||||
"path": "mozilla/DOMParser.html",
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>White space pre-line crashtest (#12369)</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
div {
|
||||
width: 70px;
|
||||
white-space: pre-line;
|
||||
}
|
||||
</style>
|
||||
<div>This is an actual loooooooong line
|
||||
Line 2</div>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
window.addEventListener('load', function() {
|
||||
t.done();
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title>White space pre-wrap crashtest (#12369)</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<style>
|
||||
div {
|
||||
width: 70px;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
</style>
|
||||
<div>This is an actual loooooooong line
|
||||
Line 2</div>
|
||||
<script>
|
||||
async_test(function(t) {
|
||||
window.addEventListener('load', function() {
|
||||
t.done();
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue