Bug 604885 - Reftest to ensure video controls don't overflow outside of css dimensions. r=test-change a=blocking2.0
authorChris Pearce <chris@pearce.org.nz>
Thu, 25 Nov 2010 07:34:57 +1300
changeset 58178 53f49c89634b03a533bbe65997ce9ecc26c42d80
parent 58177 8d54b45a181e67d878bca1d22055746f304e60ec
child 58179 a6d06ecdfde141aa4692cf75f012e26dab250ee1
child 59523 fd28a949d4ce2a8663706dea4d971152ece8125a
push id17186
push usercpearce@mozilla.com
push dateWed, 24 Nov 2010 18:37:38 +0000
treeherdermozilla-central@a6d06ecdfde1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-change, blocking2.0
bugs604885
milestone2.0b8pre
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 604885 - Reftest to ensure video controls don't overflow outside of css dimensions. r=test-change a=blocking2.0
layout/reftests/ogg-video/reftest.list
layout/reftests/ogg-video/undersize-clipped-ref.html
layout/reftests/ogg-video/undersize-clipped.html
--- a/layout/reftests/ogg-video/reftest.list
+++ b/layout/reftests/ogg-video/reftest.list
@@ -26,8 +26,9 @@ skip-if(gtk2Widget) HTTP(..) == zoomed-1
 == poster-7.html poster-ref-red160x120.html
 == poster-8.html poster-ref-black140x100.html
 == poster-10.html poster-ref-blue250x200.html
 == poster-11.html poster-ref-blue250x200.html
 == poster-12.html poster-ref-blue250x200.html
 == poster-13.html poster-ref-blue400x300.html
 == poster-14.html poster-ref-blue250x200.html
 == poster-15.html poster-ref-green70x30.html
+== undersize-clipped.html undersize-clipped-ref.html
new file mode 100644
--- /dev/null
+++ b/layout/reftests/ogg-video/undersize-clipped-ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+#mask {
+  position: absolute;
+  z-index: 3;
+  width: 7px;
+  height: 5px;
+  background-color: green;
+  top: 10px;
+  left: 10px;
+}
+</style>
+</head>
+<body style="background:white;">
+<div id="mask"></div>
+</body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/ogg-video/undersize-clipped.html
@@ -0,0 +1,33 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+<style>
+#mask {
+  position: absolute;
+  z-index: 3;
+  width: 7px;
+  height: 5px;
+  background-color: green;
+  top: 10px;
+  left: 10px;
+}
+</style>
+</head>
+<body style="background:white;">
+<!--
+Test if video displays correctly when it's smaller than the amount of space
+required to draw its controls. The controls should be clipped to the css
+specified dimensions.
+
+We draw a mask over the video to prevent the status overlay interferring. The controls
+need to be on (so that the test would fail if they drew outside of the element's
+area) but we need to mask them out as we can't guarantee the status overlay
+will or won't be showing or fading in or out when the reftest does its comparison.
+-->
+<div id="mask"></div>
+<video controls src="black140x100.ogv"
+       style="position:absolute; left: 10px; top: 10px; width: 7px; height:5px;">
+</video>
+
+</body>
+</html>