Thu, 15 Jan 2015 15:55:04 +0100
Back out 97036ab72558 which inappropriately compared turds to third parties.
michael@0 | 1 | == data:text/html,<body> about:blank |
michael@0 | 2 | == data:text/plain, about:blank |
michael@0 | 3 | != data:text/plain,HELLO about:blank |
michael@0 | 4 | |
michael@0 | 5 | # these tests make sure async reftests work: |
michael@0 | 6 | skip-if(B2G) == test-async.xul test-async-ref.xul # bug 785074 |
michael@0 | 7 | skip-if(B2G) == test-async.html test-async-ref.html # bug 785074 |
michael@0 | 8 | |
michael@0 | 9 | # test that zoom works (and really zooms, not just scales) |
michael@0 | 10 | == test-zoom.html test-zoom-ref.html |
michael@0 | 11 | |
michael@0 | 12 | # make sure we don't fall over if the root is missing |
michael@0 | 13 | == no-root.html about:blank |
michael@0 | 14 | |
michael@0 | 15 | # Makes sure that the file: protocol handler and HTTP server both |
michael@0 | 16 | # choose HTML vs. XHTML processing based on the file extensions. |
michael@0 | 17 | != html-vs-xhtml-by-extension.html html-vs-xhtml-by-extension.xhtml |
michael@0 | 18 | HTTP != html-vs-xhtml-by-extension.html html-vs-xhtml-by-extension.xhtml |
michael@0 | 19 | |
michael@0 | 20 | # make sure red and green colors are not the default and are different from |
michael@0 | 21 | # each other |
michael@0 | 22 | != green.html default.html |
michael@0 | 23 | != green.html red.html |
michael@0 | 24 | != red.html default.html |
michael@0 | 25 | |
michael@0 | 26 | # Make sure about:blank works, even via HTTP. |
michael@0 | 27 | == blank.html about:blank |
michael@0 | 28 | == about:blank blank.html |
michael@0 | 29 | HTTP == blank.html about:blank |
michael@0 | 30 | HTTP == about:blank blank.html |
michael@0 | 31 | # same for data: |
michael@0 | 32 | == default.html data:text/html,<div>Text</div> |
michael@0 | 33 | == data:text/html,<div>Text</div> default.html |
michael@0 | 34 | HTTP == default.html data:text/html,<div>Text</div> |
michael@0 | 35 | HTTP == data:text/html,<div>Text</div> default.html |
michael@0 | 36 | != blank.html default.html |
michael@0 | 37 | HTTP != blank.html default.html |
michael@0 | 38 | |
michael@0 | 39 | skip-if(B2G) HTTP(..) == filter-1.xhtml filter-1-ref.xhtml |
michael@0 | 40 | skip-if(B2G) HTTP(..) == filter-2.xhtml filter-2-ref.xhtml # bug 773482 |
michael@0 | 41 | |
michael@0 | 42 | # test that the MozReftestInvalidate event fires |
michael@0 | 43 | == invalidation.html about:blank |
michael@0 | 44 | == zoom-invalidation.html zoom-invalidation-ref.html # bug 773482 |
michael@0 | 45 | |
michael@0 | 46 | # test that xulRuntime.OS works |
michael@0 | 47 | skip-if(B2G||B2GDT) fails-if(xulRuntime.OS!="Linux"&&!Android) == data:text/html,<body>Linux data:text/html,<script>document.write(navigator.platform.substr(0,5))</script> |
michael@0 | 48 | fails-if(xulRuntime.OS!="WINNT") == data:text/html,<body>Win data:text/html,<script>document.write(navigator.platform.substr(0,3))</script> |
michael@0 | 49 | fails-if(xulRuntime.OS!="Darwin") == data:text/html,<body>Mac data:text/html,<script>document.write(navigator.platform.substr(0,3))</script> |
michael@0 | 50 | |
michael@0 | 51 | # test parsing of asserts() expressions |
michael@0 | 52 | asserts(0) load about:blank |
michael@0 | 53 | asserts(0-5) load about:blank |
michael@0 | 54 | asserts-if(true,0) load about:blank |
michael@0 | 55 | asserts-if(false,7) load about:blank |
michael@0 | 56 | asserts-if(true,0-4) load about:blank |
michael@0 | 57 | asserts-if(false,6-8) load about:blank |
michael@0 | 58 | |
michael@0 | 59 | # test that <div> is display:block |
michael@0 | 60 | == div.html div-ref.html |
michael@0 | 61 | |
michael@0 | 62 | # test script keyword |
michael@0 | 63 | include scripttests.list |
michael@0 | 64 | |
michael@0 | 65 | # test url-prefix |
michael@0 | 66 | include urlprefixtests.list |
michael@0 | 67 | |
michael@0 | 68 | # test default-preferences |
michael@0 | 69 | include default-preferences-tests.list |
michael@0 | 70 | |
michael@0 | 71 | # test that all corners are visible |
michael@0 | 72 | != corners-1.html corners-1-ref.html |
michael@0 | 73 | != corners-2.html corners-2-ref.html |
michael@0 | 74 | != corners-3.html corners-3-ref.html |
michael@0 | 75 | != corners-4.html corners-4-ref.html |
michael@0 | 76 | |
michael@0 | 77 | # Test that the harness gives the correct page dimensions. |
michael@0 | 78 | != page-width-3.9in.html page-width-4in.html |
michael@0 | 79 | skip-if(B2G||B2GDT) == page-width-4.1in.html page-width-4in.html # bug 774396 |
michael@0 | 80 | skip-if(B2G||B2GDT) == page-width-auto.html page-width-4in.html # bug 774396 |
michael@0 | 81 | skip-if(B2G||B2GDT) != page-height-2in.html page-height-2.1in.html # bug 774396 |
michael@0 | 82 | == page-height-2in.html page-height-nobreak.html |
michael@0 | 83 | == page-height-2.1in.html page-height-forcebreak.html |
michael@0 | 84 | |
michael@0 | 85 | # Check that tests that need focus are skipped when it's not available |
michael@0 | 86 | needs-focus load needs-focus.html |
michael@0 | 87 | |
michael@0 | 88 | # Bug 632636 |
michael@0 | 89 | fails == data:text/plain,HELLO about:blank |
michael@0 | 90 | needs-focus == data:text/plain, about:blank |
michael@0 | 91 | |
michael@0 | 92 | # Sanity check of viewport+displayport overrides |
michael@0 | 93 | random-if(!browserIsRemote) == test-displayport.html test-displayport-ref.html # bug 593168 |
michael@0 | 94 | skip-if(!browserIsRemote) != test-displayport-2.html test-displayport-ref.html # bug 593168 |
michael@0 | 95 | skip-if(!browserIsRemote) fails-if(OSX&&layersGPUAccelerated) fuzzy-if(layersOMTC,1,1390) random-if(Android&&AndroidVersion<15) random-if(B2G||B2GDT) == 647192-1.html 647192-1-ref.html |
michael@0 | 96 | skip-if(!browserIsRemote||(B2G&&browserIsRemote)) == 656041-1.html 656041-1-ref.html |
michael@0 | 97 | skip-if(!browserIsRemote||layersOMTC) == test-displayport-bg.html test-displayport-ref.html # bug 694706 |
michael@0 | 98 | |
michael@0 | 99 | # IPC Position-fixed frames/layers test |
michael@0 | 100 | # Fixed layers are temporarily disabled (bug 656167). |
michael@0 | 101 | #skip-if(!browserIsRemote) == test-pos-fixed.html test-pos-fixed-ref.html |
michael@0 | 102 | #skip-if(!browserIsRemote) == test-bg-attachment-fixed.html test-bg-attachment-fixed-ref.html |
michael@0 | 103 | skip-if(!browserIsRemote) == test-pos-fixed-transform.html test-pos-fixed-transform-ref.html |
michael@0 | 104 | |
michael@0 | 105 | # reftest syntax: require-or |
michael@0 | 106 | require-or(unrecognizedCondition,skip) script scripttest-fail.html |
michael@0 | 107 | require-or(true&&unrecognizedCondition,skip) script scripttest-fail.html |
michael@0 | 108 | require-or(unrecognizedCondition&&true,skip) script scripttest-fail.html |
michael@0 | 109 | require-or(unrecognizedCondition,fails) script scripttest-fail.html |
michael@0 | 110 | require-or(true,fails) script scripttest-pass.html |
michael@0 | 111 | require-or(true&&true,fails) script scripttest-pass.html |
michael@0 | 112 | |
michael@0 | 113 | # tests for pref(...) syntax in manifest, including "fails" examples with incorrect prefs |
michael@0 | 114 | # a boolean pref |
michael@0 | 115 | pref(gfx.downloadable_fonts.enabled,true) HTTP(..) != font-download.html font-default.html |
michael@0 | 116 | pref(gfx.downloadable_fonts.enabled,false) HTTP(..) == font-download.html font-default.html |
michael@0 | 117 | fails pref(gfx.downloadable_fonts.enabled,0) HTTP(..) == font-download.html font-default.html |
michael@0 | 118 | fails pref(gfx.downloadable_fonts.enabled,"foo") HTTP(..) == font-download.html font-default.html |
michael@0 | 119 | # a non-existent pref |
michael@0 | 120 | fails pref(not.a.real.pref.name,1) == font-download.html font-default.html |
michael@0 | 121 | # an integer pref |
michael@0 | 122 | pref(font.size.variable.x-western,16) == font-size-16.html font-default.html |
michael@0 | 123 | pref(font.size.variable.x-western,16) != font-size-24.html font-default.html |
michael@0 | 124 | pref(font.size.variable.x-western,24) == font-size-24.html font-default.html |
michael@0 | 125 | pref(font.size.variable.x-western,24) != font-size-16.html font-default.html |
michael@0 | 126 | fails pref(font.size.variable.x-western,false) == font-size-16.html font-default.html |
michael@0 | 127 | fails pref(font.size.variable.x-western,"foo") == font-size-16.html font-default.html |
michael@0 | 128 | # a string pref |
michael@0 | 129 | pref(font.default.x-western,"serif") == font-serif.html font-default.html |
michael@0 | 130 | pref(font.default.x-western,"serif") != font-sans-serif.html font-default.html |
michael@0 | 131 | pref(font.default.x-western,"sans-serif") == font-sans-serif.html font-default.html |
michael@0 | 132 | pref(font.default.x-western,"sans-serif") != font-serif.html font-default.html |
michael@0 | 133 | fails pref(font.default.x-western,true) == font-serif.html font-default.html |
michael@0 | 134 | fails pref(font.default.x-western,0) == font-serif.html font-default.html |
michael@0 | 135 | # tests for ref-pref, and test-pref |
michael@0 | 136 | ref-pref(font.size.variable.x-western,16) == font-size-16.html font-default.html |
michael@0 | 137 | ref-pref(font.size.variable.x-western,16) != font-size-24.html font-default.html |
michael@0 | 138 | ref-pref(font.size.variable.x-western,24) == font-size-24.html font-default.html |
michael@0 | 139 | ref-pref(font.size.variable.x-western,24) != font-size-16.html font-default.html |
michael@0 | 140 | fails ref-pref(font.size.variable.x-western,false) == font-size-16.html font-default.html |
michael@0 | 141 | fails ref-pref(font.size.variable.x-western,"foo") == font-size-16.html font-default.html |
michael@0 | 142 | test-pref(font.size.variable.x-western,16) == font-default.html font-size-16.html |
michael@0 | 143 | test-pref(font.size.variable.x-western,16) != font-default.html font-size-24.html |
michael@0 | 144 | test-pref(font.size.variable.x-western,24) == font-default.html font-size-24.html |
michael@0 | 145 | test-pref(font.size.variable.x-western,24) != font-default.html font-size-16.html |
michael@0 | 146 | fails test-pref(font.size.variable.x-western,false) == font-default.html font-size-16.html |
michael@0 | 147 | fails test-pref(font.size.variable.x-western,"foo") == font-default.html font-size-16.html |
michael@0 | 148 | ref-pref(font.size.variable.x-western,16) test-pref(font.size.variable.x-western,24) != font-default.html font-default.html |
michael@0 | 149 | ref-pref(font.size.variable.x-western,24) test-pref(font.size.variable.x-western,16) != font-default.html font-default.html |
michael@0 | 150 | ref-pref(font.size.variable.x-western,24) test-pref(font.size.variable.x-western,24) == font-default.html font-default.html |
michael@0 | 151 | # reftest syntax: fuzzy(maxPixelDifference,maxNumberDifferingPixels) |
michael@0 | 152 | fuzzy(1,250000) == fuzzy.html fuzzy-ref.html |
michael@0 | 153 | fuzzy(1,250000) != too-fuzzy.html fuzzy-ref.html |
michael@0 | 154 | fuzzy-if(true,1,250000) == fuzzy.html fuzzy-ref.html |
michael@0 | 155 | fuzzy-if(false,2,1) == fuzzy-ref.html fuzzy-ref.html |
michael@0 | 156 | # When using 565 fuzzy.html and fuzzy-ref.html will compare as equal |
michael@0 | 157 | fails fuzzy-if(false,2,1) random-if(Android) == fuzzy.html fuzzy-ref.html |
michael@0 | 158 | |
michael@0 | 159 | # Test that reftest-no-paint fails correctly |
michael@0 | 160 | fails == reftest-no-paint.html reftest-no-paint-ref.html |
michael@0 | 161 | |
michael@0 | 162 | skip-if(!browserIsRemote) == async-scroll-1a.html async-scroll-1-ref.html |
michael@0 | 163 | skip-if(!browserIsRemote) != async-scroll-1b.html async-scroll-1-ref.html |