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