Bug 1288812 - Part 2. Correct test cases.
MozReview-Commit-ID: 3Bdv2Lmg9kQ
--- a/dom/smil/test/db_smilCSSFromTo.js
+++ b/dom/smil/test/db_smilCSSFromTo.js
@@ -149,22 +149,22 @@ var _fromToTestLists = {
{ fromComp: "0", midComp: "0.2", toComp: "1" },
"opacities with abs val >1 get clamped too early"),
new AnimTestcaseFromTo("-0.6", "1.4",
{ fromComp: "0", midComp: "0.4", toComp: "1" },
"opacities with abs val >1 get clamped too early"),
],
URIsAndNone: [
new AnimTestcaseFromTo("url(#idA)", "url(#idB)",
- { fromComp: "url(\"" + document.URL + "#idA\")",
- toComp: "url(\"" + document.URL + "#idB\")"}),
+ { fromComp: "url(\"#idA\")",
+ toComp: "url(\"#idB\")"}),
new AnimTestcaseFromTo("none", "url(#idB)",
- { toComp: "url(\"" + document.URL + "#idB\")"}),
+ { toComp: "url(\"#idB\")"}),
new AnimTestcaseFromTo("url(#idB)", "inherit",
- { fromComp: "url(\"" + document.URL + "#idB\")",
+ { fromComp: "url(\"#idB\")",
toComp: "none"}),
],
};
// List of attribute/testcase-list bundles to be tested
var gFromToBundles = [
new TestcaseBundle(gPropList.clip, [
new AnimTestcaseFromTo("rect(1px, 2px, 3px, 4px)",
--- a/layout/style/test/test_transitions_per_property.html
+++ b/layout/style/test/test_transitions_per_property.html
@@ -852,32 +852,32 @@ var filterTests = [
{ start: "contrast(25%) brightness(0.5) blur(50px)",
end: "contrast(75%)",
expected: ["contrast", 0.375, "brightness", 0.625, "blur", 37.5] },
// mismatching filter functions
{ start: "contrast(0%)", end: "blur(10px)",
expected: ["blur", 10] },
// not supported interpolations
{ start: "none", end: "url('#b')",
- expected: ["url", "\""+document.URL+"#b\""] },
+ expected: ["url", "\"#b\""] },
{ start: "url('#a')", end: "none",
expected: ["none"] },
{ start: "url('#a')", end: "url('#b')",
- expected: ["url", "\""+document.URL+"#b\""] },
+ expected: ["url", "\"#b\""] },
{ start: "url('#a')", end: "blur(10px)",
expected: ["blur", 10] },
{ start: "blur(10px)", end: "url('#a')",
- expected: ["url", "\""+document.URL+"#a\""] },
+ expected: ["url", "\"#a\""] },
{ start: "blur(0px) url('#a')", end: "blur(20px)",
expected: ["blur", 20] },
{ start: "blur(0px)", end: "blur(20px) url('#a')",
- expected: ["blur", 20, "url", "\""+document.URL+"#a\""] },
+ expected: ["blur", 20, "url", "\"#a\""] },
{ start: "contrast(0.25) brightness(0.25) blur(25px)",
end: "contrast(0.75) url('#a')",
- expected: ["contrast", 0.75, "url", "\""+document.URL+"#a\""] },
+ expected: ["contrast", 0.75, "url", "\"#a\""] },
{ start: "contrast(0.25) brightness(0.25) blur(75px)",
end: "brightness(0.75) contrast(0.75) blur(25px)",
expected: ["brightness", 0.75, "contrast", 0.75, "blur", 25] },
{ start: "contrast(0.25) brightness(0.25) blur(25px)",
end: "contrast(0.75) brightness(0.75) contrast(0.75)",
expected: ["contrast", 0.75, "brightness", 0.75, "contrast", 0.75] },
// drop-shadow animation
{ start: "none",