mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 701262. Set up reftest for redirection on font load. r=joedrew
This commit is contained in:
parent
6b1f917c94
commit
66dc44a8ee
23
layout/reftests/font-face/font-redirect.html
Normal file
23
layout/reftests/font-face/font-redirect.html
Normal file
@ -0,0 +1,23 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
||||
"http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<title></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<style type="text/css">
|
||||
|
||||
@font-face {
|
||||
font-family: "MarkA";
|
||||
src: url(../fonts/markA-redirect.ttf);
|
||||
}
|
||||
|
||||
body { font-family: "MarkA"; }
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>ABC</p>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -138,3 +138,6 @@ HTTP(..) == missing-names.html missing-names-ref.html
|
||||
HTTP(..) == font-error-404-1.html font-error-404-1-ref.html # HTTP status 404, don't load
|
||||
HTTP(..) == font-error-404-2.html font-error-404-2-ref.html # HTTP status 200, load
|
||||
HTTP(..) != font-error-404-1.html font-error-404-2.html # sanity-check that the results differ
|
||||
|
||||
# Font load redirection
|
||||
HTTP(..) == font-redirect.html order-1-ref.html
|
||||
|
1
layout/reftests/fonts/markA-redirect.ttf
Normal file
1
layout/reftests/fonts/markA-redirect.ttf
Normal file
@ -0,0 +1 @@
|
||||
This is not a font!
|
2
layout/reftests/fonts/markA-redirect.ttf^headers^
Normal file
2
layout/reftests/fonts/markA-redirect.ttf^headers^
Normal file
@ -0,0 +1,2 @@
|
||||
HTTP 301 Moved Permanently
|
||||
Location: markA.ttf
|
Loading…
Reference in New Issue
Block a user