mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-05-13 08:57:27 +00:00
Run font inflation reftests with the reftest harness rather than inside of mochitest. (Bug 743817) r=sjohnson
--HG-- rename : layout/base/tests/font-inflation/bug707855-innerFrame-ref.html => layout/reftests/font-inflation/bug707855-innerFrame-ref.html rename : layout/base/tests/font-inflation/bug707855-innerFrame.html => layout/reftests/font-inflation/bug707855-innerFrame.html rename : layout/base/tests/font-inflation/bug707855-ref.html => layout/reftests/font-inflation/bug707855-ref.html rename : layout/base/tests/font-inflation/bug707855.html => layout/reftests/font-inflation/bug707855.html rename : layout/base/tests/font-inflation/bullet-1-ref.html => layout/reftests/font-inflation/bullet-1-ref.html rename : layout/base/tests/font-inflation/bullet-1.html => layout/reftests/font-inflation/bullet-1.html rename : layout/base/tests/font-inflation/bullet-2-ref.html => layout/reftests/font-inflation/bullet-2-ref.html rename : layout/base/tests/font-inflation/bullet-2.html => layout/reftests/font-inflation/bullet-2.html rename : layout/base/tests/font-inflation/consecutive-inline-ref.html => layout/reftests/font-inflation/consecutive-inline-ref.html rename : layout/base/tests/font-inflation/consecutive-inline.html => layout/reftests/font-inflation/consecutive-inline.html rename : layout/base/tests/font-inflation/container-with-clamping-innerFrame-ref.html => layout/reftests/font-inflation/container-with-clamping-innerFrame-ref.html rename : layout/base/tests/font-inflation/container-with-clamping-innerFrame.html => layout/reftests/font-inflation/container-with-clamping-innerFrame.html rename : layout/base/tests/font-inflation/container-with-clamping-ref.html => layout/reftests/font-inflation/container-with-clamping-ref.html rename : layout/base/tests/font-inflation/container-with-clamping.html => layout/reftests/font-inflation/container-with-clamping.html rename : layout/base/tests/font-inflation/css-transform-1-ref.html => layout/reftests/font-inflation/css-transform-1-ref.html rename : layout/base/tests/font-inflation/css-transform-1.html => layout/reftests/font-inflation/css-transform-1.html rename : layout/base/tests/font-inflation/css-transform-2-ref.html => layout/reftests/font-inflation/css-transform-2-ref.html rename : layout/base/tests/font-inflation/css-transform-2.html => layout/reftests/font-inflation/css-transform-2.html rename : layout/base/tests/font-inflation/decoration-1-ref.html => layout/reftests/font-inflation/decoration-1-ref.html rename : layout/base/tests/font-inflation/decoration-1.html => layout/reftests/font-inflation/decoration-1.html rename : layout/base/tests/font-inflation/disable-fontinfl-on-mobile-2.html => layout/reftests/font-inflation/disable-fontinfl-on-mobile-2.html rename : layout/base/tests/font-inflation/disable-fontinfl-on-mobile-3.html => layout/reftests/font-inflation/disable-fontinfl-on-mobile-3.html rename : layout/base/tests/font-inflation/disable-fontinfl-on-mobile-4.html => layout/reftests/font-inflation/disable-fontinfl-on-mobile-4.html rename : layout/base/tests/font-inflation/disable-fontinfl-on-mobile-ref.html => layout/reftests/font-inflation/disable-fontinfl-on-mobile-ref.html rename : layout/base/tests/font-inflation/disable-fontinfl-on-mobile.html => layout/reftests/font-inflation/disable-fontinfl-on-mobile.html rename : layout/base/tests/font-inflation/fixed-height-body-child-ref.html => layout/reftests/font-inflation/fixed-height-body-child-ref.html rename : layout/base/tests/font-inflation/fixed-height-body-child.html => layout/reftests/font-inflation/fixed-height-body-child.html rename : layout/base/tests/font-inflation/fixed-height-body-ref.html => layout/reftests/font-inflation/fixed-height-body-ref.html rename : layout/base/tests/font-inflation/fixed-height-body.html => layout/reftests/font-inflation/fixed-height-body.html rename : layout/base/tests/font-inflation/input-checkbox.html => layout/reftests/font-inflation/input-checkbox.html rename : layout/base/tests/font-inflation/input-radio.html => layout/reftests/font-inflation/input-radio.html rename : layout/base/tests/font-inflation/input-text-1-ref.html => layout/reftests/font-inflation/input-text-1-ref.html rename : layout/base/tests/font-inflation/input-text-1.html => layout/reftests/font-inflation/input-text-1.html rename : layout/base/tests/font-inflation/input-text-2-ref.html => layout/reftests/font-inflation/input-text-2-ref.html rename : layout/base/tests/font-inflation/input-text-2.html => layout/reftests/font-inflation/input-text-2.html rename : layout/base/tests/font-inflation/input-text-3-ref.html => layout/reftests/font-inflation/input-text-3-ref.html rename : layout/base/tests/font-inflation/input-text-3.html => layout/reftests/font-inflation/input-text-3.html rename : layout/base/tests/font-inflation/intrinsic-fit-1a-ref.html => layout/reftests/font-inflation/intrinsic-fit-1a-ref.html rename : layout/base/tests/font-inflation/intrinsic-fit-1a.html => layout/reftests/font-inflation/intrinsic-fit-1a.html rename : layout/base/tests/font-inflation/intrinsic-fit-1b-ref.html => layout/reftests/font-inflation/intrinsic-fit-1b-ref.html rename : layout/base/tests/font-inflation/intrinsic-fit-1b.html => layout/reftests/font-inflation/intrinsic-fit-1b.html rename : layout/base/tests/font-inflation/intrinsic-fit-1c-ref.html => layout/reftests/font-inflation/intrinsic-fit-1c-ref.html rename : layout/base/tests/font-inflation/intrinsic-fit-1c.html => layout/reftests/font-inflation/intrinsic-fit-1c.html rename : layout/base/tests/font-inflation/intrinsic-fit-2a.html => layout/reftests/font-inflation/intrinsic-fit-2a.html rename : layout/base/tests/font-inflation/intrinsic-fit-2b.html => layout/reftests/font-inflation/intrinsic-fit-2b.html rename : layout/base/tests/font-inflation/intrinsic-fit-2c.html => layout/reftests/font-inflation/intrinsic-fit-2c.html rename : layout/base/tests/font-inflation/intrinsic-max-1-ref.html => layout/reftests/font-inflation/intrinsic-max-1-ref.html rename : layout/base/tests/font-inflation/intrinsic-max-1.html => layout/reftests/font-inflation/intrinsic-max-1.html rename : layout/base/tests/font-inflation/intrinsic-min-1-ref.html => layout/reftests/font-inflation/intrinsic-min-1-ref.html rename : layout/base/tests/font-inflation/intrinsic-min-1.html => layout/reftests/font-inflation/intrinsic-min-1.html rename : layout/base/tests/font-inflation/preformatted-text-ref.html => layout/reftests/font-inflation/preformatted-text-ref.html rename : layout/base/tests/font-inflation/preformatted-text.html => layout/reftests/font-inflation/preformatted-text.html rename : layout/base/tests/font-inflation/select-combobox-1-ref.html => layout/reftests/font-inflation/select-combobox-1-ref.html rename : layout/base/tests/font-inflation/select-combobox-1.html => layout/reftests/font-inflation/select-combobox-1.html rename : layout/base/tests/font-inflation/select-combobox-2-ref.html => layout/reftests/font-inflation/select-combobox-2-ref.html rename : layout/base/tests/font-inflation/select-combobox-2.html => layout/reftests/font-inflation/select-combobox-2.html rename : layout/base/tests/font-inflation/select-listbox-1-ref.html => layout/reftests/font-inflation/select-listbox-1-ref.html rename : layout/base/tests/font-inflation/select-listbox-1.html => layout/reftests/font-inflation/select-listbox-1.html rename : layout/base/tests/font-inflation/select-listbox-2-ref.html => layout/reftests/font-inflation/select-listbox-2-ref.html rename : layout/base/tests/font-inflation/select-listbox-2.html => layout/reftests/font-inflation/select-listbox-2.html rename : layout/base/tests/font-inflation/text-1-ref.html => layout/reftests/font-inflation/text-1-ref.html rename : layout/base/tests/font-inflation/text-1.html => layout/reftests/font-inflation/text-1.html rename : layout/base/tests/font-inflation/text-2-ref.html => layout/reftests/font-inflation/text-2-ref.html rename : layout/base/tests/font-inflation/text-2.html => layout/reftests/font-inflation/text-2.html rename : layout/base/tests/font-inflation/text-3-ref.html => layout/reftests/font-inflation/text-3-ref.html rename : layout/base/tests/font-inflation/text-3.html => layout/reftests/font-inflation/text-3.html rename : layout/base/tests/font-inflation/text-4-ref.html => layout/reftests/font-inflation/text-4-ref.html rename : layout/base/tests/font-inflation/text-4.html => layout/reftests/font-inflation/text-4.html rename : layout/base/tests/font-inflation/textarea-1-ref.html => layout/reftests/font-inflation/textarea-1-ref.html rename : layout/base/tests/font-inflation/textarea-1.html => layout/reftests/font-inflation/textarea-1.html rename : layout/base/tests/font-inflation/textarea-2-ref.html => layout/reftests/font-inflation/textarea-2-ref.html rename : layout/base/tests/font-inflation/textarea-2.html => layout/reftests/font-inflation/textarea-2.html rename : layout/base/tests/font-inflation/textarea-3-ref.html => layout/reftests/font-inflation/textarea-3-ref.html rename : layout/base/tests/font-inflation/textarea-3.html => layout/reftests/font-inflation/textarea-3.html rename : layout/base/tests/font-inflation/video-1.html => layout/reftests/font-inflation/video-1.html
This commit is contained in:
parent
4e7932234e
commit
ec1bf34b22
@ -183,7 +183,6 @@ _TEST_FILES = \
|
||||
test_bug629838.html \
|
||||
test_bug646757.html \
|
||||
test_bug718809.html \
|
||||
test_font_inflation_reftests.html \
|
||||
test_bug725426.html \
|
||||
test_bug731777.html \
|
||||
$(NULL)
|
||||
@ -383,18 +382,10 @@ _BROWSER_FILES = \
|
||||
browser_bug617076.js \
|
||||
$(NULL)
|
||||
|
||||
_INFLATION_REFTEST_FILES = \
|
||||
$(shell find $(srcdir)/font-inflation/ -name '*.html' -o -name '*.xhtml') \
|
||||
$(srcdir)/../../reftests/webm-video/black140x100.webm \
|
||||
$(srcdir)/../../reftests/fonts/Ahem.ttf \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)
|
||||
libs:: $(_BROWSER_FILES)
|
||||
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/browser/$(relativesrcdir)
|
||||
libs:: $(_INFLATION_REFTEST_FILES)
|
||||
$(INSTALL) $(foreach f,$^,"$f") $(DEPTH)/_tests/testing/mochitest/tests/$(relativesrcdir)/font-inflation/
|
||||
|
||||
check::
|
||||
@$(EXIT_ON_ERROR) \
|
||||
|
@ -1,2 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<video src="black140x100.webm"></video>
|
@ -1,151 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=627842
|
||||
-->
|
||||
<head>
|
||||
<title>Font size inflation reftests</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/WindowSnapshot.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
<style type="text/css">
|
||||
canvas { border: 1px solid green }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=627842">Mozilla Bug 627842</a>
|
||||
<pre id="test">
|
||||
<script type="application/javascript; version=1.7">
|
||||
|
||||
/** Test for font size inflation **/
|
||||
|
||||
var gTests = [
|
||||
// IMPORTANT NOTE: For these tests, the test and reference are not
|
||||
// snapshotted in the same way. The REFERENCE (second file) is
|
||||
// snapshotted with no unusual pref settings, whereas the TEST (first
|
||||
// file) has font inflation set to 15 em per line.
|
||||
|
||||
|
||||
"== text-1.html text-1-ref.html",
|
||||
"== text-2.html text-2-ref.html",
|
||||
"== text-3.html text-3-ref.html",
|
||||
"== text-4.html text-4-ref.html",
|
||||
"== decoration-1.html decoration-1-ref.html",
|
||||
"== bullet-1.html bullet-1-ref.html",
|
||||
"== bullet-2.html bullet-2-ref.html",
|
||||
"== input-text-1.html input-text-1-ref.html",
|
||||
"== input-text-2.html input-text-2-ref.html",
|
||||
"== input-text-3.html input-text-3-ref.html",
|
||||
"== textarea-1.html textarea-1-ref.html",
|
||||
"== textarea-2.html textarea-2-ref.html",
|
||||
"== textarea-3.html textarea-3-ref.html",
|
||||
"== css-transform-1.html css-transform-1-ref.html",
|
||||
"== css-transform-2.html css-transform-2-ref.html",
|
||||
"== container-with-clamping.html container-with-clamping-ref.html",
|
||||
"!= video-1.html about:blank", // crashtest
|
||||
"== intrinsic-min-1.html intrinsic-min-1-ref.html",
|
||||
"== intrinsic-max-1.html intrinsic-max-1-ref.html",
|
||||
"== intrinsic-fit-1a.html intrinsic-fit-1a-ref.html",
|
||||
"== intrinsic-fit-1b.html intrinsic-fit-1b-ref.html",
|
||||
"== intrinsic-fit-1c.html intrinsic-fit-1c-ref.html",
|
||||
"== intrinsic-fit-2a.html intrinsic-fit-1a-ref.html",
|
||||
"== intrinsic-fit-2b.html intrinsic-fit-1b-ref.html",
|
||||
"== intrinsic-fit-2c.html intrinsic-fit-1c-ref.html",
|
||||
"== select-listbox-1.html select-listbox-1-ref.html",
|
||||
"!= select-listbox-1.html select-listbox-1.html",
|
||||
"== select-combobox-1.html select-combobox-1-ref.html",
|
||||
"!= select-combobox-1.html select-combobox-1.html",
|
||||
"== select-listbox-2.html select-listbox-2-ref.html",
|
||||
"!= select-listbox-2.html select-listbox-2.html",
|
||||
"== select-combobox-2.html select-combobox-2-ref.html",
|
||||
"!= select-combobox-2.html select-combobox-2.html",
|
||||
"!= input-checkbox.html input-checkbox.html",
|
||||
"!= input-radio.html input-radio.html",
|
||||
"== disable-fontinfl-on-mobile.html disable-fontinfl-on-mobile-ref.html",
|
||||
"== disable-fontinfl-on-mobile-2.html disable-fontinfl-on-mobile-ref.html",
|
||||
"== disable-fontinfl-on-mobile-3.html disable-fontinfl-on-mobile-ref.html",
|
||||
"== disable-fontinfl-on-mobile-4.html disable-fontinfl-on-mobile-ref.html",
|
||||
"== preformatted-text.html preformatted-text-ref.html",
|
||||
"== fixed-height-body.html fixed-height-body-ref.html",
|
||||
"== fixed-height-body-child.html fixed-height-body-child-ref.html",
|
||||
"== consecutive-inline.html consecutive-inline-ref.html",
|
||||
];
|
||||
|
||||
// Maintain a reference count of how many things we're waiting for until
|
||||
// we can say the tests are done.
|
||||
var gDelayCount = 0;
|
||||
function AddFinishDependency()
|
||||
{ ++gDelayCount; }
|
||||
function RemoveFinishDependency()
|
||||
{ if (--gDelayCount == 0) nextPhase(); }
|
||||
|
||||
function takeSnapshot(iframe_element)
|
||||
{
|
||||
return snapshotWindow(iframe_element.contentWindow, false);
|
||||
}
|
||||
|
||||
function startIframe(url)
|
||||
{
|
||||
AddFinishDependency();
|
||||
var element = document.createElement("iframe");
|
||||
element.addEventListener("load", handleLoad, false);
|
||||
// smaller than normal reftests, but enough for these
|
||||
element.setAttribute("style", "width: 600px; height: 100px");
|
||||
element.src = "font-inflation/" + url;
|
||||
document.body.appendChild(element);
|
||||
function handleLoad(event)
|
||||
{
|
||||
RemoveFinishDependency();
|
||||
}
|
||||
return element;
|
||||
}
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
|
||||
var gPhase = 0;
|
||||
|
||||
function nextPhase() {
|
||||
switch (gPhase) {
|
||||
case 0:
|
||||
SpecialPowers.setIntPref("font.size.inflation.emPerLine", 15);
|
||||
for (var i = 0; i < gTests.length; ++i) {
|
||||
let splitData = gTests[i].split(" ");
|
||||
let testData =
|
||||
{ op: splitData[0], test: splitData[1], reference: splitData[2] };
|
||||
gTests[i] = testData;
|
||||
testData.testframe = startIframe(testData.test);
|
||||
}
|
||||
break;
|
||||
case 1:
|
||||
for (var i = 0; i < gTests.length; ++i) {
|
||||
var testData = gTests[i];
|
||||
testData.testshot = takeSnapshot(testData.testframe);
|
||||
testData.testframe.parentNode.removeChild(testData.testframe);
|
||||
}
|
||||
SpecialPowers.setIntPref("font.size.inflation.emPerLine", 0);
|
||||
for (var i = 0; i < gTests.length; ++i) {
|
||||
var testData = gTests[i];
|
||||
testData.refframe = startIframe(testData.reference);
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
for (var i = 0; i < gTests.length; ++i) {
|
||||
var testData = gTests[i];
|
||||
testData.refshot = takeSnapshot(testData.refframe);
|
||||
testData.refframe.parentNode.removeChild(testData.refframe);
|
||||
assertSnapshots(testData.testshot, testData.refshot,
|
||||
testData.op == "==",
|
||||
testData.test, testData.reference);
|
||||
}
|
||||
SimpleTest.finish();
|
||||
return;
|
||||
}
|
||||
++gPhase;
|
||||
}
|
||||
|
||||
nextPhase();
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
@ -8,6 +8,11 @@ into 30px-45px, so 12px gets mapped to 34px.
|
||||
<style>
|
||||
body {
|
||||
height: 100%;
|
||||
/*
|
||||
* We need overflow:hidden because we can't show a scrollbar due
|
||||
* to https://bugzilla.mozilla.org/show_bug.cgi?id=743805 .
|
||||
*/
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div {
|
@ -8,6 +8,11 @@ into 30px-45px, so 12px gets mapped to 34px.
|
||||
<style>
|
||||
body {
|
||||
height: 100%;
|
||||
/*
|
||||
* We need overflow:hidden because we can't show a scrollbar due
|
||||
* to https://bugzilla.mozilla.org/show_bug.cgi?id=743805 .
|
||||
*/
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
div {
|
@ -3,7 +3,7 @@
|
||||
The minimum font size at 15em per line in a 450px container is 30px. This means we map 0px-45px
|
||||
into 30px-45px, so 12px gets mapped to 34px.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
@ -11,10 +11,14 @@ into 30px-45px, so 12px gets mapped to 34px.
|
||||
width: 450px;
|
||||
line-height: 1.1;
|
||||
font-size: 34px;
|
||||
/*
|
||||
* We need overflow:hidden because we can't show a scrollbar due
|
||||
* to https://bugzilla.mozilla.org/show_bug.cgi?id=743805 .
|
||||
*/
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<html>
|
||||
<body>
|
||||
Dorothy lived in the midst of the great Kansas prairies, with Uncle Henry, who was a farmer, and Aunt Em, who was the farmer's wife. Their house was small, for the lumber to build it had to be carried by wagon many miles. There were four walls, a floor and a roof, which made one room; and this room contained a rusty looking cookstove, a cupboard for the dishes, a table, three or four chairs, and the beds. Uncle Henry and Aunt Em had a big bed in one corner, and Dorothy a little bed in another corner. There was no garret at all, and no cellar--except a small hole dug in the ground, called a cyclone cellar, where the family could go in case one of those great whirlwinds arose, mighty enough to crush any building in its path. It was reached by a trap door in the middle of the floor, from which a ladder led down into the small, dark hole.
|
||||
</body>
|
@ -3,7 +3,7 @@
|
||||
The minimum font size at 15em per line in a 450px container is 30px. This means we map 0px-45px
|
||||
into 30px-45px, so 12px gets mapped to 34px.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<style>
|
||||
body {
|
||||
@ -11,10 +11,14 @@ into 30px-45px, so 12px gets mapped to 34px.
|
||||
width: 450px;
|
||||
line-height: 1.1;
|
||||
font-size: 12px;
|
||||
/*
|
||||
* We need overflow:hidden because we can't show a scrollbar due
|
||||
* to https://bugzilla.mozilla.org/show_bug.cgi?id=743805 .
|
||||
*/
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<html>
|
||||
<body>
|
||||
Dorothy lived in the midst of the great Kansas prairies, with Uncle Henry, who was a farmer, and Aunt Em, who was the farmer's wife. Their house was small, for the lumber to build it had to be carried by wagon many miles. There were four walls, a floor and a roof, which made one room; and this room contained a rusty looking cookstove, a cupboard for the dishes, a table, three or four chairs, and the beds. Uncle Henry and Aunt Em had a big bed in one corner, and Dorothy a little bed in another corner. There was no garret at all, and no cellar--except a small hole dug in the ground, called a cyclone cellar, where the family could go in case one of those great whirlwinds arose, mighty enough to crush any building in its path. It was reached by a trap door in the middle of the floor, from which a ladder led down into the small, dark hole.
|
||||
</body>
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 10px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 10px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 150px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 150px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 10px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 150px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
@ -1,6 +1,6 @@
|
||||
<!DOCTYPE HTML>
|
||||
<style>
|
||||
@font-face { font-family: Ahem; src: url(Ahem.ttf); }
|
||||
@font-face { font-family: Ahem; src: url(../fonts/Ahem.ttf); }
|
||||
html, body { margin: 0; padding: 0; }
|
||||
body { width: 450px }
|
||||
p {
|
43
layout/reftests/font-inflation/reftest.list
Normal file
43
layout/reftests/font-inflation/reftest.list
Normal file
@ -0,0 +1,43 @@
|
||||
test-pref(font.size.inflation.emPerLine,15) == text-1.html text-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == text-2.html text-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == text-3.html text-3-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == text-4.html text-4-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == decoration-1.html decoration-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == bullet-1.html bullet-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == bullet-2.html bullet-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == input-text-1.html input-text-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == input-text-2.html input-text-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == input-text-3.html input-text-3-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == textarea-1.html textarea-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == textarea-2.html textarea-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == textarea-3.html textarea-3-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == css-transform-1.html css-transform-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == css-transform-2.html css-transform-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == container-with-clamping.html container-with-clamping-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) load video-1.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-min-1.html intrinsic-min-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-max-1.html intrinsic-max-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-fit-1a.html intrinsic-fit-1a-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-fit-1b.html intrinsic-fit-1b-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-fit-1c.html intrinsic-fit-1c-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-fit-2a.html intrinsic-fit-1a-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-fit-2b.html intrinsic-fit-1b-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) HTTP(..) == intrinsic-fit-2c.html intrinsic-fit-1c-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == select-listbox-1.html select-listbox-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) != select-listbox-1.html select-listbox-1.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == select-combobox-1.html select-combobox-1-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) != select-combobox-1.html select-combobox-1.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == select-listbox-2.html select-listbox-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) != select-listbox-2.html select-listbox-2.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == select-combobox-2.html select-combobox-2-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) != select-combobox-2.html select-combobox-2.html
|
||||
asserts-if(gtk2Widget,1-2) test-pref(font.size.inflation.emPerLine,15) != input-checkbox.html input-checkbox.html
|
||||
asserts-if(gtk2Widget,1-2) test-pref(font.size.inflation.emPerLine,15) != input-radio.html input-radio.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == disable-fontinfl-on-mobile.html disable-fontinfl-on-mobile-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == disable-fontinfl-on-mobile-2.html disable-fontinfl-on-mobile-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == disable-fontinfl-on-mobile-3.html disable-fontinfl-on-mobile-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == disable-fontinfl-on-mobile-4.html disable-fontinfl-on-mobile-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == preformatted-text.html preformatted-text-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == fixed-height-body.html fixed-height-body-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == fixed-height-body-child.html fixed-height-body-child-ref.html
|
||||
test-pref(font.size.inflation.emPerLine,15) == consecutive-inline.html consecutive-inline-ref.html
|
2
layout/reftests/font-inflation/video-1.html
Normal file
2
layout/reftests/font-inflation/video-1.html
Normal file
@ -0,0 +1,2 @@
|
||||
<!DOCTYPE HTML>
|
||||
<video src="../webm-video/black140x100.webm"></video>
|
@ -152,6 +152,9 @@ include font-face/reftest.list
|
||||
# font features (opentype)
|
||||
include font-features/reftest.list
|
||||
|
||||
# mobile font size inflation
|
||||
include font-inflation/reftest.list
|
||||
|
||||
# font matching
|
||||
include font-matching/reftest.list
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user