зеркало из https://github.com/mozilla/gecko-dev.git
Bug 917056 - Make zoomed-svg-with-viewBox-01.svg use reftest-zoom. r=longsonr
This commit is contained in:
Родитель
4922caac5c
Коммит
50733c49b6
|
@ -19,4 +19,4 @@ skip-if(B2G) == feImage-zoom-01a.svg feImage-zoom-01-ref
|
||||||
skip-if(B2G) == feImage-zoom-01b.svg feImage-zoom-01-ref.svg # bug 773482
|
skip-if(B2G) == feImage-zoom-01b.svg feImage-zoom-01-ref.svg # bug 773482
|
||||||
skip-if(B2G) == foreignObject-zoom-01.svg pass.svg # bug 773482
|
skip-if(B2G) == foreignObject-zoom-01.svg pass.svg # bug 773482
|
||||||
skip-if(B2G) == zoom-invalidation-01.svg pass.svg # bug 773482
|
skip-if(B2G) == zoom-invalidation-01.svg pass.svg # bug 773482
|
||||||
skip == zoomed-svg-with-viewBox-01.svg zoomed-svg-with-viewBox-01-ref.svg
|
== zoomed-svg-with-viewBox-01.svg zoomed-svg-with-viewBox-01-ref.svg
|
||||||
|
|
|
@ -2,33 +2,13 @@
|
||||||
Any copyright is dedicated to the Public Domain.
|
Any copyright is dedicated to the Public Domain.
|
||||||
http://creativecommons.org/publicdomain/zero/1.0/
|
http://creativecommons.org/publicdomain/zero/1.0/
|
||||||
-->
|
-->
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" onload="handleLoad();"
|
<svg xmlns="http://www.w3.org/2000/svg" reftest-zoom="3"
|
||||||
width="40" height="30" viewBox="20 20 40 30">
|
width="40" height="30" viewBox="20 20 120 90">
|
||||||
|
|
||||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=407959 -->
|
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=407959 -->
|
||||||
|
|
||||||
<title>Test that zooming isn't broken when we have a viewBox</title>
|
<title>Test that zooming isn't broken when we have a viewBox</title>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
|
|
||||||
function handleLoad()
|
|
||||||
{
|
|
||||||
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
|
|
||||||
|
|
||||||
var shell = document.defaultView
|
|
||||||
.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
|
|
||||||
.getInterface(Components.interfaces.nsIWebNavigation)
|
|
||||||
.QueryInterface(Components.interfaces.nsIDocShell);
|
|
||||||
|
|
||||||
var viewer = shell.contentViewer
|
|
||||||
.QueryInterface(Components.interfaces.nsIMarkupDocumentViewer)
|
|
||||||
|
|
||||||
// set onload - setting globally somehow triggers reftest load failure*s*?!
|
|
||||||
viewer.fullZoom = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<ellipse cx="40" cy="35" rx="20" ry="15" fill="blue"/>
|
<ellipse cx="40" cy="35" rx="20" ry="15" fill="blue"/>
|
||||||
|
|
||||||
</svg>
|
</svg>
|
||||||
|
|
До Ширина: | Высота: | Размер: 1.0 KiB После Ширина: | Высота: | Размер: 434 B |
Загрузка…
Ссылка в новой задаче