Auto-tools/Projects/UniversalManifest

From MozillaWiki
Jump to: navigation, search

Proposals

1

{ "tests":
 [ { "type": "==", "files": ["capitalize-1.html", "capitalize-ref.html"],
   },
   { "type": "!=", "files": ["smtp-upper.html", "smtp-upper-ref.html"],
   },
   { "type": "==", "files": ["collapsed-border-height-4.html", "border-base-ref.html"],
     "fails": true,
   },
   {
     "type": "==", "files": ["background-image-tiling.html", "background-image-tiling-ref.html"],
     "fails-on-os": ["mac"],
   },
   {
     "type": "!=", "files": ["text-language-01.xhtml", "text-language-01-ref.xhtml"],
     "random-on-os": ["linux", "windows"],
   },
   {
     "type": "==", "files": ["zoomed-svg-with-viewBox-01.svg", "pass.svg"],
     "skip": true,
     "comments": "see bug 11111",
   },
   { "type": "==", "files": ["test-3.svg, pass.svg"], "HTTP": ".."
   },
 ],
 "include":
 [
   "other-tests/manifest.txt",
   "more-tests/different-manifest.txt",
 ],
}

2

{ "tests":
 [ { "type": "==", "files": ["capitalize-1.html", "capitalize-ref.html"],
   },
   { "type": "!=", "files": ["smtp-upper.html", "smtp-upper-ref.html"],
   },
   { "type": "==", "files": ["collapsed-border-height-4.html", "border-base-ref.html"],
     "fails": true,
   },
   {
     "type": "==", "files": ["background-image-tiling.html", "background-image-tiling-ref.html"],
     "fails-on-os": ["mac"],
   },
   {
     "type": "!=", "files": ["text-language-01.xhtml", "text-language-01-ref.xhtml"],
     "random-on-os": ["linux", "windows"],
   },
   {
     "type": "==", "files": ["zoomed-svg-with-viewBox-01.svg", "pass.svg"],
     "skip": true,
     "comments": "see bug 11111",
   },
   { "type": "==", "files": ["test-3.svg pass.svg"], "HTTP": ".."
     "set-prefs": [ { "type":"int", "name":"reftest.timeout", "value":50 },
                    { "type":"string", "name":"auto-update.url", "value":"http://www.example.com" },
                  ],
     "skip-if-prefs": [ { "type":"bool", "name":"html5.enable", "value":false },
                      ]
   },
 ],
 "include":
 [
   "other-tests/manifest.txt",
   "more-tests/different-manifest.txt",
 ],
}

3

{ "tests":
 [ { "type": "==", "files": ["capitalize-1.html", "capitalize-ref.html"],
   },
   { "type": "!=", "files": ["smtp-upper.html", "smtp-upper-ref.html"],
   },
   { "type": "==", "files": ["collapsed-border-height-4.html", "border-base-ref.html"],
     "fails": true,
   },
   { "group": "withhtml5",
     "set-prefs": [ { "type":"bool", "name":"html5.enabled", "value":true },
     "tests": 
     [
       {
         "type": "==", "files": ["background-image-tiling.html", "background-image-tiling-ref.html"],
         "fails-on-os": ["mac"],
       },
       {
         "type": "!=", "files": ["text-language-01.xhtml", "text-language-01-ref.xhtml"],
         "random-on-os": ["linux", "windows"],
       },
       {
         "type": "==", "files": ["zoomed-svg-with-viewBox-01.svg", "pass.svg"],
         "skip": true,
         "comments": "see bug 11111",
       },
       { "type": "==", "files": ["test-3.svg pass.svg"], "HTTP": ".."
         "set-prefs": [ { "type":"int", "name":"reftest.timeout", "value":50 },
                        { "type":"string", "name":"auto-update.url", "value":"http://www.exmaple.com" },
                      ],
         "skip-if-prefs": [ { "type":"bool", "name":"html5.enabled", "value":false },
                          ]
       },
     ]
   },
 ],
 "include":
 [
   "other-tests/manifest.txt",
   "more-tests/different-manifest.txt",
 ],
}

4

     {"tests:
     [ "== test.html reference.html",
       "!= test.html about:blank",
       {"test": "!= other.html about:blank",
        "skip-if": "!haveTestPlugin"}
     ]
     }

reftest.list

== capitalize-1.html capitalize-ref.html
!= smtp-upper.html smtp-upper-ref.html
fails == collapsed-border-height-4.html border-base-ref.html
fails-if(xulRuntime.OS=="Darwin") == background-image-tiling.html background-image-tiling-ref.html
# fails-if(MOZ_WIDGET_TOOLKIT=="cocoa") == background-image-tiling.html background-image-tiling-ref.html
random-if(xulRuntime.OS!="Linux"||xulRuntime.OS!="WINNT") != text-language-01.xhtml text-language-01-ref.xhtml
# random-if(MOZ_WIDGET_TOOLKIT=="gtk2") != text-language-01.xhtml text-language-01-ref.xhtml
# Fails on Linux tryserver due to lack of CJK fonts.
skip == zoomed-svg-with-viewBox-01.svg pass.svg # bug 11111
HTTP(..) == test-3.svg pass.svg
include other-tests/manifest.txt
include more-tests/different-manifest.txt

# Hypothetical
fails-if(!prefs.getBoolPref("html5.enable")) HTTP(..) setIntPref("reftest.timeout", 50) setStringPref("auto-update.url", "http://www.example.com") == test-3.svg pass.svg
fails-if(!prefs.getBoolPref("html5.enable")) HTTP(..) timeout(50) setStringPref("auto-update.url", "http://www.example.com") == test-3.svg pass.svg