forked from Floorp-Projects/Floorp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1616411 - Part 7: Tests. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D70277
- Loading branch information
Showing
34 changed files
with
187 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<!-- Any copyright is dedicated to the Public Domain. | ||
- http://creativecommons.org/publicdomain/zero/1.0/ --> | ||
<html class="reftest-wait"> | ||
<head> | ||
<script> | ||
function snapshot() { | ||
document.documentElement.removeAttribute('class'); | ||
} | ||
</script> | ||
</head> | ||
<!-- NOTE: Using setTimeout to wait for high-quality downscaled version of | ||
image to be ready, because there's nothing better we can do. If we fix | ||
Bug 1006883, we can do away with this setTimeout. | ||
For now, the setTimeout is just here to increase the likelihood that we | ||
actually test the high-quality downscaled version of the image. If the | ||
setTimeout happens to fire before the high-quality downscaled rendering is | ||
ready, then this the test will pass without testing what it's trying to | ||
test, which is fine as long as that's rare. --> | ||
<body onload="setTimeout(snapshot, 50)"> | ||
<img src="image-pre-rotated-90-deg.jpg" style="width: 50px; height: 25px;"> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<!-- Any copyright is dedicated to the Public Domain. | ||
- http://creativecommons.org/publicdomain/zero/1.0/ --> | ||
<html class="reftest-wait"> | ||
<head> | ||
<script> | ||
function snapshot() { | ||
document.documentElement.removeAttribute('class'); | ||
} | ||
</script> | ||
</head> | ||
<!-- NOTE: Using setTimeout to wait for high-quality downscaled version of | ||
image to be ready, because there's nothing better we can do. If we fix | ||
Bug 1006883, we can do away with this setTimeout. | ||
For now, the setTimeout is just here to increase the likelihood that we | ||
actually test the high-quality downscaled version of the image. If the | ||
setTimeout happens to fire before the high-quality downscaled rendering is | ||
ready, then this the test will pass without testing what it's trying to | ||
test, which is fine as long as that's rare. --> | ||
<body onload="setTimeout(snapshot, 50)"> | ||
<img src="../../../../layout/reftests/image/image-exif-90-deg.jpg" style="width: 50px; height: 25px;"> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!DOCTYPE html> | ||
<div style="width: 200px; height: 100px;"><img src="../image/image-exif-90-deg.jpg"></div> | ||
<img src="../image/image-exif-90-deg.jpg"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!-- Test that -moz-element() honors a target image's orientation metadata. --> | ||
<div style="width: 200px; height: 100px; background-image: -moz-element(#e);"></div> | ||
<img id="e" src="../image/image-exif-90-deg.jpg"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
layout/reftests/image/image-orientation-list-style-image.html
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...ng/web-platform/meta/2dcontext/drawing-images-to-the-canvas/image-orientation/__dir__.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
prefs: [layout.css.image-orientation.initial-from-image:true, image.honor-orientation-metadata:true] |
2 changes: 2 additions & 0 deletions
2
...to-the-canvas/image-orientation/drawImage-from-bitmap-orientation-none.tentative.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[drawImage-from-bitmap-orientation-none.tentative.html] | ||
expected: FAIL |
2 changes: 2 additions & 0 deletions
2
...e-orientation/drawImage-from-bitmap-swap-width-height-orientation-none.tentative.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[drawImage-from-bitmap-swap-width-height-orientation-none.tentative.html] | ||
expected: FAIL |
2 changes: 0 additions & 2 deletions
2
...o-the-canvas/image-orientation/drawImage-from-bitmap-swap-width-height.tentative.html.ini
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...t/drawing-images-to-the-canvas/image-orientation/drawImage-from-bitmap.tentative.html.ini
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
...o-the-canvas/image-orientation/drawImage-from-element-orientation-none.tentative.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[drawImage-from-element-orientation-none.tentative.html] | ||
expected: FAIL |
2 changes: 2 additions & 0 deletions
2
...-orientation/drawImage-from-element-swap-width-height-orientation-none.tentative.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[drawImage-from-element-swap-width-height-orientation-none.tentative.html] | ||
expected: FAIL |
2 changes: 0 additions & 2 deletions
2
...-the-canvas/image-orientation/drawImage-from-element-swap-width-height.tentative.html.ini
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
.../drawing-images-to-the-canvas/image-orientation/drawImage-from-element.tentative.html.ini
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
testing/web-platform/meta/css/css-images/image-orientation/__dir__.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
leak-threshold: [default:51200] | ||
prefs: [image.honor-orientation-metadata:true, layout.css.image-orientation.initial-from-image:true] |
2 changes: 2 additions & 0 deletions
2
...latform/meta/css/css-images/image-orientation/image-orientation-background-image.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[image-orientation-background-image.html] | ||
fuzzy: 2;40 |
2 changes: 2 additions & 0 deletions
2
...eb-platform/meta/css/css-images/image-orientation/image-orientation-border-image.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[image-orientation-border-image.html] | ||
fuzzy: 0-16;80-160 |
2 changes: 2 additions & 0 deletions
2
...latform/meta/css/css-images/image-orientation/image-orientation-list-style-image.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[image-orientation-list-style-image.html] | ||
fuzzy: 0-4;0-41 |
2 changes: 2 additions & 0 deletions
2
.../web-platform/meta/css/css-images/image-orientation/image-orientation-mask-image.html.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[image-orientation-mask-image.html] | ||
fuzzy: 1;22 |
13 changes: 13 additions & 0 deletions
13
...b-platform/tests/css/css-images/image-orientation/image-orientation-background-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Images Module Level 3: image-orientation does not apply to background-image</title> | ||
<link rel="author" title="Cameron McCormack" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation"> | ||
<link rel="match" href="reference/image-orientation-background-image-ref.html"> | ||
<meta name=fuzzy content="2;40"> | ||
<style> | ||
div { width: 100px; height: 50px; background-image: url(support/exif-orientation-2-ur.jpg); } | ||
.no-orient { image-orientation: none; } | ||
</style> | ||
<div></div> | ||
<div class="no-orient"></div> |
17 changes: 17 additions & 0 deletions
17
...g/web-platform/tests/css/css-images/image-orientation/image-orientation-border-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Images Module Level 3: image-orientation does not apply to border images</title> | ||
<link rel="author" title="Cameron McCormack" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation"> | ||
<link rel="match" href="reference/image-orientation-border-image-ref.html"> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 50px; | ||
border: 10px solid black; | ||
border-image: url(support/exif-orientation-2-ur.jpg) 10; | ||
} | ||
.no-orient { image-orientation: none; } | ||
</style> | ||
<div></div> | ||
<div class="no-orient"></div> |
13 changes: 13 additions & 0 deletions
13
...b-platform/tests/css/css-images/image-orientation/image-orientation-list-style-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Images Module Level 3: image-orientation does not apply to list-style-image</title> | ||
<link rel="author" title="Cameron McCormack" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation"> | ||
<link rel="match" href="reference/image-orientation-list-style-image-ref.html"> | ||
<meta name=fuzzy content="2;40"> | ||
<style> | ||
ul { margin-left: 100px; list-style-image: url(support/exif-orientation-2-ur.jpg); } | ||
.no-orient { image-orientation: none; } | ||
</style> | ||
<ul><li> </li></ul> | ||
<ul class="no-orient"><li> </li></ul> |
19 changes: 19 additions & 0 deletions
19
...ing/web-platform/tests/css/css-images/image-orientation/image-orientation-mask-image.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Images Module Level 3: image-orientation does not apply to mask-image</title> | ||
<link rel="author" title="Cameron McCormack" href="mailto:[email protected]"> | ||
<link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation"> | ||
<link rel="match" href="reference/image-orientation-mask-image-ref.html"> | ||
<meta name=fuzzy content="1;22"> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 50px; | ||
background: blue; | ||
mask-image: url(support/exif-orientation-2-ur.jpg); | ||
mask-mode: luminance; | ||
} | ||
.no-orient { image-orientation: none; } | ||
</style> | ||
<div></div> | ||
<div class="no-orient"></div> |
9 changes: 9 additions & 0 deletions
9
...ts/css/css-images/image-orientation/reference/image-orientation-background-image-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Reference</title> | ||
<style> | ||
div { width: 100px; height: 50px; background-image: url(../support/exif-orientation-2-ur-pre-rotated.jpg); } | ||
</style> | ||
<div></div> | ||
<div></div> | ||
|
13 changes: 13 additions & 0 deletions
13
.../tests/css/css-images/image-orientation/reference/image-orientation-border-image-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Reference</title> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 50px; | ||
border: 10px solid black; | ||
border-image: url(../support/exif-orientation-2-ur-pre-rotated.jpg) 10; | ||
} | ||
</style> | ||
<div></div> | ||
<div></div> |
8 changes: 8 additions & 0 deletions
8
...ts/css/css-images/image-orientation/reference/image-orientation-list-style-image-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Reference</title> | ||
<style> | ||
ul { margin-left: 100px; list-style-image: url(../support/exif-orientation-2-ur-pre-rotated.jpg); } | ||
</style> | ||
<ul><li> </li></ul> | ||
<ul><li> </li></ul> |
14 changes: 14 additions & 0 deletions
14
...rm/tests/css/css-images/image-orientation/reference/image-orientation-mask-image-ref.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<meta charset="utf-8"> | ||
<title>CSS Reference</title> | ||
<style> | ||
div { | ||
width: 100px; | ||
height: 50px; | ||
background: blue; | ||
mask-image: url(../support/exif-orientation-2-ur-pre-rotated.jpg); | ||
mask-mode: luminance; | ||
} | ||
</style> | ||
<div></div> | ||
<div></div> |