Bug 1261158 - Convert test_staticClone.html to a mochitest-plain. r=tnikkel a=test-only

MozReview-Commit-ID: 8CUzA0EzM2G
This commit is contained in:
Kartikaya Gupta 2016-04-04 16:28:12 -04:00
parent ff58440a32
commit 53ca5bf31f
3 changed files with 6 additions and 5 deletions

View File

@ -23,7 +23,6 @@ disabled = bug 1101415
skip-if = os != "win" || os_version == "6.2" skip-if = os != "win" || os_version == "6.2"
support-files = support-files =
bug415761.ico bug415761.ico
[test_staticClone.html]
[test_svg_animatedGIF.html] [test_svg_animatedGIF.html]
[test_svg_filter_animation.html] [test_svg_filter_animation.html]
[test_synchronized_animation.html] [test_synchronized_animation.html]

View File

@ -133,3 +133,5 @@ skip-if = buildapp == 'b2g' || os == 'android'
skip-if = buildapp == 'b2g' || os == 'android' skip-if = buildapp == 'b2g' || os == 'android'
[test_removal_onload.html] [test_removal_onload.html]
skip-if = buildapp == 'b2g' || os == 'android' skip-if = buildapp == 'b2g' || os == 'android'
[test_staticClone.html]
skip-if = buildapp == 'b2g' || os == 'android'

View File

@ -5,8 +5,8 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=878037
--> -->
<head> <head>
<title>Test for Bug 878037</title> <title>Test for Bug 878037</title>
<script type="application/javascript" src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script> <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="chrome://mochikit/content/tests/SimpleTest/test.css"/> <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head> </head>
<body> <body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=878037">Mozilla Bug 878037</a> <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() { window.onload = function() {
var img = document.getElementById("animated"); 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 staticReq = request.getStaticRequest();
var clone = staticReq.clone(null); var clone = staticReq.clone(null);