Bug 520325: add mochitests for "none" CSS value.
authorDaniel Holbert <dholbert@cs.stanford.edu>
Sat, 03 Oct 2009 15:16:16 -0700
changeset 33435 8fb10a0a12dafd9713517df8499c995f9226a5cf
parent 33434 5b2d368cfc9f83f4f83e910788178b4ec8915523
child 33436 ce099e5c056a9f70b91fcd15a054f725882490f7
push id1
push userroot
push dateTue, 26 Apr 2011 22:38:44 +0000
treeherdermozilla-beta@bfdb6e623a36 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs520325
milestone1.9.3a1pre
Bug 520325: add mochitests for "none" CSS value.
content/smil/test/db_smilCSSFromTo.js
--- a/content/smil/test/db_smilCSSFromTo.js
+++ b/content/smil/test/db_smilCSSFromTo.js
@@ -72,16 +72,18 @@ var _fromToTestLists = {
                             midComp: "rgb(100, 100, 100)" }),
   ],
   colorFromInheritWhite: [
   new AnimTestcaseFromTo("inherit", "rgb(205, 205, 205)",
                          { fromComp: "rgb(255, 255, 255)",
                            midComp: "rgb(230, 230, 230)" }),
   ],
   paintServer: [
+    new AnimTestcaseFromTo("none", "blue", { toComp : "rgb(0, 0, 255)" }),
+    new AnimTestcaseFromTo("rgb(50, 50, 50)", "none"),
     new AnimTestcaseFromTo("url(#gradA)", "url(#gradB) currentColor",
                            { fromComp: "url(\"" + document.URL +
                                        "#gradA\") rgb(0, 0, 0)",
                              toComp: "url(\"" + document.URL +
                                      "#gradB\") rgb(50, 50, 50)" },
                            "need support for URI-based paints"),
     new AnimTestcaseFromTo("url(#gradA) orange", "url(#gradB)",
                            { fromComp: "url(\"" + document.URL +
@@ -342,20 +344,19 @@ var gFromToBundles = [
   new TestcaseBundle(gPropList.stop_color,
                         [].concat(_fromToTestLists.color,
                                   _fromToTestLists.colorFromInheritBlack)),
   new TestcaseBundle(gPropList.stop_opacity, _fromToTestLists.opacity,
                      "need support for float values"),
   new TestcaseBundle(gPropList.stroke,
                      [].concat(_fromToTestLists.color,
                                _fromToTestLists.paintServer, [
-     // Note: inherited value is rgb(0, 0, 0) (default)
+     // Note: inherited value is "none" (the default for "stroke" property)
      new AnimTestcaseFromTo("inherit", "rgb(200, 200, 200)",
-                            { fromComp: "none"})]),
-                     "need support for 'none' value"),
+                            { fromComp: "none"})])),
   new TestcaseBundle(gPropList.stroke_dasharray,
                      [].concat(_fromToTestLists.lengthPx,
                                _fromToTestLists.lengthPxPctSVG,
                                _fromToTestLists.lengthPctSVG,
                                [
     new AnimTestcaseFromTo("10px", "20px"),
     new AnimTestcaseFromTo("1px, 5px", "1px"),
     new AnimTestcaseFromTo("1px, 15px", "1px, 2px, 3px, 4px, 5px"),