Bug 1288812 - Part 2. Correct test cases. r=heycam
authorcku <cku@mozilla.com>
Sat, 06 Aug 2016 06:07:50 +0800
changeset 308562 b396323fb8a72dc67fa2c1b2cf3ff5e5c69ba028
parent 308561 279cf3d56811d6cdd38aa8168f88abc8770c4e65
child 308563 f431fe83f56a9f37e057625c884b436f1445512e
push id30545
push usercbook@mozilla.com
push dateTue, 09 Aug 2016 13:42:31 +0000
treeherdermozilla-central@643a67968688 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersheycam
bugs1288812
milestone51.0a1
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 1288812 - Part 2. Correct test cases. r=heycam MozReview-Commit-ID: 3Bdv2Lmg9kQ
dom/smil/test/db_smilCSSFromTo.js
layout/style/test/test_transitions_per_property.html
--- 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",