mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1261158 - Convert test_staticClone.html to a mochitest-plain. r=tnikkel a=test-only
MozReview-Commit-ID: 8CUzA0EzM2G
This commit is contained in:
parent
ff58440a32
commit
53ca5bf31f
@ -23,7 +23,6 @@ disabled = bug 1101415
|
||||
skip-if = os != "win" || os_version == "6.2"
|
||||
support-files =
|
||||
bug415761.ico
|
||||
[test_staticClone.html]
|
||||
[test_svg_animatedGIF.html]
|
||||
[test_svg_filter_animation.html]
|
||||
[test_synchronized_animation.html]
|
||||
|
@ -133,3 +133,5 @@ skip-if = buildapp == 'b2g' || os == 'android'
|
||||
skip-if = buildapp == 'b2g' || os == 'android'
|
||||
[test_removal_onload.html]
|
||||
skip-if = buildapp == 'b2g' || os == 'android'
|
||||
[test_staticClone.html]
|
||||
skip-if = buildapp == 'b2g' || os == 'android'
|
||||
|
@ -5,8 +5,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=878037
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 878037</title>
|
||||
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=878037">Mozilla Bug 878037</a>
|
||||
@ -23,9 +23,9 @@ SimpleTest.waitForExplicitFinish();
|
||||
|
||||
window.onload = function() {
|
||||
var img = document.getElementById("animated");
|
||||
var content = img.QueryInterface(Components.interfaces.nsIImageLoadingContent);
|
||||
var content = SpecialPowers.wrap(img).QueryInterface(SpecialPowers.Ci.nsIImageLoadingContent);
|
||||
|
||||
var request = content.getRequest(Components.interfaces.nsIImageLoadingContent.CURRENT_REQUEST);
|
||||
var request = content.getRequest(SpecialPowers.Ci.nsIImageLoadingContent.CURRENT_REQUEST);
|
||||
|
||||
var staticReq = request.getStaticRequest();
|
||||
var clone = staticReq.clone(null);
|
||||
|
Loading…
Reference in New Issue
Block a user